-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: change cloudwatch test infra from real AWS to local stack
Signed-off-by: Ziwen Ning <[email protected]>
- Loading branch information
Showing
3 changed files
with
34 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
#!/bin/bash | ||
# ecs local endpoint can only use credentials in aws credential file instead of env vars | ||
|
||
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID --profile default | ||
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY --profile default | ||
aws configure set aws_session_token $AWS_SESSION_TOKEN --profile default | ||
aws configure set aws_access_key_id dummy-aws-access-key-id --profile default | ||
aws configure set aws_secret_access_key dummy-aws-secret-access-key --profile default | ||
docker run -d --name ecs-local-endpoint -p 51679:51679 \ | ||
-v $HOME/.aws/:/home/.aws/ -e AWS_REGION=us-west-2 \ | ||
-v $HOME/.aws/:/home/.aws/ -e AWS_REGION=us-east-1 \ | ||
-e HOME="/home" -e AWS_PROFILE=default -e ECS_LOCAL_METADATA_PORT=51679 \ | ||
amazon/amazon-ecs-local-container-endpoints |