Skip to content

Commit f2d42ca

Browse files
committed
eli-445 adding bootstrap deploy to publish workflow
1 parent 20ba078 commit f2d42ca

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/cicd-2-publish.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,22 @@ jobs:
8787
name: lambda-${{ needs.metadata.outputs.version }}
8888
path: dist/lambda.zip
8989

90-
- name: "Configure AWS Credentials"
90+
- name: "Configure AWS Credentials (IAM Bootstrap Role)"
91+
uses: aws-actions/configure-aws-credentials@v6
92+
with:
93+
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/service-roles/github-actions-iam-bootstrap-role
94+
aws-region: eu-west-2
95+
96+
- name: "Deploy IAM roles (iams-developer-roles stack)"
97+
env:
98+
ENVIRONMENT: dev
99+
working-directory: ./infrastructure
100+
run: |
101+
make terraform-init env=$ENVIRONMENT stack=iams-developer-roles
102+
terraform -chdir=./stacks/iams-developer-roles plan -var="environment=$ENVIRONMENT" -out=tfplan
103+
terraform -chdir=./stacks/iams-developer-roles apply -auto-approve tfplan
104+
105+
- name: "Configure AWS Credentials (Main Deployment Role)"
91106
uses: aws-actions/configure-aws-credentials@v6
92107
with:
93108
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/service-roles/github-actions-api-deployment-role

0 commit comments

Comments
 (0)