aws-sts | Ansible role for assuming roles using the AWS STS service

 by   Casecommons Python Version: Current License: No License

kandi X-RAY | aws-sts Summary

kandi X-RAY | aws-sts Summary

aws-sts is a Python library. aws-sts has no bugs, it has no vulnerabilities and it has low support. However aws-sts build file is not available. You can download it from GitHub.

This Ansible role allows a user to assume a given role, generating temporary security credentials that can be used to assume the role.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              aws-sts has a low active ecosystem.
              It has 0 star(s) with 3 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of aws-sts is current.

            kandi-Quality Quality

              aws-sts has 0 bugs and 0 code smells.

            kandi-Security Security

              aws-sts has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              aws-sts code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              aws-sts does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              aws-sts releases are not available. You will need to build from source code and install.
              aws-sts has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 20 lines of code, 2 functions and 1 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed aws-sts and discovered the below as its top functions. This is intended to give you an instant insight into aws-sts implemented functionality, and help decide if they suit your requirements.
            • Create a dictionary from a dictionary .
            • Return filters .
            Get all kandi verified functions for this library.

            aws-sts Key Features

            No Key Features are available at this moment for aws-sts.

            aws-sts Examples and Code Snippets

            No Code Snippets are available at this moment for aws-sts.

            Community Discussions

            QUESTION

            bash command substituation comes up blank
            Asked 2022-Jan-06 at 23:08

            I have the following Dockerfile

            ...

            ANSWER

            Answered 2022-Jan-06 at 23:08

            $(...) is Makefile syntax for expanding a variable name, so the ( is closed by the first unescaped ) in the command you want to execute. You need to double the $ to have it be treated literally.

            Source https://stackoverflow.com/questions/70614668

            QUESTION

            Error in assuming access role arn:aws:iam::1234:role/my-role
            Asked 2021-Dec-06 at 20:44

            When trying to create an apprunner service using aws apprunner create-service --cli-input-json file://./myconfig.json, I get the error in title:

            An error occurred (InvalidRequestException) when calling the CreateService operation: Error in assuming access role arn:aws:iam::1234:role/my-role

            The myconfig.json I'm using is fairly similar to example json from AWS CreateService docs, & I don't think it's particularly relevant here.

            The error seems to imply I should assume the role... but I've already assumed the role with this command from this stackoverflow q/a:

            eval $(aws sts assume-role --role-arn arn:aws:iam::1234:role/my-role --role-session-name apprunner-stuff1 --region us-east-1 | jq -r '.Credentials | "export AWS_ACCESS_KEY_ID=\(.AccessKeyId)\nexport AWS_SECRET_ACCESS_KEY=\(.SecretAccessKey)\nexport AWS_SESSION_TOKEN=\(.SessionToken)\n"')

            This runs without error & when I run:

            aws sts get-caller-identity

            it outputs the following which looks correct I think:

            ...

            ANSWER

            Answered 2021-Dec-06 at 20:44

            Instead of trying to create a role following IAM doc permissions, I followed the UI AppRunner guide here. That created a role that was auto named AppRunnerECRAccessRole. I used that role as my AccessRoleArn in the json configuration, making that json config section look like:

            Source https://stackoverflow.com/questions/70221982

            QUESTION

            AWS AD federation login: AWSOpenIdDiscoveryService returns 400: AuthSamlInvalidSamlResponseException
            Asked 2021-Nov-04 at 07:08

            Our company's Active Directory accounts are somehow used to login to AWS using federation.

            The last few days I've started getting this error, however, and I'm wondering if anyone knows what it means:

            ERROR: error logging into role&{arn:aws:iam::111111111111:role/myrole arn:aws:iam::111111111111:saml-provider/MyCompanyPingID }: error retrieving STS credentials using SAML: InvalidIdentityToken: Invalid base64 SAMLResponse (Service: AWSOpenIdDiscoveryService; Status Code: 400; Error Code: AuthSamlInvalidSamlResponseException; Request ID: 11111111-1111-1111-1111-111111111111; Proxy: null) status code: 400, request id: 22222222-2222-2222-2222-222222222222

            My own interpretation is that arn:aws:iam::111111111111:saml-provider/MyCompanyPingID is returning a response to AWSOpenIdDiscoveryService that is not base64-encoded, but AWSOpenIdDiscoveryService expects it to be base64 encoded.

            It seems this must be an issue with my account because I've asked other people in my team and they don't have this issue.

            My question is, does anyone know what the error even means, and what is likely to cause it? Is it an incorrect encoding for example?

            Edit:

            I see that there are a couple of similar questions if I search for AuthSamlInvalidSamlResponseException:

            ...

            ANSWER

            Answered 2021-Nov-04 at 07:08

            In my case, it seems it was an issue with my account - I didn't have any roles assigned.

            Source https://stackoverflow.com/questions/69568278

            QUESTION

            Attaching debugger give me the credentials, removing it and the credentials are empty
            Asked 2020-Sep-24 at 09:37

            I have a problem with the AWS sdk on a Qt app.
            I'm getting the STS tokens from Cognito after a click on a QML button.
            The function is working perfectly fine and is printing me the token... as long as the debugger is attached [F5]. If I start the project without debugger (green arrow without bug on it) the returned object is empty.

            Without the debugger attached I have the following in the aws logs that I don't have otherwise:

            [INFO] 2020-09-18 12:33:02.569 CognitoCachingCredentialsProvider [140678610167936] A parent identity was from cognito which is different from the anonymous identity. Swapping that out now.
            [INFO] 2020-09-18 12:33:02.569 CognitoCachingCredentialsProvider [140678610167936] Credentials will expire next at 0

            Other logs around looks the same, I even have the STS token shown a couples of lines above this one on both cases:

            [DEBUG] 2020-09-18 12:33:02.569 CURL [140678610167936] (DataIn) {"Credentials":{"AccessKeyId":"###","Expiration":1.600435982E9,"SecretKey":"###","SessionToken":"##########"},"IdentityId":""}

            I have even edited the SDK and added the following logs which resulted in this (with the debugger attached the first line is also getting shown).

            ...

            ANSWER

            Answered 2020-Sep-24 at 09:37

            It turns out that the aws sdk is using cJSON which, when parsing numbers, may or may not get the local environment for decoding decimal point. But in both cases it will call double strtod(const char *nptr, char **endptr); to translate string to double, in the man page we can read (emphasis mine)

            A decimal number consists of a nonempty sequence of decimal digits possibly containing a radix character (decimal point, locale-dependent, usually '.'), optionally followed by a decimal exponent. [...]

            Apparently cJSON need this compilation variable to compile on Android.

            AWS copied the lib here but did not copied the compilation variable ENABLE_LOCALES which should be enabled by default as stated in the issue linked above.

            I am on Ubuntu 18.04, environment in English but dates/number in French (decimal point is ',' here in France).

            I am creating an issue on the AWS SDK repo to set the compilation variable ENABLE_LOCALES and on cJSON to discuss and avoid further error like this one.

            A potential fix could also be to force the application to use English locales but that is not always possible.

            Source https://stackoverflow.com/questions/63990280

            QUESTION

            concourse ci job parameterization
            Asked 2020-Sep-09 at 13:04

            i want to parametrize jobs for different envs.

            for example:

            ...

            ANSWER

            Answered 2020-Sep-09 at 13:04

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install aws-sts

            To use this role, you must add the rola as Ansible Galaxy requirement to your Ansible playbook project. To set this role up as an Ansible Galaxy requirement, first create a requirements.yml file in a subfolder called roles and add an entry for this role. See the Ansible Galaxy documentation for more details. Once you have created roles/requirements.yml, you can install the role using the ansible-galaxy command line tool. To update the role version, simply update the requirements.yml file and re-install the role as demonstrated above.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Casecommons/aws-sts.git

          • CLI

            gh repo clone Casecommons/aws-sts

          • sshUrl

            git@github.com:Casecommons/aws-sts.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link