Skip to content

Commit

Permalink
docs: Get role ARNs using AWS CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
l0b0 committed Sep 30, 2024
1 parent 68db36d commit 481d2ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/infrastructure/kubernetes.version.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ Below is an example of upgrading from v1.27 to v1.28
4. Diff the stack to make sure that only versions are updated
```bash
npx cdk diff Workflows -c ci-role-arn=...
ci_role="$(aws iam list-roles | jq --raw-output '.Roles[] | select(.RoleName | contains("CiTopo")) | select(.RoleName | contains("-CiRole")).Arn')"
admin_role="arn:aws:iam::$(aws sts get-caller-identity --query Account --output text):role/AccountAdminRole"
workflow_maintainer_role="$(aws cloudformation describe-stacks --stack-name=TopographicSharedResourcesProd | jq --raw-output .Stacks[0].Outputs[0].OutputValue)"
npx cdk diff --context=maintainer-arns="${ci_role},${admin_role},${workflow_maintainer_role}" Workflows
```
The only changes should be Kubernetes version related.
Expand Down

0 comments on commit 481d2ab

Please sign in to comment.