From 6d92c8b31541381e16507f0be2f608db30164139 Mon Sep 17 00:00:00 2001 From: Ammar <56042290+ammarkarachi@users.noreply.github.com> Date: Wed, 6 Oct 2021 19:12:03 -0700 Subject: [PATCH] fix(amplify-category-api): custom policies attached to TaskRoleArn (#8376) --- .circleci/config.yml | 1268 ++++++++++------- .../cfn-pre-processor.ts | 48 +- 2 files changed, 784 insertions(+), 532 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index eb7d605f094..708e82d6809 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1205,6 +1205,110 @@ jobs: AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/container-hosting.test.ts CLI_REGION: ap-southeast-1 + custom_policies_container-amplify_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + TEST_SUITE: src/__tests__/custom_policies_container.test.ts + CLI_REGION: ap-southeast-2 + custom_policies_function-amplify_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + TEST_SUITE: src/__tests__/custom_policies_function.test.ts + CLI_REGION: us-east-2 frontend_config_drift-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1256,7 +1360,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/frontend_config_drift.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 function_5-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1308,7 +1412,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/function_5.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 function_6-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1360,7 +1464,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/function_6.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 function_7-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1412,7 +1516,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/function_7.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 function_8-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1464,7 +1568,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/function_8.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 function_9-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1516,7 +1620,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/function_9.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 hooks-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1568,7 +1672,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/hooks.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 iam-permissions-boundary-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1620,7 +1724,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 import_auth_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1672,7 +1776,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/import_auth_3.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 import_dynamodb_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1724,7 +1828,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/import_dynamodb_2.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 import_s3_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1776,7 +1880,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/import_s3_2.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 layer-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1828,7 +1932,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/layer-1.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 layer-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1880,7 +1984,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/layer-2.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 layer-3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1932,7 +2036,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/layer-3.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 layer-4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1984,7 +2088,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/layer-4.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 migration-api-connection-migration2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2036,7 +2140,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/migration/api.connection.migration2.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 migration-node-function-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2088,7 +2192,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/migration/node.function.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 pull-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2140,7 +2244,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/pull.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 s3-sse-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2192,7 +2296,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/s3-sse.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 schema-auth-12-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2244,7 +2348,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-12.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 schema-auth-13-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2296,7 +2400,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-13.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 schema-function-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2348,7 +2452,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-function-1.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-function-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2400,7 +2504,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-function-2.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 schema-iterative-update-locking-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2452,7 +2556,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 storage-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2504,7 +2608,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/storage-1.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 storage-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2556,7 +2660,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/storage-2.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 storage-3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2608,7 +2712,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/storage-3.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 plugin-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2660,7 +2764,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/plugin.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 init-special-case-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2712,7 +2816,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/init-special-case.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 datastore-modelgen-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2764,7 +2868,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/datastore-modelgen.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 amplify-configure-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2816,7 +2920,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/amplify-configure.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 init-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2868,7 +2972,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/init.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 tags-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2920,7 +3024,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/tags.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 notifications-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2972,7 +3076,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/notifications.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 schema-versioned-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3024,7 +3128,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-versioned.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 schema-data-access-patterns-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3076,7 +3180,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 interactions-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3180,7 +3284,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-predictions.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 amplify-app-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3232,7 +3336,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/amplify-app.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 hosting-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3284,7 +3388,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/hosting.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 analytics-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3336,7 +3440,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/analytics.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 feature-flags-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3388,7 +3492,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/feature-flags.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 schema-iterative-update-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3440,7 +3544,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 containers-api-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3492,7 +3596,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/containers-api.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 predictions-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3544,7 +3648,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/predictions.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 hostingPROD-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3596,7 +3700,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/hostingPROD.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 geo-add-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3648,7 +3752,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/geo-add.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 geo-update-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3700,7 +3804,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/geo-update.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 geo-remove-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3752,7 +3856,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/geo-remove.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-central-1 schema-auth-10-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3804,7 +3908,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-10.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-key-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3856,7 +3960,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-key.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 auth_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3908,7 +4012,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/auth_1.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 auth_5-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3960,7 +4064,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/auth_5.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 function_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4012,7 +4116,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/function_3.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 schema-iterative-update-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4064,7 +4168,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 schema-auth-3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4116,7 +4220,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-3.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 delete-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4168,7 +4272,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/delete.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 function_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4220,7 +4324,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/function_2.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 auth_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4272,7 +4376,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/auth_3.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 migration-api-key-migration1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4324,7 +4428,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 auth_4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4376,7 +4480,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/auth_4.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 schema-auth-7-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4428,7 +4532,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-7.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 schema-auth-8-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4480,7 +4584,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-8.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 schema-searchable-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4532,7 +4636,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-searchable.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-auth-4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4584,7 +4688,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-4.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 api_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4636,7 +4740,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/api_3.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 import_auth_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4688,7 +4792,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/import_auth_1.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 import_auth_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4740,7 +4844,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/import_auth_2.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 import_s3_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4792,7 +4896,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/import_s3_1.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 USE_PARENT_ACCOUNT: 1 import_dynamodb_1-amplify_e2e_tests: working_directory: ~/repo @@ -4845,7 +4949,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 USE_PARENT_ACCOUNT: 1 schema-iterative-rollback-1-amplify_e2e_tests: working_directory: ~/repo @@ -4898,7 +5002,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-iterative-rollback-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4950,7 +5054,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 env-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5002,7 +5106,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/env.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 auth_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5054,7 +5158,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/auth_2.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 USE_PARENT_ACCOUNT: 1 schema-auth-9-amplify_e2e_tests: working_directory: ~/repo @@ -5107,7 +5211,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-9.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 schema-auth-11-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5159,7 +5263,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-11.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 migration-api-key-migration2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5211,7 +5315,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 USE_PARENT_ACCOUNT: 1 function_1-amplify_e2e_tests: working_directory: ~/repo @@ -5264,7 +5368,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/function_1.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-auth-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5316,7 +5420,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-1.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 function_4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5368,7 +5472,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/function_4.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 schema-model-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5420,7 +5524,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-model.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 migration-api-connection-migration-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5472,7 +5576,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 schema-connection-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5524,7 +5628,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-connection.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 schema-auth-6-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5576,7 +5680,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-6.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 schema-iterative-update-3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5628,7 +5732,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-auth-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5680,7 +5784,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-2.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 api_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5732,7 +5836,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/api_1.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 USE_PARENT_ACCOUNT: 1 schema-auth-5-amplify_e2e_tests: working_directory: ~/repo @@ -5785,7 +5889,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-5.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 api_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5837,7 +5941,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/api_2.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 USE_PARENT_ACCOUNT: 1 api_5-amplify_e2e_tests: working_directory: ~/repo @@ -5890,7 +5994,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/api_5.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 schema-iterative-update-4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5942,7 +6046,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 api_4-amplify_e2e_tests_pkg: parameters: os: @@ -6153,6 +6257,76 @@ jobs: environment: TEST_SUITE: src/__tests__/container-hosting.test.ts CLI_REGION: ap-southeast-1 + custom_policies_container-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/custom_policies_container.test.ts + CLI_REGION: ap-southeast-2 + custom_policies_function-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/custom_policies_function.test.ts + CLI_REGION: us-east-2 frontend_config_drift-amplify_e2e_tests_pkg: parameters: os: @@ -6187,7 +6361,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/frontend_config_drift.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 function_5-amplify_e2e_tests_pkg: parameters: os: @@ -6222,7 +6396,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/function_5.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 function_6-amplify_e2e_tests_pkg: parameters: os: @@ -6257,7 +6431,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/function_6.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 function_7-amplify_e2e_tests_pkg: parameters: os: @@ -6292,7 +6466,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/function_7.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 function_8-amplify_e2e_tests_pkg: parameters: os: @@ -6327,7 +6501,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/function_8.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 function_9-amplify_e2e_tests_pkg: parameters: os: @@ -6362,7 +6536,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/function_9.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 hooks-amplify_e2e_tests_pkg: parameters: os: @@ -6397,7 +6571,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/hooks.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 iam-permissions-boundary-amplify_e2e_tests_pkg: parameters: os: @@ -6432,7 +6606,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 import_auth_3-amplify_e2e_tests_pkg: parameters: os: @@ -6467,7 +6641,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/import_auth_3.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 import_dynamodb_2-amplify_e2e_tests_pkg: parameters: os: @@ -6502,7 +6676,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/import_dynamodb_2.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 import_s3_2-amplify_e2e_tests_pkg: parameters: os: @@ -6537,7 +6711,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/import_s3_2.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 layer-1-amplify_e2e_tests_pkg: parameters: os: @@ -6572,7 +6746,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/layer-1.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 layer-2-amplify_e2e_tests_pkg: parameters: os: @@ -6607,7 +6781,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/layer-2.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 layer-3-amplify_e2e_tests_pkg: parameters: os: @@ -6642,7 +6816,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/layer-3.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 layer-4-amplify_e2e_tests_pkg: parameters: os: @@ -6677,7 +6851,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/layer-4.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 migration-api-connection-migration2-amplify_e2e_tests_pkg: parameters: os: @@ -6712,7 +6886,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/migration/api.connection.migration2.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 migration-node-function-amplify_e2e_tests_pkg: parameters: os: @@ -6747,7 +6921,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/migration/node.function.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 pull-amplify_e2e_tests_pkg: parameters: os: @@ -6782,7 +6956,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/pull.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 s3-sse-amplify_e2e_tests_pkg: parameters: os: @@ -6817,7 +6991,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/s3-sse.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 schema-auth-12-amplify_e2e_tests_pkg: parameters: os: @@ -6852,7 +7026,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-12.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 schema-auth-13-amplify_e2e_tests_pkg: parameters: os: @@ -6887,7 +7061,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-13.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 schema-function-1-amplify_e2e_tests_pkg: parameters: os: @@ -6922,7 +7096,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-function-1.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-function-2-amplify_e2e_tests_pkg: parameters: os: @@ -6957,7 +7131,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-function-2.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 schema-iterative-update-locking-amplify_e2e_tests_pkg: parameters: os: @@ -6992,7 +7166,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 storage-1-amplify_e2e_tests_pkg: parameters: os: @@ -7027,7 +7201,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/storage-1.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 storage-2-amplify_e2e_tests_pkg: parameters: os: @@ -7062,7 +7236,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/storage-2.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 storage-3-amplify_e2e_tests_pkg: parameters: os: @@ -7097,7 +7271,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/storage-3.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 plugin-amplify_e2e_tests_pkg: parameters: os: @@ -7132,7 +7306,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/plugin.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 init-special-case-amplify_e2e_tests_pkg: parameters: os: @@ -7167,7 +7341,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/init-special-case.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 datastore-modelgen-amplify_e2e_tests_pkg: parameters: os: @@ -7202,7 +7376,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/datastore-modelgen.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 amplify-configure-amplify_e2e_tests_pkg: parameters: os: @@ -7237,7 +7411,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/amplify-configure.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 init-amplify_e2e_tests_pkg: parameters: os: @@ -7272,7 +7446,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/init.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 tags-amplify_e2e_tests_pkg: parameters: os: @@ -7307,7 +7481,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/tags.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 notifications-amplify_e2e_tests_pkg: parameters: os: @@ -7342,7 +7516,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/notifications.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 schema-versioned-amplify_e2e_tests_pkg: parameters: os: @@ -7377,7 +7551,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-versioned.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 schema-data-access-patterns-amplify_e2e_tests_pkg: parameters: os: @@ -7412,7 +7586,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 interactions-amplify_e2e_tests_pkg: parameters: os: @@ -7482,7 +7656,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-predictions.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 amplify-app-amplify_e2e_tests_pkg: parameters: os: @@ -7517,7 +7691,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/amplify-app.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 hosting-amplify_e2e_tests_pkg: parameters: os: @@ -7552,7 +7726,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/hosting.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 analytics-amplify_e2e_tests_pkg: parameters: os: @@ -7587,7 +7761,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/analytics.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 feature-flags-amplify_e2e_tests_pkg: parameters: os: @@ -7622,7 +7796,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/feature-flags.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 schema-iterative-update-2-amplify_e2e_tests_pkg: parameters: os: @@ -7657,7 +7831,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 containers-api-amplify_e2e_tests_pkg: parameters: os: @@ -7692,7 +7866,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/containers-api.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 predictions-amplify_e2e_tests_pkg: parameters: os: @@ -7727,7 +7901,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/predictions.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 hostingPROD-amplify_e2e_tests_pkg: parameters: os: @@ -7762,7 +7936,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/hostingPROD.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 geo-add-amplify_e2e_tests_pkg: parameters: os: @@ -7797,7 +7971,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/geo-add.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 geo-update-amplify_e2e_tests_pkg: parameters: os: @@ -7832,7 +8006,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/geo-update.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 geo-remove-amplify_e2e_tests_pkg: parameters: os: @@ -7867,7 +8041,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/geo-remove.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-central-1 schema-auth-10-amplify_e2e_tests_pkg: parameters: os: @@ -7902,7 +8076,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-10.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-key-amplify_e2e_tests_pkg: parameters: os: @@ -7937,7 +8111,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-key.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 auth_1-amplify_e2e_tests_pkg: parameters: os: @@ -7972,7 +8146,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/auth_1.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 auth_5-amplify_e2e_tests_pkg: parameters: os: @@ -8007,7 +8181,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/auth_5.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 function_3-amplify_e2e_tests_pkg: parameters: os: @@ -8042,7 +8216,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/function_3.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 schema-iterative-update-1-amplify_e2e_tests_pkg: parameters: os: @@ -8077,7 +8251,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 schema-auth-3-amplify_e2e_tests_pkg: parameters: os: @@ -8112,7 +8286,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-3.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 delete-amplify_e2e_tests_pkg: parameters: os: @@ -8147,7 +8321,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/delete.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 function_2-amplify_e2e_tests_pkg: parameters: os: @@ -8182,7 +8356,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/function_2.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 auth_3-amplify_e2e_tests_pkg: parameters: os: @@ -8217,7 +8391,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/auth_3.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 migration-api-key-migration1-amplify_e2e_tests_pkg: parameters: os: @@ -8252,7 +8426,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 auth_4-amplify_e2e_tests_pkg: parameters: os: @@ -8287,7 +8461,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/auth_4.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 schema-auth-7-amplify_e2e_tests_pkg: parameters: os: @@ -8322,7 +8496,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-7.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 schema-auth-8-amplify_e2e_tests_pkg: parameters: os: @@ -8357,7 +8531,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-8.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 schema-searchable-amplify_e2e_tests_pkg: parameters: os: @@ -8392,7 +8566,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-searchable.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-auth-4-amplify_e2e_tests_pkg: parameters: os: @@ -8427,7 +8601,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-4.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 api_3-amplify_e2e_tests_pkg: parameters: os: @@ -8462,7 +8636,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/api_3.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 import_auth_1-amplify_e2e_tests_pkg: parameters: os: @@ -8497,7 +8671,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/import_auth_1.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 import_auth_2-amplify_e2e_tests_pkg: parameters: os: @@ -8532,7 +8706,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/import_auth_2.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 import_s3_1-amplify_e2e_tests_pkg: parameters: os: @@ -8567,7 +8741,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/import_s3_1.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 USE_PARENT_ACCOUNT: 1 import_dynamodb_1-amplify_e2e_tests_pkg: parameters: @@ -8603,7 +8777,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 USE_PARENT_ACCOUNT: 1 schema-iterative-rollback-1-amplify_e2e_tests_pkg: parameters: @@ -8639,7 +8813,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-iterative-rollback-2-amplify_e2e_tests_pkg: parameters: os: @@ -8674,7 +8848,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 env-amplify_e2e_tests_pkg: parameters: os: @@ -8709,7 +8883,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/env.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 auth_2-amplify_e2e_tests_pkg: parameters: os: @@ -8744,7 +8918,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/auth_2.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 USE_PARENT_ACCOUNT: 1 schema-auth-9-amplify_e2e_tests_pkg: parameters: @@ -8780,7 +8954,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-9.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 schema-auth-11-amplify_e2e_tests_pkg: parameters: os: @@ -8815,7 +8989,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-11.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 migration-api-key-migration2-amplify_e2e_tests_pkg: parameters: os: @@ -8850,7 +9024,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 USE_PARENT_ACCOUNT: 1 function_1-amplify_e2e_tests_pkg: parameters: @@ -8886,7 +9060,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/function_1.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-auth-1-amplify_e2e_tests_pkg: parameters: os: @@ -8921,7 +9095,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-1.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 function_4-amplify_e2e_tests_pkg: parameters: os: @@ -8956,7 +9130,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/function_4.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 schema-model-amplify_e2e_tests_pkg: parameters: os: @@ -8991,7 +9165,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-model.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 migration-api-connection-migration-amplify_e2e_tests_pkg: parameters: os: @@ -9026,7 +9200,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 schema-connection-amplify_e2e_tests_pkg: parameters: os: @@ -9061,7 +9235,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-connection.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 schema-auth-6-amplify_e2e_tests_pkg: parameters: os: @@ -9096,7 +9270,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-6.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 schema-iterative-update-3-amplify_e2e_tests_pkg: parameters: os: @@ -9131,7 +9305,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-auth-2-amplify_e2e_tests_pkg: parameters: os: @@ -9166,7 +9340,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-2.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 api_1-amplify_e2e_tests_pkg: parameters: os: @@ -9201,7 +9375,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/api_1.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 USE_PARENT_ACCOUNT: 1 schema-auth-5-amplify_e2e_tests_pkg: parameters: @@ -9237,7 +9411,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-5.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 api_2-amplify_e2e_tests_pkg: parameters: os: @@ -9272,7 +9446,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/api_2.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 USE_PARENT_ACCOUNT: 1 api_5-amplify_e2e_tests_pkg: parameters: @@ -9308,7 +9482,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/api_5.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 schema-iterative-update-4-amplify_e2e_tests_pkg: parameters: os: @@ -9343,7 +9517,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 ConnectionsWithAuthTests-e2e-graphql_e2e_tests: working_directory: ~/repo parameters: @@ -11149,35 +11323,65 @@ workflows: requires: - amplify_migration_tests_v4_30_0 - api_4-amplify_e2e_tests + - custom_policies_function-amplify_e2e_tests + - hooks-amplify_e2e_tests + - layer-3-amplify_e2e_tests + - schema-auth-13-amplify_e2e_tests + - plugin-amplify_e2e_tests + - schema-versioned-amplify_e2e_tests + - feature-flags-amplify_e2e_tests + - geo-add-amplify_e2e_tests + - schema-auth-3-amplify_e2e_tests + - schema-auth-8-amplify_e2e_tests + - import_dynamodb_1-amplify_e2e_tests + - migration-api-key-migration2-amplify_e2e_tests + - schema-auth-6-amplify_e2e_tests + - schema-iterative-update-4-amplify_e2e_tests + - auth_6-amplify_e2e_tests + - frontend_config_drift-amplify_e2e_tests + - iam-permissions-boundary-amplify_e2e_tests + - layer-4-amplify_e2e_tests + - schema-function-1-amplify_e2e_tests + - init-special-case-amplify_e2e_tests + - schema-data-access-patterns-amplify_e2e_tests + - interactions-amplify_e2e_tests + - schema-iterative-update-2-amplify_e2e_tests + - geo-update-amplify_e2e_tests + - schema-auth-10-amplify_e2e_tests + - delete-amplify_e2e_tests + - schema-searchable-amplify_e2e_tests + - schema-iterative-rollback-1-amplify_e2e_tests + - function_1-amplify_e2e_tests + - schema-iterative-update-3-amplify_e2e_tests + - auth_7-amplify_e2e_tests - function_5-amplify_e2e_tests - import_auth_3-amplify_e2e_tests - migration-api-connection-migration2-amplify_e2e_tests - schema-function-2-amplify_e2e_tests - datastore-modelgen-amplify_e2e_tests - containers-api-amplify_e2e_tests - - geo-remove-amplify_e2e_tests - schema-key-amplify_e2e_tests - function_2-amplify_e2e_tests - schema-auth-4-amplify_e2e_tests - schema-iterative-rollback-2-amplify_e2e_tests - schema-auth-1-amplify_e2e_tests - schema-auth-2-amplify_e2e_tests - - auth_6-amplify_e2e_tests + - auth_8-amplify_e2e_tests - function_6-amplify_e2e_tests - import_dynamodb_2-amplify_e2e_tests - migration-node-function-amplify_e2e_tests - schema-iterative-update-locking-amplify_e2e_tests - amplify-configure-amplify_e2e_tests - - interactions-amplify_e2e_tests - schema-predictions-amplify_e2e_tests - predictions-amplify_e2e_tests + - geo-remove-amplify_e2e_tests - auth_1-amplify_e2e_tests - auth_3-amplify_e2e_tests - api_3-amplify_e2e_tests - env-amplify_e2e_tests - function_4-amplify_e2e_tests - api_1-amplify_e2e_tests - - auth_7-amplify_e2e_tests + - configure-project-amplify_e2e_tests - function_7-amplify_e2e_tests - import_s3_2-amplify_e2e_tests - pull-amplify_e2e_tests @@ -11191,7 +11395,7 @@ workflows: - auth_2-amplify_e2e_tests - schema-model-amplify_e2e_tests - schema-auth-5-amplify_e2e_tests - - auth_8-amplify_e2e_tests + - container-hosting-amplify_e2e_tests - function_8-amplify_e2e_tests - layer-1-amplify_e2e_tests - s3-sse-amplify_e2e_tests @@ -11204,7 +11408,7 @@ workflows: - schema-auth-9-amplify_e2e_tests - migration-api-connection-migration-amplify_e2e_tests - api_2-amplify_e2e_tests - - configure-project-amplify_e2e_tests + - custom_policies_container-amplify_e2e_tests - function_9-amplify_e2e_tests - layer-2-amplify_e2e_tests - schema-auth-12-amplify_e2e_tests @@ -11217,64 +11421,66 @@ workflows: - schema-auth-11-amplify_e2e_tests - schema-connection-amplify_e2e_tests - api_5-amplify_e2e_tests - - container-hosting-amplify_e2e_tests - - hooks-amplify_e2e_tests - - layer-3-amplify_e2e_tests - - schema-auth-13-amplify_e2e_tests - - plugin-amplify_e2e_tests - - schema-versioned-amplify_e2e_tests - - feature-flags-amplify_e2e_tests - - geo-add-amplify_e2e_tests - - schema-auth-3-amplify_e2e_tests - - schema-auth-8-amplify_e2e_tests - - import_dynamodb_1-amplify_e2e_tests - - migration-api-key-migration2-amplify_e2e_tests - - schema-auth-6-amplify_e2e_tests - - schema-iterative-update-4-amplify_e2e_tests - - frontend_config_drift-amplify_e2e_tests - - iam-permissions-boundary-amplify_e2e_tests - - layer-4-amplify_e2e_tests - - schema-function-1-amplify_e2e_tests - - init-special-case-amplify_e2e_tests - - schema-data-access-patterns-amplify_e2e_tests - - schema-iterative-update-2-amplify_e2e_tests - - geo-update-amplify_e2e_tests - - schema-auth-10-amplify_e2e_tests - - delete-amplify_e2e_tests - - schema-searchable-amplify_e2e_tests - - schema-iterative-rollback-1-amplify_e2e_tests - - function_1-amplify_e2e_tests - - schema-iterative-update-3-amplify_e2e_tests - api_4-amplify_e2e_tests_pkg + - custom_policies_function-amplify_e2e_tests_pkg + - hooks-amplify_e2e_tests_pkg + - layer-3-amplify_e2e_tests_pkg + - schema-auth-13-amplify_e2e_tests_pkg + - plugin-amplify_e2e_tests_pkg + - schema-versioned-amplify_e2e_tests_pkg + - feature-flags-amplify_e2e_tests_pkg + - geo-add-amplify_e2e_tests_pkg + - schema-auth-3-amplify_e2e_tests_pkg + - schema-auth-8-amplify_e2e_tests_pkg + - import_dynamodb_1-amplify_e2e_tests_pkg + - migration-api-key-migration2-amplify_e2e_tests_pkg + - schema-auth-6-amplify_e2e_tests_pkg + - schema-iterative-update-4-amplify_e2e_tests_pkg + - auth_6-amplify_e2e_tests_pkg + - frontend_config_drift-amplify_e2e_tests_pkg + - iam-permissions-boundary-amplify_e2e_tests_pkg + - layer-4-amplify_e2e_tests_pkg + - schema-function-1-amplify_e2e_tests_pkg + - init-special-case-amplify_e2e_tests_pkg + - schema-data-access-patterns-amplify_e2e_tests_pkg + - interactions-amplify_e2e_tests_pkg + - schema-iterative-update-2-amplify_e2e_tests_pkg + - geo-update-amplify_e2e_tests_pkg + - schema-auth-10-amplify_e2e_tests_pkg + - delete-amplify_e2e_tests_pkg + - schema-searchable-amplify_e2e_tests_pkg + - schema-iterative-rollback-1-amplify_e2e_tests_pkg + - function_1-amplify_e2e_tests_pkg + - schema-iterative-update-3-amplify_e2e_tests_pkg + - auth_7-amplify_e2e_tests_pkg - function_5-amplify_e2e_tests_pkg - import_auth_3-amplify_e2e_tests_pkg - migration-api-connection-migration2-amplify_e2e_tests_pkg - schema-function-2-amplify_e2e_tests_pkg - datastore-modelgen-amplify_e2e_tests_pkg - containers-api-amplify_e2e_tests_pkg - - geo-remove-amplify_e2e_tests_pkg - schema-key-amplify_e2e_tests_pkg - function_2-amplify_e2e_tests_pkg - schema-auth-4-amplify_e2e_tests_pkg - schema-iterative-rollback-2-amplify_e2e_tests_pkg - schema-auth-1-amplify_e2e_tests_pkg - schema-auth-2-amplify_e2e_tests_pkg - - auth_6-amplify_e2e_tests_pkg + - auth_8-amplify_e2e_tests_pkg - function_6-amplify_e2e_tests_pkg - import_dynamodb_2-amplify_e2e_tests_pkg - migration-node-function-amplify_e2e_tests_pkg - schema-iterative-update-locking-amplify_e2e_tests_pkg - amplify-configure-amplify_e2e_tests_pkg - - interactions-amplify_e2e_tests_pkg - schema-predictions-amplify_e2e_tests_pkg - predictions-amplify_e2e_tests_pkg + - geo-remove-amplify_e2e_tests_pkg - auth_1-amplify_e2e_tests_pkg - auth_3-amplify_e2e_tests_pkg - api_3-amplify_e2e_tests_pkg - env-amplify_e2e_tests_pkg - function_4-amplify_e2e_tests_pkg - api_1-amplify_e2e_tests_pkg - - auth_7-amplify_e2e_tests_pkg + - configure-project-amplify_e2e_tests_pkg - function_7-amplify_e2e_tests_pkg - import_s3_2-amplify_e2e_tests_pkg - pull-amplify_e2e_tests_pkg @@ -11288,7 +11494,7 @@ workflows: - auth_2-amplify_e2e_tests_pkg - schema-model-amplify_e2e_tests_pkg - schema-auth-5-amplify_e2e_tests_pkg - - auth_8-amplify_e2e_tests_pkg + - container-hosting-amplify_e2e_tests_pkg - function_8-amplify_e2e_tests_pkg - layer-1-amplify_e2e_tests_pkg - s3-sse-amplify_e2e_tests_pkg @@ -11301,7 +11507,7 @@ workflows: - schema-auth-9-amplify_e2e_tests_pkg - migration-api-connection-migration-amplify_e2e_tests_pkg - api_2-amplify_e2e_tests_pkg - - configure-project-amplify_e2e_tests_pkg + - custom_policies_container-amplify_e2e_tests_pkg - function_9-amplify_e2e_tests_pkg - layer-2-amplify_e2e_tests_pkg - schema-auth-12-amplify_e2e_tests_pkg @@ -11314,34 +11520,6 @@ workflows: - schema-auth-11-amplify_e2e_tests_pkg - schema-connection-amplify_e2e_tests_pkg - api_5-amplify_e2e_tests_pkg - - container-hosting-amplify_e2e_tests_pkg - - hooks-amplify_e2e_tests_pkg - - layer-3-amplify_e2e_tests_pkg - - schema-auth-13-amplify_e2e_tests_pkg - - plugin-amplify_e2e_tests_pkg - - schema-versioned-amplify_e2e_tests_pkg - - feature-flags-amplify_e2e_tests_pkg - - geo-add-amplify_e2e_tests_pkg - - schema-auth-3-amplify_e2e_tests_pkg - - schema-auth-8-amplify_e2e_tests_pkg - - import_dynamodb_1-amplify_e2e_tests_pkg - - migration-api-key-migration2-amplify_e2e_tests_pkg - - schema-auth-6-amplify_e2e_tests_pkg - - schema-iterative-update-4-amplify_e2e_tests_pkg - - frontend_config_drift-amplify_e2e_tests_pkg - - iam-permissions-boundary-amplify_e2e_tests_pkg - - layer-4-amplify_e2e_tests_pkg - - schema-function-1-amplify_e2e_tests_pkg - - init-special-case-amplify_e2e_tests_pkg - - schema-data-access-patterns-amplify_e2e_tests_pkg - - schema-iterative-update-2-amplify_e2e_tests_pkg - - geo-update-amplify_e2e_tests_pkg - - schema-auth-10-amplify_e2e_tests_pkg - - delete-amplify_e2e_tests_pkg - - schema-searchable-amplify_e2e_tests_pkg - - schema-iterative-rollback-1-amplify_e2e_tests_pkg - - function_1-amplify_e2e_tests_pkg - - schema-iterative-update-3-amplify_e2e_tests_pkg - >- migration_tests-auth-deployment-migration-auth-deployment-secrets-amplify_migration_tests_v4 - update_tests-function_migration_update-amplify_migration_tests_v4 @@ -11387,35 +11565,65 @@ workflows: - amplify_migration_tests_multi_env_layers - github_prerelease_install_sanity_check - api_4-amplify_e2e_tests + - custom_policies_function-amplify_e2e_tests + - hooks-amplify_e2e_tests + - layer-3-amplify_e2e_tests + - schema-auth-13-amplify_e2e_tests + - plugin-amplify_e2e_tests + - schema-versioned-amplify_e2e_tests + - feature-flags-amplify_e2e_tests + - geo-add-amplify_e2e_tests + - schema-auth-3-amplify_e2e_tests + - schema-auth-8-amplify_e2e_tests + - import_dynamodb_1-amplify_e2e_tests + - migration-api-key-migration2-amplify_e2e_tests + - schema-auth-6-amplify_e2e_tests + - schema-iterative-update-4-amplify_e2e_tests + - auth_6-amplify_e2e_tests + - frontend_config_drift-amplify_e2e_tests + - iam-permissions-boundary-amplify_e2e_tests + - layer-4-amplify_e2e_tests + - schema-function-1-amplify_e2e_tests + - init-special-case-amplify_e2e_tests + - schema-data-access-patterns-amplify_e2e_tests + - interactions-amplify_e2e_tests + - schema-iterative-update-2-amplify_e2e_tests + - geo-update-amplify_e2e_tests + - schema-auth-10-amplify_e2e_tests + - delete-amplify_e2e_tests + - schema-searchable-amplify_e2e_tests + - schema-iterative-rollback-1-amplify_e2e_tests + - function_1-amplify_e2e_tests + - schema-iterative-update-3-amplify_e2e_tests + - auth_7-amplify_e2e_tests - function_5-amplify_e2e_tests - import_auth_3-amplify_e2e_tests - migration-api-connection-migration2-amplify_e2e_tests - schema-function-2-amplify_e2e_tests - datastore-modelgen-amplify_e2e_tests - containers-api-amplify_e2e_tests - - geo-remove-amplify_e2e_tests - schema-key-amplify_e2e_tests - function_2-amplify_e2e_tests - schema-auth-4-amplify_e2e_tests - schema-iterative-rollback-2-amplify_e2e_tests - schema-auth-1-amplify_e2e_tests - schema-auth-2-amplify_e2e_tests - - auth_6-amplify_e2e_tests + - auth_8-amplify_e2e_tests - function_6-amplify_e2e_tests - import_dynamodb_2-amplify_e2e_tests - migration-node-function-amplify_e2e_tests - schema-iterative-update-locking-amplify_e2e_tests - amplify-configure-amplify_e2e_tests - - interactions-amplify_e2e_tests - schema-predictions-amplify_e2e_tests - predictions-amplify_e2e_tests + - geo-remove-amplify_e2e_tests - auth_1-amplify_e2e_tests - auth_3-amplify_e2e_tests - api_3-amplify_e2e_tests - env-amplify_e2e_tests - function_4-amplify_e2e_tests - api_1-amplify_e2e_tests - - auth_7-amplify_e2e_tests + - configure-project-amplify_e2e_tests - function_7-amplify_e2e_tests - import_s3_2-amplify_e2e_tests - pull-amplify_e2e_tests @@ -11429,7 +11637,7 @@ workflows: - auth_2-amplify_e2e_tests - schema-model-amplify_e2e_tests - schema-auth-5-amplify_e2e_tests - - auth_8-amplify_e2e_tests + - container-hosting-amplify_e2e_tests - function_8-amplify_e2e_tests - layer-1-amplify_e2e_tests - s3-sse-amplify_e2e_tests @@ -11442,7 +11650,7 @@ workflows: - schema-auth-9-amplify_e2e_tests - migration-api-connection-migration-amplify_e2e_tests - api_2-amplify_e2e_tests - - configure-project-amplify_e2e_tests + - custom_policies_container-amplify_e2e_tests - function_9-amplify_e2e_tests - layer-2-amplify_e2e_tests - schema-auth-12-amplify_e2e_tests @@ -11455,64 +11663,66 @@ workflows: - schema-auth-11-amplify_e2e_tests - schema-connection-amplify_e2e_tests - api_5-amplify_e2e_tests - - container-hosting-amplify_e2e_tests - - hooks-amplify_e2e_tests - - layer-3-amplify_e2e_tests - - schema-auth-13-amplify_e2e_tests - - plugin-amplify_e2e_tests - - schema-versioned-amplify_e2e_tests - - feature-flags-amplify_e2e_tests - - geo-add-amplify_e2e_tests - - schema-auth-3-amplify_e2e_tests - - schema-auth-8-amplify_e2e_tests - - import_dynamodb_1-amplify_e2e_tests - - migration-api-key-migration2-amplify_e2e_tests - - schema-auth-6-amplify_e2e_tests - - schema-iterative-update-4-amplify_e2e_tests - - frontend_config_drift-amplify_e2e_tests - - iam-permissions-boundary-amplify_e2e_tests - - layer-4-amplify_e2e_tests - - schema-function-1-amplify_e2e_tests - - init-special-case-amplify_e2e_tests - - schema-data-access-patterns-amplify_e2e_tests - - schema-iterative-update-2-amplify_e2e_tests - - geo-update-amplify_e2e_tests - - schema-auth-10-amplify_e2e_tests - - delete-amplify_e2e_tests - - schema-searchable-amplify_e2e_tests - - schema-iterative-rollback-1-amplify_e2e_tests - - function_1-amplify_e2e_tests - - schema-iterative-update-3-amplify_e2e_tests - api_4-amplify_e2e_tests_pkg + - custom_policies_function-amplify_e2e_tests_pkg + - hooks-amplify_e2e_tests_pkg + - layer-3-amplify_e2e_tests_pkg + - schema-auth-13-amplify_e2e_tests_pkg + - plugin-amplify_e2e_tests_pkg + - schema-versioned-amplify_e2e_tests_pkg + - feature-flags-amplify_e2e_tests_pkg + - geo-add-amplify_e2e_tests_pkg + - schema-auth-3-amplify_e2e_tests_pkg + - schema-auth-8-amplify_e2e_tests_pkg + - import_dynamodb_1-amplify_e2e_tests_pkg + - migration-api-key-migration2-amplify_e2e_tests_pkg + - schema-auth-6-amplify_e2e_tests_pkg + - schema-iterative-update-4-amplify_e2e_tests_pkg + - auth_6-amplify_e2e_tests_pkg + - frontend_config_drift-amplify_e2e_tests_pkg + - iam-permissions-boundary-amplify_e2e_tests_pkg + - layer-4-amplify_e2e_tests_pkg + - schema-function-1-amplify_e2e_tests_pkg + - init-special-case-amplify_e2e_tests_pkg + - schema-data-access-patterns-amplify_e2e_tests_pkg + - interactions-amplify_e2e_tests_pkg + - schema-iterative-update-2-amplify_e2e_tests_pkg + - geo-update-amplify_e2e_tests_pkg + - schema-auth-10-amplify_e2e_tests_pkg + - delete-amplify_e2e_tests_pkg + - schema-searchable-amplify_e2e_tests_pkg + - schema-iterative-rollback-1-amplify_e2e_tests_pkg + - function_1-amplify_e2e_tests_pkg + - schema-iterative-update-3-amplify_e2e_tests_pkg + - auth_7-amplify_e2e_tests_pkg - function_5-amplify_e2e_tests_pkg - import_auth_3-amplify_e2e_tests_pkg - migration-api-connection-migration2-amplify_e2e_tests_pkg - schema-function-2-amplify_e2e_tests_pkg - datastore-modelgen-amplify_e2e_tests_pkg - containers-api-amplify_e2e_tests_pkg - - geo-remove-amplify_e2e_tests_pkg - schema-key-amplify_e2e_tests_pkg - function_2-amplify_e2e_tests_pkg - schema-auth-4-amplify_e2e_tests_pkg - schema-iterative-rollback-2-amplify_e2e_tests_pkg - schema-auth-1-amplify_e2e_tests_pkg - schema-auth-2-amplify_e2e_tests_pkg - - auth_6-amplify_e2e_tests_pkg + - auth_8-amplify_e2e_tests_pkg - function_6-amplify_e2e_tests_pkg - import_dynamodb_2-amplify_e2e_tests_pkg - migration-node-function-amplify_e2e_tests_pkg - schema-iterative-update-locking-amplify_e2e_tests_pkg - amplify-configure-amplify_e2e_tests_pkg - - interactions-amplify_e2e_tests_pkg - schema-predictions-amplify_e2e_tests_pkg - predictions-amplify_e2e_tests_pkg + - geo-remove-amplify_e2e_tests_pkg - auth_1-amplify_e2e_tests_pkg - auth_3-amplify_e2e_tests_pkg - api_3-amplify_e2e_tests_pkg - env-amplify_e2e_tests_pkg - function_4-amplify_e2e_tests_pkg - api_1-amplify_e2e_tests_pkg - - auth_7-amplify_e2e_tests_pkg + - configure-project-amplify_e2e_tests_pkg - function_7-amplify_e2e_tests_pkg - import_s3_2-amplify_e2e_tests_pkg - pull-amplify_e2e_tests_pkg @@ -11526,7 +11736,7 @@ workflows: - auth_2-amplify_e2e_tests_pkg - schema-model-amplify_e2e_tests_pkg - schema-auth-5-amplify_e2e_tests_pkg - - auth_8-amplify_e2e_tests_pkg + - container-hosting-amplify_e2e_tests_pkg - function_8-amplify_e2e_tests_pkg - layer-1-amplify_e2e_tests_pkg - s3-sse-amplify_e2e_tests_pkg @@ -11539,7 +11749,7 @@ workflows: - schema-auth-9-amplify_e2e_tests_pkg - migration-api-connection-migration-amplify_e2e_tests_pkg - api_2-amplify_e2e_tests_pkg - - configure-project-amplify_e2e_tests_pkg + - custom_policies_container-amplify_e2e_tests_pkg - function_9-amplify_e2e_tests_pkg - layer-2-amplify_e2e_tests_pkg - schema-auth-12-amplify_e2e_tests_pkg @@ -11552,34 +11762,6 @@ workflows: - schema-auth-11-amplify_e2e_tests_pkg - schema-connection-amplify_e2e_tests_pkg - api_5-amplify_e2e_tests_pkg - - container-hosting-amplify_e2e_tests_pkg - - hooks-amplify_e2e_tests_pkg - - layer-3-amplify_e2e_tests_pkg - - schema-auth-13-amplify_e2e_tests_pkg - - plugin-amplify_e2e_tests_pkg - - schema-versioned-amplify_e2e_tests_pkg - - feature-flags-amplify_e2e_tests_pkg - - geo-add-amplify_e2e_tests_pkg - - schema-auth-3-amplify_e2e_tests_pkg - - schema-auth-8-amplify_e2e_tests_pkg - - import_dynamodb_1-amplify_e2e_tests_pkg - - migration-api-key-migration2-amplify_e2e_tests_pkg - - schema-auth-6-amplify_e2e_tests_pkg - - schema-iterative-update-4-amplify_e2e_tests_pkg - - frontend_config_drift-amplify_e2e_tests_pkg - - iam-permissions-boundary-amplify_e2e_tests_pkg - - layer-4-amplify_e2e_tests_pkg - - schema-function-1-amplify_e2e_tests_pkg - - init-special-case-amplify_e2e_tests_pkg - - schema-data-access-patterns-amplify_e2e_tests_pkg - - schema-iterative-update-2-amplify_e2e_tests_pkg - - geo-update-amplify_e2e_tests_pkg - - schema-auth-10-amplify_e2e_tests_pkg - - delete-amplify_e2e_tests_pkg - - schema-searchable-amplify_e2e_tests_pkg - - schema-iterative-rollback-1-amplify_e2e_tests_pkg - - function_1-amplify_e2e_tests_pkg - - schema-iterative-update-3-amplify_e2e_tests_pkg - ConnectionsWithAuthTests-e2e-graphql_e2e_tests - KeyTransformerLocal-e2e-graphql_e2e_tests - MutationCondition-e2e-graphql_e2e_tests @@ -11673,7 +11855,7 @@ workflows: parameters: os: - linux - - function_5-amplify_e2e_tests: + - custom_policies_function-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11691,7 +11873,7 @@ workflows: parameters: os: - linux - - import_auth_3-amplify_e2e_tests: + - hooks-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11709,7 +11891,7 @@ workflows: parameters: os: - linux - - migration-api-connection-migration2-amplify_e2e_tests: + - layer-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11727,7 +11909,7 @@ workflows: parameters: os: - linux - - schema-function-2-amplify_e2e_tests: + - schema-auth-13-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11745,7 +11927,7 @@ workflows: parameters: os: - linux - - datastore-modelgen-amplify_e2e_tests: + - plugin-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11763,7 +11945,7 @@ workflows: parameters: os: - linux - - containers-api-amplify_e2e_tests: + - schema-versioned-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11781,7 +11963,7 @@ workflows: parameters: os: - linux - - geo-remove-amplify_e2e_tests: + - feature-flags-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11799,7 +11981,7 @@ workflows: parameters: os: - linux - - schema-key-amplify_e2e_tests: + - geo-add-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11817,7 +11999,7 @@ workflows: parameters: os: - linux - - function_2-amplify_e2e_tests: + - schema-auth-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11835,7 +12017,7 @@ workflows: parameters: os: - linux - - schema-auth-4-amplify_e2e_tests: + - schema-auth-8-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11853,7 +12035,7 @@ workflows: parameters: os: - linux - - schema-iterative-rollback-2-amplify_e2e_tests: + - import_dynamodb_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11871,7 +12053,7 @@ workflows: parameters: os: - linux - - schema-auth-1-amplify_e2e_tests: + - migration-api-key-migration2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11889,7 +12071,25 @@ workflows: parameters: os: - linux - - schema-auth-2-amplify_e2e_tests: + - schema-auth-6-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - cleanup-resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-iterative-update-4-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11925,7 +12125,7 @@ workflows: parameters: os: - linux - - function_6-amplify_e2e_tests: + - frontend_config_drift-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11943,7 +12143,7 @@ workflows: parameters: os: - linux - - import_dynamodb_2-amplify_e2e_tests: + - iam-permissions-boundary-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11961,7 +12161,7 @@ workflows: parameters: os: - linux - - migration-node-function-amplify_e2e_tests: + - layer-4-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11979,7 +12179,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-locking-amplify_e2e_tests: + - schema-function-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -11997,7 +12197,25 @@ workflows: parameters: os: - linux - - amplify-configure-amplify_e2e_tests: + - init-special-case-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - cleanup-resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-data-access-patterns-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12033,7 +12251,7 @@ workflows: parameters: os: - linux - - schema-predictions-amplify_e2e_tests: + - schema-iterative-update-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12051,7 +12269,7 @@ workflows: parameters: os: - linux - - predictions-amplify_e2e_tests: + - geo-update-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12069,7 +12287,7 @@ workflows: parameters: os: - linux - - auth_1-amplify_e2e_tests: + - schema-auth-10-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12087,7 +12305,7 @@ workflows: parameters: os: - linux - - auth_3-amplify_e2e_tests: + - delete-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12105,7 +12323,7 @@ workflows: parameters: os: - linux - - api_3-amplify_e2e_tests: + - schema-searchable-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12123,7 +12341,7 @@ workflows: parameters: os: - linux - - env-amplify_e2e_tests: + - schema-iterative-rollback-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12141,7 +12359,7 @@ workflows: parameters: os: - linux - - function_4-amplify_e2e_tests: + - function_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12159,7 +12377,7 @@ workflows: parameters: os: - linux - - api_1-amplify_e2e_tests: + - schema-iterative-update-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12195,7 +12413,7 @@ workflows: parameters: os: - linux - - function_7-amplify_e2e_tests: + - function_5-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12213,7 +12431,7 @@ workflows: parameters: os: - linux - - import_s3_2-amplify_e2e_tests: + - import_auth_3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12231,7 +12449,7 @@ workflows: parameters: os: - linux - - pull-amplify_e2e_tests: + - migration-api-connection-migration2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12249,7 +12467,7 @@ workflows: parameters: os: - linux - - storage-1-amplify_e2e_tests: + - schema-function-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12267,7 +12485,7 @@ workflows: parameters: os: - linux - - init-amplify_e2e_tests: + - datastore-modelgen-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12285,7 +12503,7 @@ workflows: parameters: os: - linux - - amplify-app-amplify_e2e_tests: + - containers-api-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12303,7 +12521,7 @@ workflows: parameters: os: - linux - - hostingPROD-amplify_e2e_tests: + - schema-key-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12321,7 +12539,7 @@ workflows: parameters: os: - linux - - auth_5-amplify_e2e_tests: + - function_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12339,7 +12557,7 @@ workflows: parameters: os: - linux - - migration-api-key-migration1-amplify_e2e_tests: + - schema-auth-4-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12357,7 +12575,7 @@ workflows: parameters: os: - linux - - import_auth_1-amplify_e2e_tests: + - schema-iterative-rollback-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12375,7 +12593,7 @@ workflows: parameters: os: - linux - - auth_2-amplify_e2e_tests: + - schema-auth-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12393,7 +12611,7 @@ workflows: parameters: os: - linux - - schema-model-amplify_e2e_tests: + - schema-auth-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12411,7 +12629,7 @@ workflows: parameters: os: - linux - - schema-auth-5-amplify_e2e_tests: + - auth_8-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12429,7 +12647,7 @@ workflows: parameters: os: - linux - - auth_8-amplify_e2e_tests: + - function_6-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12447,7 +12665,7 @@ workflows: parameters: os: - linux - - function_8-amplify_e2e_tests: + - import_dynamodb_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12465,7 +12683,7 @@ workflows: parameters: os: - linux - - layer-1-amplify_e2e_tests: + - migration-node-function-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12483,7 +12701,7 @@ workflows: parameters: os: - linux - - s3-sse-amplify_e2e_tests: + - schema-iterative-update-locking-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12501,7 +12719,7 @@ workflows: parameters: os: - linux - - storage-2-amplify_e2e_tests: + - amplify-configure-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12519,7 +12737,7 @@ workflows: parameters: os: - linux - - tags-amplify_e2e_tests: + - schema-predictions-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12537,7 +12755,7 @@ workflows: parameters: os: - linux - - hosting-amplify_e2e_tests: + - predictions-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12555,7 +12773,7 @@ workflows: parameters: os: - linux - - function_3-amplify_e2e_tests: + - geo-remove-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12573,7 +12791,7 @@ workflows: parameters: os: - linux - - auth_4-amplify_e2e_tests: + - auth_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12591,7 +12809,7 @@ workflows: parameters: os: - linux - - import_auth_2-amplify_e2e_tests: + - auth_3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12609,7 +12827,7 @@ workflows: parameters: os: - linux - - schema-auth-9-amplify_e2e_tests: + - api_3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12627,7 +12845,7 @@ workflows: parameters: os: - linux - - migration-api-connection-migration-amplify_e2e_tests: + - env-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12645,7 +12863,7 @@ workflows: parameters: os: - linux - - api_2-amplify_e2e_tests: + - function_4-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12663,7 +12881,7 @@ workflows: parameters: os: - linux - - configure-project-amplify_e2e_tests: + - api_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12681,7 +12899,7 @@ workflows: parameters: os: - linux - - function_9-amplify_e2e_tests: + - configure-project-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12699,7 +12917,7 @@ workflows: parameters: os: - linux - - layer-2-amplify_e2e_tests: + - function_7-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12717,7 +12935,7 @@ workflows: parameters: os: - linux - - schema-auth-12-amplify_e2e_tests: + - import_s3_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12735,7 +12953,7 @@ workflows: parameters: os: - linux - - storage-3-amplify_e2e_tests: + - pull-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12753,7 +12971,7 @@ workflows: parameters: os: - linux - - notifications-amplify_e2e_tests: + - storage-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12771,7 +12989,7 @@ workflows: parameters: os: - linux - - analytics-amplify_e2e_tests: + - init-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12789,7 +13007,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-1-amplify_e2e_tests: + - amplify-app-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12807,7 +13025,7 @@ workflows: parameters: os: - linux - - schema-auth-7-amplify_e2e_tests: + - hostingPROD-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12825,7 +13043,7 @@ workflows: parameters: os: - linux - - import_s3_1-amplify_e2e_tests: + - auth_5-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12843,7 +13061,7 @@ workflows: parameters: os: - linux - - schema-auth-11-amplify_e2e_tests: + - migration-api-key-migration1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12861,7 +13079,7 @@ workflows: parameters: os: - linux - - schema-connection-amplify_e2e_tests: + - import_auth_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12879,7 +13097,7 @@ workflows: parameters: os: - linux - - api_5-amplify_e2e_tests: + - auth_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12897,7 +13115,7 @@ workflows: parameters: os: - linux - - container-hosting-amplify_e2e_tests: + - schema-model-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12915,7 +13133,7 @@ workflows: parameters: os: - linux - - hooks-amplify_e2e_tests: + - schema-auth-5-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12933,7 +13151,7 @@ workflows: parameters: os: - linux - - layer-3-amplify_e2e_tests: + - container-hosting-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12951,7 +13169,7 @@ workflows: parameters: os: - linux - - schema-auth-13-amplify_e2e_tests: + - function_8-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12969,7 +13187,7 @@ workflows: parameters: os: - linux - - plugin-amplify_e2e_tests: + - layer-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12987,7 +13205,7 @@ workflows: parameters: os: - linux - - schema-versioned-amplify_e2e_tests: + - s3-sse-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13005,7 +13223,7 @@ workflows: parameters: os: - linux - - feature-flags-amplify_e2e_tests: + - storage-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13023,7 +13241,7 @@ workflows: parameters: os: - linux - - geo-add-amplify_e2e_tests: + - tags-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13041,7 +13259,7 @@ workflows: parameters: os: - linux - - schema-auth-3-amplify_e2e_tests: + - hosting-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13059,7 +13277,7 @@ workflows: parameters: os: - linux - - schema-auth-8-amplify_e2e_tests: + - function_3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13077,7 +13295,7 @@ workflows: parameters: os: - linux - - import_dynamodb_1-amplify_e2e_tests: + - auth_4-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13095,7 +13313,7 @@ workflows: parameters: os: - linux - - migration-api-key-migration2-amplify_e2e_tests: + - import_auth_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13113,7 +13331,7 @@ workflows: parameters: os: - linux - - schema-auth-6-amplify_e2e_tests: + - schema-auth-9-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13131,7 +13349,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-4-amplify_e2e_tests: + - migration-api-connection-migration-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13149,7 +13367,7 @@ workflows: parameters: os: - linux - - frontend_config_drift-amplify_e2e_tests: + - api_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13167,7 +13385,7 @@ workflows: parameters: os: - linux - - iam-permissions-boundary-amplify_e2e_tests: + - custom_policies_container-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13185,7 +13403,7 @@ workflows: parameters: os: - linux - - layer-4-amplify_e2e_tests: + - function_9-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13203,7 +13421,7 @@ workflows: parameters: os: - linux - - schema-function-1-amplify_e2e_tests: + - layer-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13221,7 +13439,7 @@ workflows: parameters: os: - linux - - init-special-case-amplify_e2e_tests: + - schema-auth-12-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13239,7 +13457,7 @@ workflows: parameters: os: - linux - - schema-data-access-patterns-amplify_e2e_tests: + - storage-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13257,7 +13475,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-2-amplify_e2e_tests: + - notifications-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13275,7 +13493,7 @@ workflows: parameters: os: - linux - - geo-update-amplify_e2e_tests: + - analytics-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13293,7 +13511,7 @@ workflows: parameters: os: - linux - - schema-auth-10-amplify_e2e_tests: + - schema-iterative-update-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13311,7 +13529,7 @@ workflows: parameters: os: - linux - - delete-amplify_e2e_tests: + - schema-auth-7-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13329,7 +13547,7 @@ workflows: parameters: os: - linux - - schema-searchable-amplify_e2e_tests: + - import_s3_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13347,7 +13565,7 @@ workflows: parameters: os: - linux - - schema-iterative-rollback-1-amplify_e2e_tests: + - schema-auth-11-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13365,7 +13583,7 @@ workflows: parameters: os: - linux - - function_1-amplify_e2e_tests: + - schema-connection-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13383,7 +13601,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-3-amplify_e2e_tests: + - api_5-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13419,7 +13637,7 @@ workflows: parameters: os: - linux - - function_5-amplify_e2e_tests_pkg: + - custom_policies_function-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13437,7 +13655,8 @@ workflows: parameters: os: - linux - - import_auth_3-amplify_e2e_tests_pkg: + - windows + - hooks-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13455,7 +13674,7 @@ workflows: parameters: os: - linux - - migration-api-connection-migration2-amplify_e2e_tests_pkg: + - layer-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13473,7 +13692,7 @@ workflows: parameters: os: - linux - - schema-function-2-amplify_e2e_tests_pkg: + - schema-auth-13-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13491,7 +13710,7 @@ workflows: parameters: os: - linux - - datastore-modelgen-amplify_e2e_tests_pkg: + - plugin-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13509,7 +13728,8 @@ workflows: parameters: os: - linux - - containers-api-amplify_e2e_tests_pkg: + - windows + - schema-versioned-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13527,7 +13747,7 @@ workflows: parameters: os: - linux - - geo-remove-amplify_e2e_tests_pkg: + - feature-flags-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13545,7 +13765,7 @@ workflows: parameters: os: - linux - - schema-key-amplify_e2e_tests_pkg: + - geo-add-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13563,7 +13783,7 @@ workflows: parameters: os: - linux - - function_2-amplify_e2e_tests_pkg: + - schema-auth-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13581,7 +13801,7 @@ workflows: parameters: os: - linux - - schema-auth-4-amplify_e2e_tests_pkg: + - schema-auth-8-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13599,7 +13819,7 @@ workflows: parameters: os: - linux - - schema-iterative-rollback-2-amplify_e2e_tests_pkg: + - import_dynamodb_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13617,7 +13837,7 @@ workflows: parameters: os: - linux - - schema-auth-1-amplify_e2e_tests_pkg: + - migration-api-key-migration2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13635,7 +13855,25 @@ workflows: parameters: os: - linux - - schema-auth-2-amplify_e2e_tests_pkg: + - schema-auth-6-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - cleanup-resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-iterative-update-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13671,7 +13909,7 @@ workflows: parameters: os: - linux - - function_6-amplify_e2e_tests_pkg: + - frontend_config_drift-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13689,7 +13927,7 @@ workflows: parameters: os: - linux - - import_dynamodb_2-amplify_e2e_tests_pkg: + - iam-permissions-boundary-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13707,7 +13945,7 @@ workflows: parameters: os: - linux - - migration-node-function-amplify_e2e_tests_pkg: + - layer-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13725,7 +13963,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-locking-amplify_e2e_tests_pkg: + - schema-function-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13743,7 +13981,7 @@ workflows: parameters: os: - linux - - amplify-configure-amplify_e2e_tests_pkg: + - init-special-case-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13762,6 +14000,24 @@ workflows: os: - linux - windows + - schema-data-access-patterns-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - cleanup-resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build_pkg_binaries + matrix: + parameters: + os: + - linux - interactions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -13780,7 +14036,7 @@ workflows: parameters: os: - linux - - schema-predictions-amplify_e2e_tests_pkg: + - schema-iterative-update-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13798,7 +14054,7 @@ workflows: parameters: os: - linux - - predictions-amplify_e2e_tests_pkg: + - geo-update-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13816,7 +14072,7 @@ workflows: parameters: os: - linux - - auth_1-amplify_e2e_tests_pkg: + - schema-auth-10-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13834,7 +14090,7 @@ workflows: parameters: os: - linux - - auth_3-amplify_e2e_tests_pkg: + - delete-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13852,7 +14108,7 @@ workflows: parameters: os: - linux - - api_3-amplify_e2e_tests_pkg: + - schema-searchable-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13870,7 +14126,7 @@ workflows: parameters: os: - linux - - env-amplify_e2e_tests_pkg: + - schema-iterative-rollback-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13888,7 +14144,7 @@ workflows: parameters: os: - linux - - function_4-amplify_e2e_tests_pkg: + - function_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13906,7 +14162,7 @@ workflows: parameters: os: - linux - - api_1-amplify_e2e_tests_pkg: + - schema-iterative-update-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13942,7 +14198,7 @@ workflows: parameters: os: - linux - - function_7-amplify_e2e_tests_pkg: + - function_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13960,7 +14216,7 @@ workflows: parameters: os: - linux - - import_s3_2-amplify_e2e_tests_pkg: + - import_auth_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13978,7 +14234,7 @@ workflows: parameters: os: - linux - - pull-amplify_e2e_tests_pkg: + - migration-api-connection-migration2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13996,7 +14252,7 @@ workflows: parameters: os: - linux - - storage-1-amplify_e2e_tests_pkg: + - schema-function-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14014,7 +14270,7 @@ workflows: parameters: os: - linux - - init-amplify_e2e_tests_pkg: + - datastore-modelgen-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14032,7 +14288,7 @@ workflows: parameters: os: - linux - - amplify-app-amplify_e2e_tests_pkg: + - containers-api-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14050,7 +14306,7 @@ workflows: parameters: os: - linux - - hostingPROD-amplify_e2e_tests_pkg: + - schema-key-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14068,7 +14324,7 @@ workflows: parameters: os: - linux - - auth_5-amplify_e2e_tests_pkg: + - function_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14086,7 +14342,7 @@ workflows: parameters: os: - linux - - migration-api-key-migration1-amplify_e2e_tests_pkg: + - schema-auth-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14104,7 +14360,7 @@ workflows: parameters: os: - linux - - import_auth_1-amplify_e2e_tests_pkg: + - schema-iterative-rollback-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14122,7 +14378,7 @@ workflows: parameters: os: - linux - - auth_2-amplify_e2e_tests_pkg: + - schema-auth-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14140,7 +14396,7 @@ workflows: parameters: os: - linux - - schema-model-amplify_e2e_tests_pkg: + - schema-auth-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14158,7 +14414,7 @@ workflows: parameters: os: - linux - - schema-auth-5-amplify_e2e_tests_pkg: + - auth_8-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14176,7 +14432,7 @@ workflows: parameters: os: - linux - - auth_8-amplify_e2e_tests_pkg: + - function_6-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14194,7 +14450,7 @@ workflows: parameters: os: - linux - - function_8-amplify_e2e_tests_pkg: + - import_dynamodb_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14212,7 +14468,7 @@ workflows: parameters: os: - linux - - layer-1-amplify_e2e_tests_pkg: + - migration-node-function-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14230,7 +14486,7 @@ workflows: parameters: os: - linux - - s3-sse-amplify_e2e_tests_pkg: + - schema-iterative-update-locking-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14248,7 +14504,7 @@ workflows: parameters: os: - linux - - storage-2-amplify_e2e_tests_pkg: + - amplify-configure-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14266,7 +14522,8 @@ workflows: parameters: os: - linux - - tags-amplify_e2e_tests_pkg: + - windows + - schema-predictions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14284,7 +14541,7 @@ workflows: parameters: os: - linux - - hosting-amplify_e2e_tests_pkg: + - predictions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14302,7 +14559,7 @@ workflows: parameters: os: - linux - - function_3-amplify_e2e_tests_pkg: + - geo-remove-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14320,7 +14577,7 @@ workflows: parameters: os: - linux - - auth_4-amplify_e2e_tests_pkg: + - auth_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14338,7 +14595,7 @@ workflows: parameters: os: - linux - - import_auth_2-amplify_e2e_tests_pkg: + - auth_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14356,7 +14613,7 @@ workflows: parameters: os: - linux - - schema-auth-9-amplify_e2e_tests_pkg: + - api_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14374,7 +14631,7 @@ workflows: parameters: os: - linux - - migration-api-connection-migration-amplify_e2e_tests_pkg: + - env-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14392,7 +14649,7 @@ workflows: parameters: os: - linux - - api_2-amplify_e2e_tests_pkg: + - function_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14410,7 +14667,7 @@ workflows: parameters: os: - linux - - configure-project-amplify_e2e_tests_pkg: + - api_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14428,8 +14685,7 @@ workflows: parameters: os: - linux - - windows - - function_9-amplify_e2e_tests_pkg: + - configure-project-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14447,7 +14703,8 @@ workflows: parameters: os: - linux - - layer-2-amplify_e2e_tests_pkg: + - windows + - function_7-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14465,7 +14722,7 @@ workflows: parameters: os: - linux - - schema-auth-12-amplify_e2e_tests_pkg: + - import_s3_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14483,7 +14740,7 @@ workflows: parameters: os: - linux - - storage-3-amplify_e2e_tests_pkg: + - pull-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14501,7 +14758,7 @@ workflows: parameters: os: - linux - - notifications-amplify_e2e_tests_pkg: + - storage-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14519,7 +14776,7 @@ workflows: parameters: os: - linux - - analytics-amplify_e2e_tests_pkg: + - init-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14537,7 +14794,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-1-amplify_e2e_tests_pkg: + - amplify-app-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14555,7 +14812,7 @@ workflows: parameters: os: - linux - - schema-auth-7-amplify_e2e_tests_pkg: + - hostingPROD-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14573,7 +14830,7 @@ workflows: parameters: os: - linux - - import_s3_1-amplify_e2e_tests_pkg: + - auth_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14591,7 +14848,7 @@ workflows: parameters: os: - linux - - schema-auth-11-amplify_e2e_tests_pkg: + - migration-api-key-migration1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14609,7 +14866,7 @@ workflows: parameters: os: - linux - - schema-connection-amplify_e2e_tests_pkg: + - import_auth_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14627,7 +14884,7 @@ workflows: parameters: os: - linux - - api_5-amplify_e2e_tests_pkg: + - auth_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14645,7 +14902,7 @@ workflows: parameters: os: - linux - - container-hosting-amplify_e2e_tests_pkg: + - schema-model-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14663,8 +14920,7 @@ workflows: parameters: os: - linux - - windows - - hooks-amplify_e2e_tests_pkg: + - schema-auth-5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14682,7 +14938,7 @@ workflows: parameters: os: - linux - - layer-3-amplify_e2e_tests_pkg: + - container-hosting-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14700,7 +14956,8 @@ workflows: parameters: os: - linux - - schema-auth-13-amplify_e2e_tests_pkg: + - windows + - function_8-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14718,7 +14975,7 @@ workflows: parameters: os: - linux - - plugin-amplify_e2e_tests_pkg: + - layer-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14736,8 +14993,7 @@ workflows: parameters: os: - linux - - windows - - schema-versioned-amplify_e2e_tests_pkg: + - s3-sse-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14755,7 +15011,7 @@ workflows: parameters: os: - linux - - feature-flags-amplify_e2e_tests_pkg: + - storage-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14773,7 +15029,7 @@ workflows: parameters: os: - linux - - geo-add-amplify_e2e_tests_pkg: + - tags-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14791,7 +15047,7 @@ workflows: parameters: os: - linux - - schema-auth-3-amplify_e2e_tests_pkg: + - hosting-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14809,7 +15065,7 @@ workflows: parameters: os: - linux - - schema-auth-8-amplify_e2e_tests_pkg: + - function_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14827,7 +15083,7 @@ workflows: parameters: os: - linux - - import_dynamodb_1-amplify_e2e_tests_pkg: + - auth_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14845,7 +15101,7 @@ workflows: parameters: os: - linux - - migration-api-key-migration2-amplify_e2e_tests_pkg: + - import_auth_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14863,7 +15119,7 @@ workflows: parameters: os: - linux - - schema-auth-6-amplify_e2e_tests_pkg: + - schema-auth-9-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14881,7 +15137,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-4-amplify_e2e_tests_pkg: + - migration-api-connection-migration-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14899,7 +15155,7 @@ workflows: parameters: os: - linux - - frontend_config_drift-amplify_e2e_tests_pkg: + - api_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14917,7 +15173,7 @@ workflows: parameters: os: - linux - - iam-permissions-boundary-amplify_e2e_tests_pkg: + - custom_policies_container-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14935,7 +15191,8 @@ workflows: parameters: os: - linux - - layer-4-amplify_e2e_tests_pkg: + - windows + - function_9-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14953,7 +15210,7 @@ workflows: parameters: os: - linux - - schema-function-1-amplify_e2e_tests_pkg: + - layer-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14971,7 +15228,7 @@ workflows: parameters: os: - linux - - init-special-case-amplify_e2e_tests_pkg: + - schema-auth-12-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14989,8 +15246,7 @@ workflows: parameters: os: - linux - - windows - - schema-data-access-patterns-amplify_e2e_tests_pkg: + - storage-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15008,7 +15264,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-2-amplify_e2e_tests_pkg: + - notifications-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15026,7 +15282,7 @@ workflows: parameters: os: - linux - - geo-update-amplify_e2e_tests_pkg: + - analytics-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15044,7 +15300,7 @@ workflows: parameters: os: - linux - - schema-auth-10-amplify_e2e_tests_pkg: + - schema-iterative-update-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15062,7 +15318,7 @@ workflows: parameters: os: - linux - - delete-amplify_e2e_tests_pkg: + - schema-auth-7-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15080,7 +15336,7 @@ workflows: parameters: os: - linux - - schema-searchable-amplify_e2e_tests_pkg: + - import_s3_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15098,7 +15354,7 @@ workflows: parameters: os: - linux - - schema-iterative-rollback-1-amplify_e2e_tests_pkg: + - schema-auth-11-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15116,7 +15372,7 @@ workflows: parameters: os: - linux - - function_1-amplify_e2e_tests_pkg: + - schema-connection-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15134,7 +15390,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-3-amplify_e2e_tests_pkg: + - api_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources diff --git a/packages/amplify-provider-awscloudformation/src/pre-push-cfn-processor/cfn-pre-processor.ts b/packages/amplify-provider-awscloudformation/src/pre-push-cfn-processor/cfn-pre-processor.ts index 30d051bc5e0..85c9290a317 100644 --- a/packages/amplify-provider-awscloudformation/src/pre-push-cfn-processor/cfn-pre-processor.ts +++ b/packages/amplify-provider-awscloudformation/src/pre-push-cfn-processor/cfn-pre-processor.ts @@ -8,7 +8,8 @@ import { customExecutionPolicyForFunction, customExecutionPolicyForContainer, CustomPoliciesFormatError, - CustomIAMPoliciesSchema} from 'amplify-cli-core'; + CustomIAMPoliciesSchema, +} from 'amplify-cli-core'; import * as path from 'path'; import { ProviderName as providerName } from '../constants'; import { prePushCfnTemplateModifier } from './pre-push-cfn-modifier'; @@ -16,7 +17,6 @@ import { Fn, Template } from 'cloudform-types'; import { printer } from 'amplify-prompts'; import Ajv from 'ajv'; - const buildDir = 'build'; const customPolicySupportedServices = ['Lambda', 'ElasticContainer']; @@ -41,12 +41,7 @@ export async function preProcessCFNTemplate(filePath: string): Promise { } //get data from custom polcies file and write custom policies to CFN template -export async function writeCustomPoliciesToCFNTemplate( - resourceName: string, - service: string, - cfnFile: string, - category: string -) { +export async function writeCustomPoliciesToCFNTemplate(resourceName: string, service: string, cfnFile: string, category: string) { if (!customPolicySupportedServices.includes(service)) { return; } @@ -67,10 +62,9 @@ export async function writeCustomPoliciesToCFNTemplate( } await validateCustomPolicies(customPolicies, category, resourceName); - const newCfnTemplate = await addCustomPoliciesToCFNTemplate(service, category, customPolicies, cfnTemplate, resourceName ); + const newCfnTemplate = await addCustomPoliciesToCFNTemplate(service, category, customPolicies, cfnTemplate, resourceName); await writeCFNTemplate(newCfnTemplate, cfnPath, { templateFormat }); - } //merge the custom IAM polciies to CFN template for lambda and API container @@ -80,14 +74,14 @@ async function addCustomPoliciesToCFNTemplate( category: string, customPolicies: CustomIAMPolicies, cfnTemplate: Template, - resourceName: string - ) { + resourceName: string, +) { let customExecutionPolicy; if (service === 'Lambda') { customExecutionPolicy = customExecutionPolicyForFunction; } if (service === 'ElasticContainer') { - const roleName = cfnTemplate.Resources.TaskDefinition.Properties.ExecutionRoleArn['Fn::GetAtt'][0]; + const roleName = cfnTemplate.Resources.TaskDefinition.Properties.TaskRoleArn['Fn::GetAtt'][0]; customExecutionPolicy = customExecutionPolicyForContainer; const role = Fn.Ref(roleName); customExecutionPolicy.Properties.Roles.push(role); @@ -111,29 +105,27 @@ async function addCustomPoliciesToCFNTemplate( return cfnTemplate; } - -function doCustomPoliciesExist(customPolicies: CustomIAMPolicies) : Boolean | PromiseLike { +function doCustomPoliciesExist(customPolicies: CustomIAMPolicies): Boolean | PromiseLike { if (!customPolicies || customPolicies.length === 0) { return false; } - if (customPolicies.length === 1 - && customPolicies[0].Action?.length === 0 - && customPolicies[0].Resource?.length === 0) { - return false; - } + if (customPolicies.length === 1 && customPolicies[0].Action?.length === 0 && customPolicies[0].Resource?.length === 0) { + return false; + } return true; } //replace or add env parameter in the front of the resource customers enter to the current env -function replaceEnvWithRef(policy: CustomIAMPolicy) : CustomIAMPolicy { - const resource = policy.Resource.map(resource => resource.includes('${env}') ? Fn.Sub(resource, {'env': Fn.Ref('env')}) : resource) as any[]; +function replaceEnvWithRef(policy: CustomIAMPolicy): CustomIAMPolicy { + const resource = policy.Resource.map(resource => + resource.includes('${env}') ? Fn.Sub(resource, { env: Fn.Ref('env') }) : resource, + ) as any[]; policy.Resource = resource; return policy; } - async function validateCustomPolicies(data: CustomIAMPolicies, categoryName: string, resourceName: string) { const ajv = new Ajv(); //validate if the policies match the custom IAM policies schema, if not, then not write into the CFN template @@ -143,7 +135,7 @@ async function validateCustomPolicies(data: CustomIAMPolicies, categoryName: str let errorMessage = `Invalid custom IAM policies in the ${resourceName} ${categoryName}.\n Edit /amplify/backend/function/${resourceName}/custom-policies.json to fix Learn more about custom IAM policies for ${categoryName}: https://docs.amplify.aws/function/custom-policies\n`; - validatePolicy.errors.forEach(error => errorMessage += `${error.message}\n`); + validatePolicy.errors.forEach(error => (errorMessage += `${error.message}\n`)); throw new CustomPoliciesFormatError(errorMessage); } @@ -186,5 +178,9 @@ async function validateCustomPolicies(data: CustomIAMPolicies, categoryName: str function warnWildcardCustomPoliciesResource(customPolicies: CustomIAMPolicy[], resourceName: string) { customPolicies .filter(policy => policy.Resource.includes('*')) - .forEach(policy =>printer.warn(`Warning: You've specified "*" as the "Resource" in ${resourceName}'s custom IAM policy.\n This will grant ${resourceName} the ability to perform ${policy.Action} on ALL resources in this AWS Account.`)) -} \ No newline at end of file + .forEach(policy => + printer.warn( + `Warning: You've specified "*" as the "Resource" in ${resourceName}'s custom IAM policy.\n This will grant ${resourceName} the ability to perform ${policy.Action} on ALL resources in this AWS Account.`, + ), + ); +}