From a4e3e1bd1db22044a8adf5ea3f0d60dee28150b8 Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Sat, 26 Oct 2024 14:27:07 -0400 Subject: [PATCH] we're going to remove CFN CR stuff as seperate stacks --- .github/workflows/main.yaml | 69 +------------------------------------ 1 file changed, 1 insertion(+), 68 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 010d3dc..d850726 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -73,7 +73,7 @@ jobs: $_f; done - - name: Upload SAM artifact (Management Account / GHA Deploy) + - name: Upload SAM artifact (Management Account) id: upload-sam-gha-template shell: bash run: | @@ -84,17 +84,6 @@ jobs: --region us-east-1 \ --output-template-file packaged-gha-deploy-template.yaml - - name: Upload SAM artifact (Management Account / CFN CR) - id: upload-sam-cfncr-template - shell: bash - run: | - sam package \ - --template stacksets/cfn-custom-resource-deploy/stackset.yaml \ - --s3-bucket aws-sam-cli-sourcebucket-225989329251-us-east-1 \ - --s3-prefix ${{ env.GITHUB_REPOSITORY_OWNER_PART_SLUG_URL }}/${{ env.GITHUB_REPOSITORY_NAME_PART_SLUG_URL }}/${{ env.GITHUB_REF_SLUG_URL }} \ - --region us-east-1 \ - --output-template-file packaged-cfncr-template.yaml - - name: Upload SAM artifact (Build Account) id: upload-sam-stackset-build-template shell: bash @@ -287,59 +276,3 @@ jobs: cfn_capabilities: CAPABILITY_NAMED_IAM,CAPABILITY_AUTO_EXPAND env_json: ${{ toJson(env) }} secrets_json: ${{ toJson(secrets) }} - - deploy_management_cfn_cr: - needs: - - build - - deploy_build_stacksets - runs-on: ubuntu-latest - permissions: - id-token: write - contents: read - - steps: - - name: Set extra GitHub environment variables - id: github-env-vars - uses: rlespinasse/github-slug-action@v4 - - - name: Download artifact - id: download-artifact - uses: actions/download-artifact@v4 - with: - name: ${{ env.GITHUB_REPOSITORY_SLUG }}-${{ env.GITHUB_REF_SLUG_URL }}-${{ github.run_number }}-${{ github.sha }} - - - name: Setup Python - id: install-python - uses: actions/setup-python@v3 - with: - python-version: 3.12 - cache: pipenv - - - name: Install pipenv - id: install-pipenv - shell: bash - run: python -m pip install --upgrade pipenv - - - - name: Install dependencies - id: install-python-deps - shell: bash - run: pipenv install --dev - - - name: Assume AWS Credentials - uses: ServerlessOpsIO/gha-assume-aws-credentials@v1 - with: - build_aws_account_id: ${{ secrets.AWS_CICD_ACCOUNT_ID }} - gha_build_role_name: ${{ secrets.AWS_CICD_BUILD_ROLE_NAME }} - deploy_aws_account_id: ${{ secrets.AWS_MANAGEMENT_ACCOUNT_ID }} - gha_deploy_role_name: ${{ secrets.AWS_CICD_DEPLOY_ROLE_NAME }} - - - name: Deploy via AWS SAM (GHA Deploy) - uses: ServerlessOpsIO/gha-deploy-aws-sam@v1 - with: - aws_account_id: ${{ secrets.AWS_MANAGEMENT_ACCOUNT_ID }} - stack_name: "${{ env.GITHUB_REPOSITORY_NAME_PART_SLUG_URL }}-${{ env.GITHUB_EVENT_REF_SLUG_URL }}-cfn-cr" - template_file: packaged-cfncr-template.yaml - cfn_capabilities: CAPABILITY_NAMED_IAM,CAPABILITY_AUTO_EXPAND - env_json: ${{ toJson(env) }} - secrets_json: ${{ toJson(secrets) }}