Git Product home page Git Product logo

Comments (5)

clareliguori avatar clareliguori commented on May 28, 2024

I think I understand the root cause. Can you try doing:
AWS_SDK_LOAD_CONFIG=true img2lambda -i built-image:latest --profile otheraccount

from aws-lambda-container-image-converter.

pagameba avatar pagameba commented on May 28, 2024

Gave it a shot, sadly it did not use the correct account id again.

from aws-lambda-container-image-converter.

clareliguori avatar clareliguori commented on May 28, 2024

Try this release:
https://github.com/awslabs/aws-lambda-container-image-converter/releases/tag/1.1.0

This change should fix this: 37ac6e8
According to the Go SDK docs anyway: https://docs.aws.amazon.com/sdk-for-go/api/aws/session/#hdr-Shared_Config_Fields

If the AWS_SDK_LOAD_CONFIG environment variable is set, or SharedConfigEnable option is used to create the Session the full shared config values will be loaded. This includes credentials, region, and support for assume role.

from aws-lambda-container-image-converter.

pagameba avatar pagameba commented on May 28, 2024

Brilliant! It works perfectly, thank you. Is there any downside to me having that in my default environment (e.g. will it screw up non-assumed-role things)?

from aws-lambda-container-image-converter.

clareliguori avatar clareliguori commented on May 28, 2024

You mean having role_arn in the default profile? I think role_arn requires either a source_profile or a credential_source. But if you have a credential source (like EC2 instance metadata creds), it seems fine to put role_arn in the default profile.
https://docs.aws.amazon.com/cli/latest/topic/config-vars.html#using-aws-iam-roles

from aws-lambda-container-image-converter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.