-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support EC2 AWS credentials and IAM roles chain
In order to avoid passing explicitly the AWS credentials, the resource has been modified to support retrieval of AWS credentials via EC2 metadata. In addition, IAM roles chain is now supported to provide the flexibility required for GOV.UK scenario where the ec2 instances have the credentials of the Concourse worker role which needs to be used to assume the Concourse deployer role. The deployer role is then used to assume a role in the GOV.UK production ECR to pull images. To build and push image, e.g. procedure: ```sh docker build -t registry-image-resource --target tests -f dockerfiles/alpine/Dockerfile . docker tag registry-image-resource:latest fredericfran/registry-image:0.0.2 docker push fredericfran/registry-image:0.0.2 ``` Signed-off-by: Frederic Francois <[email protected]>
- Loading branch information
1 parent
753290b
commit 397083c
Showing
5 changed files
with
54 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters