Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomationD committed Jun 6, 2024
1 parent 3cf2ff1 commit 3955fde
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/run.e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,21 +111,21 @@ jobs:
# Reset state (if any)
curl --insecure -v --request POST http://127.0.0.1:4566/_localstack/state/reset
### Terraform State Setup
# Create R53 domain
echo "Terraform State Setup"
echo "Create R53 domain"
aws route53 create-hosted-zone --name "${NAMESPACE}.local" --caller-reference "2014-04-01-18:47"
# Create S3 state bucket
echo "Create S3 state bucket"
aws s3api create-bucket --bucket "${NAMESPACE}-000000000000-tf-state"
# Create DynamoDB Table
echo "Create DynamoDB Table"
aws dynamodb create-table \
--table-name tf-state-lock \
--attribute-definitions AttributeName=LockID,AttributeType=S \
--key-schema AttributeName=LockID,KeyType=HASH \
--billing-mode PAY_PER_REQUEST
# Create IAM Roles for non-root access
echo "Create IAM Roles for non-root access
aws iam create-role \
--role-name eks-admin \
--assume-role-policy-document '{
Expand All @@ -151,9 +151,9 @@ jobs:
]
}'
""
# Configure User for non-root access
echo "Configure User for non-root access"
aws iam create-user --user-name badger
aws iam create-access-key --user-name badger | jq -r '.AccessKey | "[default]\naws_access_key_id=\(.AccessKeyId)\naws_secret_access_key=\(.SecretAccessKey)\nregion = us-east-1"' >> ~/.aws/credentials
aws iam attach-user-policy --policy-arn arn:aws:iam::aws:policy/AdministratorAccess --user-name badger
Expand Down

0 comments on commit 3955fde

Please sign in to comment.