Comments (5)
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.
Gave it a shot, sadly it did not use the correct account id again.
from aws-lambda-container-image-converter.
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.
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.
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)
- libraries under /opt are not detected HOT 3
- Feature: Support AWS Batch HOT 1
- SAM Deployment? HOT 4
- Uses Default AWS Profile with no option to change
- Bug: no relevant files found HOT 3
- Provide option for daemon on Windows 7 HOT 1
- Adding support for node 10.x
- Error loading image from docker engine: error during connect: (Windows 10 Pro) HOT 3
- Example Error: No php-example-hello.zip file found in the package path you provided. HOT 1
- Permission error when running script HOT 2
- Layer creation error HOT 2
- Dependabot couldn't find a Gopkg.toml for this project
- Dependabot couldn't find a Gopkg.toml for this project
- Dependabot couldn't find a Gopkg.toml for this project
- Dependabot couldn't find a Gopkg.toml for this project
- Dependabot couldn't find a Gopkg.toml for this project
- Size error when creating large layers
- help with installation HOT 2
- Add python3.8 as a valid runtime HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-lambda-container-image-converter.