Skip to content

Commit

Permalink
add aws login
Browse files Browse the repository at this point in the history
  • Loading branch information
test-cli-e2e-aws committed Dec 5, 2024
1 parent dda8cc2 commit fca68a2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-1
role-to-assume: arn:aws:iam::911167907168:oidc-provider/token.actions.githubusercontent.com
role-session-name: GitHub_to_AWS_via_FederatedOIDC
- name: Store test timestamp
run: echo "TIMESTAMP=$(date +'%s')" >> $GITHUB_ENV
- name: Setup test repository SSH key
Expand Down
2 changes: 2 additions & 0 deletions nuke-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ accounts:
IAMRole:
- property: Name
value: "OrganizationAccountAccessRole"
- property: Name
value: "admin"
IAMRolePolicyAttachment:
- property: RoleName
value: "OrganizationAccountAccessRole"
Expand Down
5 changes: 3 additions & 2 deletions test/plural/lib/aws-teardown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ executor: aws-teardown
input:
resourceGroup: ''
steps:
- script: aws-nuke run --config ../../nuke-config.yml --force --access-key-id $AWS_ACCESS_KEY_ID --secret-access-key $AWS_SECRET_ACCESS_KEY --no-dry-run
retry: 3
- script: aws-nuke run --config ../../nuke-config.yml --force --access-key-id $AWS_ACCESS_KEY_ID --secret-access-key $AWS_SECRET_ACCESS_KEY --no-dry-run --no-alias-check --max-wait-retries 100
retry: 5
timeout: 1800
retry_if:
- result.code ShouldNotEqual 0
delay: 5

0 comments on commit fca68a2

Please sign in to comment.