diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a3057dd..3bdc241 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,8 +10,18 @@ on: jobs: deploy: runs-on: ubuntu-latest + permissions: + id-token: write steps: - - name: Build - shell: bash - run: | - echo Deploying + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v1-node16 + with: + role-to-assume: arn:aws:iam::200049542062:role/gocapture/GithubRole + aws-region: us-west-1 + + - name: Deploy ECS Cluster + uses: aws-actions/aws-cloudformation-github-deploy@v1 + with: + name: GoCaptureECSCluster + template: cloud-formation/ecs.yml + no-fail-on-empty-changeset: 1 diff --git a/cloud-formation/ecs.yml b/cloud-formation/ecs.yml new file mode 100644 index 0000000..bf54116 --- /dev/null +++ b/cloud-formation/ecs.yml @@ -0,0 +1,5 @@ +Resources: + Cluster: + Type: AWS::ECS::Cluster + Properties: + ClusterName: GoCaptureCluster