Skip to content

Commit 8a256b7

Browse files
authored
Merge pull request #12 from codeguru42/4-aws-ecs
4 aws ecs
2 parents 4828e3c + 95680c2 commit 8a256b7

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,18 @@ on:
1010
jobs:
1111
deploy:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write
1315
steps:
14-
- name: Build
15-
shell: bash
16-
run: |
17-
echo Deploying
16+
- name: Configure AWS credentials
17+
uses: aws-actions/configure-aws-credentials@v1-node16
18+
with:
19+
role-to-assume: arn:aws:iam::200049542062:role/gocapture/GithubRole
20+
aws-region: us-west-1
21+
22+
- name: Deploy ECS Cluster
23+
uses: aws-actions/aws-cloudformation-github-deploy@v1
24+
with:
25+
name: GoCaptureECSCluster
26+
template: cloud-formation/ecs.yml
27+
no-fail-on-empty-changeset: 1

cloud-formation/ecs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Resources:
2+
Cluster:
3+
Type: AWS::ECS::Cluster
4+
Properties:
5+
ClusterName: GoCaptureCluster

0 commit comments

Comments
 (0)