amplify-backend
amplify-backend copied to clipboard
Using five or more secrets causes deployment timeout for new AWS accounts
Environment information
System:
OS: macOS 14.5
CPU: (12) arm64 Apple M3 Pro
Memory: 51.98 MB / 18.00 GB
Shell: /bin/zsh
Binaries:
Node: 20.15.1 - ~/.nvm/versions/node/v20.15.1/bin/node
Yarn: undefined - undefined
npm: 10.7.0 - ~/.nvm/versions/node/v20.15.1/bin/npm
pnpm: undefined - undefined
NPM Packages:
@aws-amplify/auth-construct: 1.2.0
@aws-amplify/backend: 1.0.4
@aws-amplify/backend-auth: 1.1.0
@aws-amplify/backend-cli: 1.2.1
@aws-amplify/backend-data: 1.1.0
@aws-amplify/backend-deployer: 1.0.2
@aws-amplify/backend-function: 1.3.0
@aws-amplify/backend-output-schemas: 1.1.0
@aws-amplify/backend-output-storage: 1.0.2
@aws-amplify/backend-secret: 1.0.0
@aws-amplify/backend-storage: 1.0.4
@aws-amplify/cli-core: 1.1.1
@aws-amplify/client-config: 1.1.1
@aws-amplify/deployed-backend-client: 1.1.0
@aws-amplify/form-generator: 1.0.0
@aws-amplify/model-generator: 1.0.2
@aws-amplify/platform-core: 1.0.3
@aws-amplify/plugin-types: 1.1.0
@aws-amplify/sandbox: 1.1.1
@aws-amplify/schema-generator: 1.2.0
aws-amplify: 6.4.3
aws-cdk: 2.150.0
aws-cdk-lib: 2.150.0
typescript: 5.5.4
AWS environment variables:
AWS_STS_REGIONAL_ENDPOINTS = regional
AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
AWS_SDK_LOAD_CONFIG = 1
No CDK environment variables
Description
Using three or more Cognito external providers causes a timeout error for resolving the secrets, especially for using Apple login as it requires 4 secrets. The deployment success rate is about 1 out of 10 using Facebook, Google, and Apple providers, however, the success rate is 10 out of 10 for Facebook and Google providers only.
Auth config
import { defineAuth, secret } from '@aws-amplify/backend';
import { postConfirmation } from './post-confirmation/resource';
export const auth = defineAuth({
loginWith: {
email: true,
externalProviders: {
facebook: {
clientId: secret('FACEBOOK_CLIENT_ID'),
clientSecret: secret('FACEBOOK_CLIENT_SECRET'),
scopes: ['public_profile', 'email'],
},
google: {
clientId: secret('GOOGLE_CLIENT_ID'),
clientSecret: secret('GOOGLE_CLIENT_SECRET'),
scopes: ['profile', 'email'],
},
signInWithApple: {
clientId: secret('SIWA_CLIENT_ID'),
keyId: secret('SIWA_KEY_ID'),
privateKey: secret('SIWA_PRIVATE_KEY'),
teamId: secret('SIWA_TEAM_ID'),
scopes: ['email', 'name'],
},
callbackUrls: ['http://localhost:3000'],
logoutUrls: ['http://localhost:3000'],
},
},
triggers: {
postConfirmation,
},
groups: ['Administrators'],
});
Full build log
2024-07-28T20:56:18.303Z [INFO]: # Cloning repository: REDACTED
2024-07-28T20:56:19.609Z [INFO]:
2024-07-28T20:56:19.610Z [INFO]: Cloning into 'REDACTED'...
2024-07-28T20:56:19.610Z [INFO]: # Switching to commit: f6ee714a59aefb9c6e57869004d75eb3457c84aa
2024-07-28T20:56:19.624Z [INFO]: Note: switching to 'f6ee714a59aefb9c6e57869004d75eb3457c84aa'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at f6ee714 Remove debug commands
2024-07-28T20:56:19.698Z [INFO]: Successfully cleaned up Git credentials
2024-07-28T20:56:19.698Z [INFO]: # Checking for Git submodules at: /codebuild/output/src2989140162/src/REDACTED/.gitmodules
2024-07-28T20:56:19.705Z [INFO]: # Retrieving environment cache...
2024-07-28T20:56:19.774Z [INFO]: # Retrieved environment cache
2024-07-28T20:56:19.774Z [INFO]: ---- Setting Up SSM Secrets ----
2024-07-28T20:56:19.774Z [INFO]: SSM params {"Path":"/amplify/d2i1zmq1q4r829/main/","WithDecryption":true}
2024-07-28T20:56:20.592Z [INFO]: No live updates for this build run
2024-07-28T20:56:20.597Z [INFO]: # Retrieving cache...
2024-07-28T20:56:25.300Z [INFO]: # Extracting cache...
2024-07-28T20:56:26.749Z [INFO]: # Extraction completed
2024-07-28T20:56:26.799Z [INFO]: # Retrieved cache
2024-07-28T20:56:29.738Z [INFO]: ## Starting Backend Build
# Starting phase: build
# Executing command: npm ci --cache .npm --prefer-offline
2024-07-28T20:56:56.048Z [WARNING]: npm
2024-07-28T20:56:56.055Z [WARNING]: WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
2024-07-28T20:56:56.155Z [WARNING]: npm
2024-07-28T20:56:56.156Z [WARNING]: WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
2024-07-28T20:56:56.359Z [WARNING]: npm
2024-07-28T20:56:56.359Z [WARNING]: WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
2024-07-28T20:56:56.596Z [WARNING]: npm
2024-07-28T20:56:56.596Z [WARNING]: WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
2024-07-28T20:56:56.633Z [WARNING]: npm
2024-07-28T20:56:56.633Z [WARNING]: WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
2024-07-28T20:56:56.652Z [WARNING]: npm WARN
2024-07-28T20:56:56.653Z [WARNING]: deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
2024-07-28T20:57:03.066Z [WARNING]: npm WARN
2024-07-28T20:57:03.071Z [WARNING]: deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
2024-07-28T20:57:04.796Z [INFO]: added 1311 packages, and audited 1428 packages in 26s
2024-07-28T20:57:04.797Z [INFO]: 139 packages are looking for funding
run `npm fund` for details
2024-07-28T20:57:04.798Z [INFO]: found 0 vulnerabilities
2024-07-28T20:57:04.838Z [INFO]: # Executing command: npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID
2024-07-28T20:57:15.569Z [INFO]:
2024-07-28T20:57:21.976Z [INFO]: ✨ Synthesis time: 0.08s
2024-07-28T20:57:22.584Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3: start: Building 38226efbd55b86443507b655a93c53a24fea77cda183f1479a1958f074090b24:current_account-current_region
2024-07-28T20:57:22.584Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3: success: Built 38226efbd55b86443507b655a93c53a24fea77cda183f1479a1958f074090b24:current_account-current_region
2024-07-28T20:57:22.585Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3: start: Building 89ba34700395ca5bfc8449a2a935f2ac62338b5093f22f1fdb2174f78dde82da:current_account-current_region
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3: success: Built 89ba34700395ca5bfc8449a2a935f2ac62338b5093f22f1fdb2174f78dde82da:current_account-current_region
2024-07-28T20:57:22.585Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3: start: Publishing 38226efbd55b86443507b655a93c53a24fea77cda183f1479a1958f074090b24:current_account-current_region
2024-07-28T20:57:22.587Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3: start: Publishing 89ba34700395ca5bfc8449a2a935f2ac62338b5093f22f1fdb2174f78dde82da:current_account-current_region
2024-07-28T20:57:22.800Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3: success: Published 38226efbd55b86443507b655a93c53a24fea77cda183f1479a1958f074090b24:current_account-current_region
2024-07-28T20:57:22.820Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3: success: Published 89ba34700395ca5bfc8449a2a935f2ac62338b5093f22f1fdb2174f78dde82da:current_account-current_region
2024-07-28T20:57:22.821Z [INFO]: [1mamplify-d2i1zmq1q4r829-main-branch-beea7f81a3[22m: deploying... [1/1]
2024-07-28T20:57:23.111Z [INFO]: [1mamplify-d2i1zmq1q4r829-main-branch-beea7f81a3[22m: creating CloudFormation changeset...
2024-07-28T20:57:39.756Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 0/8 | 8:57:39 PM | [0mUPDATE_IN_PROGRESS [0m | AWS::CloudFormation::Stack | [0m[1mamplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG[22m[0m [36m[1mUser Initiated[22m[39m
2024-07-28T20:57:39.877Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3 | 0/8 | 8:57:33 PM | [0mUPDATE_IN_PROGRESS [0m | AWS::CloudFormation::Stack | [0m[1mamplify-d2i1zmq1q4r829-main-branch-beea7f81a3[22m[0m [36m[1mUser Initiated[22m[39m
2024-07-28T20:57:39.877Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3 | 0/8 | 8:57:37 PM | [0mUPDATE_IN_PROGRESS [0m | AWS::CloudFormation::Stack | [0m[1mfunction.NestedStack/function.NestedStackResource[22m[0m (function1351588B)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3 | 1/8 | 8:57:38 PM | [32mUPDATE_COMPLETE [39m | AWS::CloudFormation::Stack | [32m[1mfunction.NestedStack/function.NestedStackResource[22m[39m (function1351588B)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3 | 1/8 | 8:57:38 PM | [0mUPDATE_IN_PROGRESS [0m | AWS::CloudFormation::Stack | [0m[1mauth.NestedStack/auth.NestedStackResource[22m[0m (auth179371D7)
2024-07-28T20:58:10.365Z [INFO]: 1/8 Currently in progress: [1mamplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG, amplify-d2i1zmq1q4r829-main-branch-beea7f81a3, auth179371D7[22m
2024-07-28T21:02:55.144Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 1/8 | 8:57:42 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/FACEBOOK_CLIENT_IDSecretFetcherResource/Default[22m[0m (FACEBOOKCLIENTIDSecretFetcherResource)
2024-07-28T21:02:55.152Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 1/8 | 8:57:42 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/SIWA_TEAM_IDSecretFetcherResource/Default[22m[0m (SIWATEAMIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 1/8 | 8:57:42 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/GOOGLE_CLIENT_SECRETSecretFetcherResource/Default[22m[0m (GOOGLECLIENTSECRETSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 1/8 | 8:57:42 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/SIWA_CLIENT_IDSecretFetcherResource/Default[22m[0m (SIWACLIENTIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 1/8 | 8:57:42 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/SIWA_PRIVATE_KEYSecretFetcherResource/Default[22m[0m (SIWAPRIVATEKEYSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 1/8 | 8:57:42 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/FACEBOOK_CLIENT_SECRETSecretFetcherResource/Default[22m[0m (FACEBOOKCLIENTSECRETSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 1/8 | 8:57:42 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/GOOGLE_CLIENT_IDSecretFetcherResource/Default[22m[0m (GOOGLECLIENTIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 1/8 | 8:57:42 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/SIWA_KEY_IDSecretFetcherResource/Default[22m[0m (SIWAKEYIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 2/8 | 8:57:46 PM | [32mUPDATE_COMPLETE [39m | Custom::SecretFetcherResource | [32m[1mauth/FACEBOOK_CLIENT_IDSecretFetcherResource/Default[22m[39m (FACEBOOKCLIENTIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 3/8 | 8:57:46 PM | [32mUPDATE_COMPLETE [39m | Custom::SecretFetcherResource | [32m[1mauth/SIWA_PRIVATE_KEYSecretFetcherResource/Default[22m[39m (SIWAPRIVATEKEYSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 4/8 | 8:57:46 PM | [32mUPDATE_COMPLETE [39m | Custom::SecretFetcherResource | [32m[1mauth/FACEBOOK_CLIENT_SECRETSecretFetcherResource/Default[22m[39m (FACEBOOKCLIENTSECRETSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 5/8 | 8:57:46 PM | [32mUPDATE_COMPLETE [39m | Custom::SecretFetcherResource | [32m[1mauth/SIWA_KEY_IDSecretFetcherResource/Default[22m[39m (SIWAKEYIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 6/8 | 8:57:46 PM | [32mUPDATE_COMPLETE [39m | Custom::SecretFetcherResource | [32m[1mauth/GOOGLE_CLIENT_IDSecretFetcherResource/Default[22m[39m (GOOGLECLIENTIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 7/8 | 8:57:46 PM | [32mUPDATE_COMPLETE [39m | Custom::SecretFetcherResource | [32m[1mauth/SIWA_CLIENT_IDSecretFetcherResource/Default[22m[39m (SIWACLIENTIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 7/8 | 9:02:14 PM | [31mUPDATE_FAILED [39m | Custom::SecretFetcherResource | [31m[1mauth/SIWA_TEAM_IDSecretFetcherResource/Default[22m[39m (SIWATEAMIDSecretFetcherResource) [31m[1mReceived response status [FAILED] from custom resource. Message returned: TimeoutError: {"state":"TIMEOUT","reason":"Waiter has timed out"}[22m[39m
[31m[1m at checkExceptions (/var/runtime/node_modules/@aws-sdk/node_modules/@smithy/util-waiter/dist-cjs/index.js:59:26)[22m[39m
[31m[1m at waitUntilFunctionActiveV2 (/var/runtime/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js:5826:49)[22m[39m
[31m[1m at process.processTicksAndRejections (node:internal/process/task_queues:95:5)[22m[39m
[31m[1m at async defaultInvokeFunction (/var/task/outbound.js:1:1024)[22m[39m
[31m[1m at async invokeUserFunction (/var/task/framework.js:1:2740)[22m[39m
[31m[1m at async onEvent (/var/task/framework.js:1:369)[22m[39m
[31m[1m at async Runtime.handler (/var/task/cfn-response.js:1:1826) (RequestId: 052ed25c-8361-4dbc-9d93-8c5e6d871d97)[22m[39m
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 7/8 | 9:02:14 PM | [31mUPDATE_FAILED [39m | Custom::SecretFetcherResource | [31m[1mauth/GOOGLE_CLIENT_SECRETSecretFetcherResource/Default[22m[39m (GOOGLECLIENTSECRETSecretFetcherResource) [31m[1mResource update cancelled[22m[39m
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 7/8 | 9:02:14 PM | [33mUPDATE_ROLLBACK_IN_P[39m | AWS::CloudFormation::Stack | [33m[1mamplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG[22m[39m [36m[1mThe following resource(s) failed to update: [GOOGLECLIENTSECRETSecretFetcherResource, SIWATEAMIDSecretFetcherResource]. [22m[39m
2024-07-28T21:02:55.327Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3 | 7/8 | 9:02:51 PM | [31mUPDATE_FAILED [39m | AWS::CloudFormation::Stack | [31m[1mauth.NestedStack/auth.NestedStackResource[22m[39m (auth179371D7) [31m[1mEmbedded stack arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [GOOGLECLIENTSECRETSecretFetcherResource, SIWATEAMIDSecretFetcherResource]. [22m[39m
2024-07-28T21:02:55.327Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3 | 7/8 | 9:02:51 PM | [33mUPDATE_ROLLBACK_IN_P[39m | AWS::CloudFormation::Stack | [33m[1mamplify-d2i1zmq1q4r829-main-branch-beea7f81a3[22m[39m [36m[1mThe following resource(s) failed to update: [auth179371D7]. [22m[39m
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3 | 7/8 | 9:02:54 PM | [0mUPDATE_IN_PROGRESS [0m | AWS::CloudFormation::Stack | [0m[1mfunction.NestedStack/function.NestedStackResource[22m[0m (function1351588B)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3 | 6/8 | 9:02:54 PM | [32mUPDATE_COMPLETE [39m | AWS::CloudFormation::Stack | [32m[1mfunction.NestedStack/function.NestedStackResource[22m[39m (function1351588B)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3 | 6/8 | 9:02:54 PM | [0mUPDATE_IN_PROGRESS [0m | AWS::CloudFormation::Stack | [0m[1mauth.NestedStack/auth.NestedStackResource[22m[0m (auth179371D7)
2024-07-28T21:03:25.817Z [INFO]: 6/8 Currently in progress: [1mamplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG, amplify-d2i1zmq1q4r829-main-branch-beea7f81a3, auth179371D7[22m
2024-07-28T21:08:09.853Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 6/8 | 9:03:02 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/SIWA_KEY_IDSecretFetcherResource/Default[22m[0m (SIWAKEYIDSecretFetcherResource)
2024-07-28T21:08:09.861Z [INFO]: amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 6/8 | 9:03:02 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/GOOGLE_CLIENT_SECRETSecretFetcherResource/Default[22m[0m (GOOGLECLIENTSECRETSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 6/8 | 9:03:02 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/SIWA_TEAM_IDSecretFetcherResource/Default[22m[0m (SIWATEAMIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 6/8 | 9:03:02 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/GOOGLE_CLIENT_IDSecretFetcherResource/Default[22m[0m (GOOGLECLIENTIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 6/8 | 9:03:02 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/FACEBOOK_CLIENT_SECRETSecretFetcherResource/Default[22m[0m (FACEBOOKCLIENTSECRETSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 6/8 | 9:03:02 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/FACEBOOK_CLIENT_IDSecretFetcherResource/Default[22m[0m (FACEBOOKCLIENTIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 6/8 | 9:03:02 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/SIWA_CLIENT_IDSecretFetcherResource/Default[22m[0m (SIWACLIENTIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 6/8 | 9:03:02 PM | [0mUPDATE_IN_PROGRESS [0m | Custom::SecretFetcherResource | [0m[1mauth/SIWA_PRIVATE_KEYSecretFetcherResource/Default[22m[0m (SIWAPRIVATEKEYSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 5/8 | 9:03:04 PM | [32mUPDATE_COMPLETE [39m | Custom::SecretFetcherResource | [32m[1mauth/SIWA_KEY_IDSecretFetcherResource/Default[22m[39m (SIWAKEYIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 4/8 | 9:03:04 PM | [32mUPDATE_COMPLETE [39m | Custom::SecretFetcherResource | [32m[1mauth/FACEBOOK_CLIENT_SECRETSecretFetcherResource/Default[22m[39m (FACEBOOKCLIENTSECRETSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 3/8 | 9:03:05 PM | [32mUPDATE_COMPLETE [39m | Custom::SecretFetcherResource | [32m[1mauth/GOOGLE_CLIENT_IDSecretFetcherResource/Default[22m[39m (GOOGLECLIENTIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 2/8 | 9:03:05 PM | [32mUPDATE_COMPLETE [39m | Custom::SecretFetcherResource | [32m[1mauth/FACEBOOK_CLIENT_IDSecretFetcherResource/Default[22m[39m (FACEBOOKCLIENTIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 3/8 | 9:03:07 PM | [32mUPDATE_COMPLETE [39m | Custom::SecretFetcherResource | [32m[1mauth/SIWA_TEAM_IDSecretFetcherResource/Default[22m[39m (SIWATEAMIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 2/8 | 9:03:07 PM | [32mUPDATE_COMPLETE [39m | Custom::SecretFetcherResource | [32m[1mauth/SIWA_CLIENT_IDSecretFetcherResource/Default[22m[39m (SIWACLIENTIDSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 1/8 | 9:03:08 PM | [32mUPDATE_COMPLETE [39m | Custom::SecretFetcherResource | [32m[1mauth/SIWA_PRIVATE_KEYSecretFetcherResource/Default[22m[39m (SIWAPRIVATEKEYSecretFetcherResource)
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 1/8 | 9:07:43 PM | [31mUPDATE_FAILED [39m | Custom::SecretFetcherResource | [31m[1mauth/GOOGLE_CLIENT_SECRETSecretFetcherResource/Default[22m[39m (GOOGLECLIENTSECRETSecretFetcherResource) [31m[1mReceived response status [FAILED] from custom resource. Message returned: TimeoutError: {"state":"TIMEOUT","reason":"Waiter has timed out"}[22m[39m
[31m[1m at checkExceptions (/var/runtime/node_modules/@aws-sdk/node_modules/@smithy/util-waiter/dist-cjs/index.js:59:26)[22m[39m
[31m[1m at waitUntilFunctionActiveV2 (/var/runtime/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js:5826:49)[22m[39m
[31m[1m at process.processTicksAndRejections (node:internal/process/task_queues:95:5)[22m[39m
[31m[1m at async defaultInvokeFunction (/var/task/outbound.js:1:1024)[22m[39m
[31m[1m at async invokeUserFunction (/var/task/framework.js:1:2740)[22m[39m
[31m[1m at async onEvent (/var/task/framework.js:1:369)[22m[39m
[31m[1m at async Runtime.handler (/var/task/cfn-response.js:1:1826) (RequestId: ef7d4dbd-c409-40ef-aea9-95ce72a44b36)[22m[39m
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 1/8 | 9:07:44 PM | [31mUPDATE_ROLLBACK_FAIL[39m | AWS::CloudFormation::Stack | [31m[1mamplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG[22m[39m [31m[1mThe following resource(s) failed to update: [GOOGLECLIENTSECRETSecretFetcherResource]. [22m[39m
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3 | 1/8 | 9:08:07 PM | [31mUPDATE_FAILED [39m | AWS::CloudFormation::Stack | [31m[1mauth.NestedStack/auth.NestedStackResource[22m[39m (auth179371D7) [31m[1mEmbedded stack arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1 was not successfully updated. Currently in UPDATE_ROLLBACK_FAILED with reason: The following resource(s) failed to update: [GOOGLECLIENTSECRETSecretFetcherResource]. [22m[39m
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3 | 1/8 | 9:08:07 PM | [31mUPDATE_ROLLBACK_FAIL[39m | AWS::CloudFormation::Stack | [31m[1mamplify-d2i1zmq1q4r829-main-branch-beea7f81a3[22m[39m [31m[1mThe following resource(s) failed to update: [auth179371D7]. [22m[39m
Failed resources:
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 9:02:14 PM | [31mUPDATE_FAILED [39m | Custom::SecretFetcherResource | [31m[1mauth/SIWA_TEAM_IDSecretFetcherResource/Default[22m[39m (SIWATEAMIDSecretFetcherResource) [31m[1mReceived response status [FAILED] from custom resource. Message returned: TimeoutError: {"state":"TIMEOUT","reason":"Waiter has timed out"}[22m[39m
[31m[1m at checkExceptions (/var/runtime/node_modules/@aws-sdk/node_modules/@smithy/util-waiter/dist-cjs/index.js:59:26)[22m[39m
[31m[1m at waitUntilFunctionActiveV2 (/var/runtime/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js:5826:49)[22m[39m
[31m[1m at process.processTicksAndRejections (node:internal/process/task_queues:95:5)[22m[39m
[31m[1m at async defaultInvokeFunction (/var/task/outbound.js:1:1024)[22m[39m
[31m[1m at async invokeUserFunction (/var/task/framework.js:1:2740)[22m[39m
[31m[1m at async onEvent (/var/task/framework.js:1:369)[22m[39m
[31m[1m at async Runtime.handler (/var/task/cfn-response.js:1:1826) (RequestId: 052ed25c-8361-4dbc-9d93-8c5e6d871d97)[22m[39m
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3 | 9:02:51 PM | [31mUPDATE_FAILED [39m | AWS::CloudFormation::Stack | [31m[1mauth.NestedStack/auth.NestedStackResource[22m[39m (auth179371D7) [31m[1mEmbedded stack arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [GOOGLECLIENTSECRETSecretFetcherResource, SIWATEAMIDSecretFetcherResource]. [22m[39m
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG | 9:07:43 PM | [31mUPDATE_FAILED [39m | Custom::SecretFetcherResource | [31m[1mauth/GOOGLE_CLIENT_SECRETSecretFetcherResource/Default[22m[39m (GOOGLECLIENTSECRETSecretFetcherResource) [31m[1mReceived response status [FAILED] from custom resource. Message returned: TimeoutError: {"state":"TIMEOUT","reason":"Waiter has timed out"}[22m[39m
[31m[1m at checkExceptions (/var/runtime/node_modules/@aws-sdk/node_modules/@smithy/util-waiter/dist-cjs/index.js:59:26)[22m[39m
[31m[1m at waitUntilFunctionActiveV2 (/var/runtime/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js:5826:49)[22m[39m
[31m[1m at process.processTicksAndRejections (node:internal/process/task_queues:95:5)[22m[39m
[31m[1m at async defaultInvokeFunction (/var/task/outbound.js:1:1024)[22m[39m
[31m[1m at async invokeUserFunction (/var/task/framework.js:1:2740)[22m[39m
[31m[1m at async onEvent (/var/task/framework.js:1:369)[22m[39m
[31m[1m at async Runtime.handler (/var/task/cfn-response.js:1:1826) (RequestId: ef7d4dbd-c409-40ef-aea9-95ce72a44b36)[22m[39m
amplify-d2i1zmq1q4r829-main-branch-beea7f81a3 | 9:08:07 PM | [31mUPDATE_FAILED [39m | AWS::CloudFormation::Stack | [31m[1mauth.NestedStack/auth.NestedStackResource[22m[39m (auth179371D7) [31m[1mEmbedded stack arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1 was not successfully updated. Currently in UPDATE_ROLLBACK_FAILED with reason: The following resource(s) failed to update: [GOOGLECLIENTSECRETSecretFetcherResource]. [22m[39m
2024-07-28T21:08:09.920Z [INFO]:
2024-07-28T21:08:09.968Z [INFO]:
2024-07-28T21:08:09.968Z [WARNING]: ampx pipeline-deploy
Command to deploy backends in a custom CI/CD pipeline. This command is not inten
ded to be used locally.
Options:
--debug Print debug logs to the console [boolean] [default: false]
--help Show help [boolean]
--branch Name of the git branch being deployed [string] [required]
--app-id The app id of the target Amplify app [string] [required]
--outputs-out-dir A path to directory where amplify_outputs is written. If no
t provided defaults to current process working directory.
[string]
--outputs-version Version of the configuration. Version 0 represents classic
amplify-cli config file amplify-configuration and 1 represe
nts newer config file amplify_outputs
[string] [choices: "0", "1"] [default: "1"]
--outputs-format amplify_outputs file format
[string] [choices: "mjs", "json", "json-mobile", "ts", "dart"]
2024-07-28T21:08:09.969Z [INFO]: CloudFormationDeploymentError: The CloudFormation deployment has failed.
Resolution: Find more information in the CloudFormation AWS Console for this stack.
Cause: ❌ Deployment failed: Error: The stack named amplify-d2i1zmq1q4r829-main-branch-beea7f81a3 failed to deploy: UPDATE_ROLLBACK_FAILED (The following resource(s) failed to update: [auth179371D7]. ): Received response status [FAILED] from custom resource. Message returned: TimeoutError: {"state":"TIMEOUT","reason":"Waiter has timed out"}[39m
2024-07-28T21:08:10.091Z [ERROR]: !!! Build failed
2024-07-28T21:08:10.092Z [ERROR]: !!! Error: Command failed with exit code 1
2024-07-28T21:08:10.092Z [INFO]: # Starting environment caching...
2024-07-28T21:08:10.092Z [INFO]: # Uploading environment cache artifact...
2024-07-28T21:08:10.185Z [INFO]: # Uploaded environment cache artifact
2024-07-28T21:08:10.185Z [INFO]: # Environment caching completed
CloudFormation error
Hey @otottkovacstibor, thank you for reaching out. Tried reproducing this with following auth resource but did not observe this error message on the console build.
export const auth = defineAuth({
loginWith: {
email: true,
externalProviders: {
callbackUrls: ["http://localhost:3000/"],
logoutUrls: ["http://localhost:3000/"],
signInWithApple: {
clientId: secret("apple_id"),
keyId: secret("apple_key_id"),
privateKey: secret("apple_private_key"),
teamId: secret("apple_team_id"),
},
loginWithAmazon: {
clientId: secret("amazon_id"),
clientSecret: secret("amazon_secret"),
},
facebook: {
clientId: secret("FACEBOOK_CLIENT_ID"),
clientSecret: secret("FACEBOOK_CLIENT_SECRET"),
scopes: ["public_profile", "email"],
},
google: {
clientId: secret("GOOGLE_CLIENT_ID"),
clientSecret: secret("GOOGLE_CLIENT_SECRET"),
scopes: ["profile", "email"],
},
},
},
triggers: {
postConfirmation: myApiFunction,
},
groups: ["Admin"],
});
is this error message occurring intermittently? On a re-build does this re-appear?
Hey @ykethan, the deployment timeout happens every time I trigger the build with a git push or with the re-deploy button from the console.
I can only confirm that the following auth resource deployed without any issues:
import { defineAuth, secret } from '@aws-amplify/backend';
import { postConfirmation } from './post-confirmation/resource';
export const auth = defineAuth({
loginWith: {
email: true,
externalProviders: {
facebook: {
clientId: secret('FACEBOOK_CLIENT_ID'),
clientSecret: secret('FACEBOOK_CLIENT_SECRET'),
scopes: ['public_profile', 'email'],
},
google: {
clientId: secret('GOOGLE_CLIENT_ID'),
clientSecret: secret('GOOGLE_CLIENT_SECRET'),
scopes: ['profile', 'email'],
},
callbackUrls: ['http://localhost:3000'],
logoutUrls: ['http://localhost:3000'],
},
},
triggers: {
postConfirmation,
},
groups: ['Administrators'],
});
But this one always fails with the TIMEOUT error:
import { defineAuth, secret } from '@aws-amplify/backend';
import { postConfirmation } from './post-confirmation/resource';
export const auth = defineAuth({
loginWith: {
email: true,
externalProviders: {
facebook: {
clientId: secret('FACEBOOK_CLIENT_ID'),
clientSecret: secret('FACEBOOK_CLIENT_SECRET'),
scopes: ['public_profile', 'email'],
},
google: {
clientId: secret('GOOGLE_CLIENT_ID'),
clientSecret: secret('GOOGLE_CLIENT_SECRET'),
scopes: ['profile', 'email'],
},
signInWithApple: {
clientId: secret('SIWA_CLIENT_ID'),
keyId: secret('SIWA_KEY_ID'),
privateKey: secret('SIWA_PRIVATE_KEY'),
teamId: secret('SIWA_TEAM_ID'),
scopes: ['email', 'name'],
},
callbackUrls: ['http://localhost:3000'],
logoutUrls: ['http://localhost:3000'],
},
},
triggers: {
postConfirmation,
},
groups: ['Administrators'],
});
Additionally, I have Data, Storage, Pinpoint, and HTTP API configured for the backend.
Hey @otottkovacstibor, thank you for information. Tried reproducing the issue with similar resources but not observe this error.
On the AWS Lambda console could you provide us the Cloudwatch logs for the function named amplify-<app-id>-<branch-name>-SecretFetcherResourcePro-<random-number>, this function this enable us in understanding if the function timeout.
Hi @ykethan, I just found two different log groups with the name SecretFetcherResourcePro, attaching the last deployment failure logs from both.
Thanks for helping me investigate the issue, let me know what else I can share with you.
/aws/lambda/amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-UP16G4stSAAR
2024-07-30T19:05:12.654Z INIT_START Runtime Version: nodejs:18.v31 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:8ece8834b939ff191c80d2c2482efff16a57464e3894a1ef66c15edae5018028
2024-07-30T19:05:13.099Z START RequestId: 132b63af-559b-468c-ad21-228ef5d24295 Version: $LATEST
2024-07-30T19:05:13.101Z 2024-07-30T19:05:13.101Z 132b63af-559b-468c-ad21-228ef5d24295 INFO Received 'Create' event
2024-07-30T19:05:13.948Z END RequestId: 132b63af-559b-468c-ad21-228ef5d24295
2024-07-30T19:05:13.948Z REPORT RequestId: 132b63af-559b-468c-ad21-228ef5d24295 Duration: 848.51 ms Billed Duration: 849 ms Memory Size: 128 MB Max Memory Used: 92 MB Init Duration: 444.23 ms
2024-07-30T19:08:42.571Z START RequestId: d9145dc0-396f-4fe4-bb82-e40064627925 Version: $LATEST
2024-07-30T19:08:42.871Z 2024-07-30T19:08:42.871Z d9145dc0-396f-4fe4-bb82-e40064627925 INFO Received 'Update' event
2024-07-30T19:08:43.330Z END RequestId: d9145dc0-396f-4fe4-bb82-e40064627925
2024-07-30T19:08:43.330Z REPORT RequestId: d9145dc0-396f-4fe4-bb82-e40064627925 Duration: 759.91 ms Billed Duration: 760 ms Memory Size: 128 MB Max Memory Used: 94 MB
2024-07-30T19:08:43.697Z 2024-07-30T19:08:43.697Z d308d497-af9c-4c2f-867a-7fc4e1b2f6d8 INFO Received 'Update' event
2024-07-30T19:08:43.697Z START RequestId: d308d497-af9c-4c2f-867a-7fc4e1b2f6d8 Version: $LATEST
2024-07-30T19:08:44.050Z END RequestId: d308d497-af9c-4c2f-867a-7fc4e1b2f6d8
2024-07-30T19:08:44.050Z REPORT RequestId: d308d497-af9c-4c2f-867a-7fc4e1b2f6d8 Duration: 353.18 ms Billed Duration: 354 ms Memory Size: 128 MB Max Memory Used: 94 MB
2024-07-30T19:05:12.671Z INIT_START Runtime Version: nodejs:18.v31 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:8ece8834b939ff191c80d2c2482efff16a57464e3894a1ef66c15edae5018028
2024-07-30T19:05:13.078Z START RequestId: df2e1bff-3899-4d61-b8bc-80e85f317e92 Version: $LATEST
2024-07-30T19:05:13.079Z 2024-07-30T19:05:13.079Z df2e1bff-3899-4d61-b8bc-80e85f317e92 INFO Received 'Create' event
2024-07-30T19:05:13.912Z END RequestId: df2e1bff-3899-4d61-b8bc-80e85f317e92
2024-07-30T19:05:13.912Z REPORT RequestId: df2e1bff-3899-4d61-b8bc-80e85f317e92 Duration: 833.57 ms Billed Duration: 834 ms Memory Size: 128 MB Max Memory Used: 92 MB Init Duration: 406.10 ms
2024-07-30T19:08:43.847Z START RequestId: 46649661-cd47-4374-8b83-0eadd51bfe28 Version: $LATEST
2024-07-30T19:08:44.072Z 2024-07-30T19:08:44.072Z 46649661-cd47-4374-8b83-0eadd51bfe28 INFO Received 'Update' event
2024-07-30T19:08:44.499Z END RequestId: 46649661-cd47-4374-8b83-0eadd51bfe28
2024-07-30T19:08:44.499Z REPORT RequestId: 46649661-cd47-4374-8b83-0eadd51bfe28 Duration: 651.89 ms Billed Duration: 652 ms Memory Size: 128 MB Max Memory Used: 93 MB
/aws/lambda/amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW
2024-07-30T19:08:42.622Z INIT_START Runtime Version: nodejs:20.v25 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:66a145a0c659d27a0f5c781ef79f03464c01811b9c2f47d1287ba3f315da8983
2024-07-30T19:08:42.956Z START RequestId: 2f820b67-ea36-4d05-abb1-3eab19e40cb6 Version: $LATEST
2024-07-30T19:08:42.957Z 2f820b67-ea36-4d05-abb1-3eab19e40cb6 INFO [provider-framework] onEventHandler { "RequestType": "Update", "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "ResponseURL": "...", "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "RequestId": "12cea409-fd42-4e6e-9e3f-2e225ee92ccc", "LogicalResourceId": "FACEBOOKCLIENTIDSecretFetcherResource", "PhysicalResourceId": "a710c3a9-ab63-451d-9b85-743f9dfbba36", "ResourceType": "Custom::SecretFetcherResource", "ResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "FACEBOOK_CLIENT_ID", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722365096752" }, "OldResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "FACEBOOK_CLIENT_ID", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722366278045" } }
2024-07-30T19:08:42.984Z 2f820b67-ea36-4d05-abb1-3eab19e40cb6 INFO [provider-framework] executing user function arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-UP16G4stSAAR with payload { "RequestType": "Update", "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "ResponseURL": "...", "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "RequestId": "12cea409-fd42-4e6e-9e3f-2e225ee92ccc", "LogicalResourceId": "FACEBOOKCLIENTIDSecretFetcherResource", "PhysicalResourceId": "a710c3a9-ab63-451d-9b85-743f9dfbba36", "ResourceType": "Custom::SecretFetcherResource", "ResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "FACEBOOK_CLIENT_ID", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722365096752" }, "OldResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "FACEBOOK_CLIENT_ID", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722366278045" } }
2024-07-30T19:08:44.626Z 2f820b67-ea36-4d05-abb1-3eab19e40cb6 INFO [provider-framework] user function response: { "$metadata": { "httpStatusCode": 200, "requestId": "46649661-cd47-4374-8b83-0eadd51bfe28", "attempts": 1, "totalRetryDelay": 0 }, "ExecutedVersion": "$LATEST", "Payload": { "0": "REDACTED..." }, "StatusCode": 200 } object
2024-07-30T19:08:44.663Z 2f820b67-ea36-4d05-abb1-3eab19e40cb6 INFO [provider-framework] redacted onEvent returned: { "RequestId": "12cea409-fd42-4e6e-9e3f-2e225ee92ccc", "LogicalResourceId": "FACEBOOKCLIENTIDSecretFetcherResource", "PhysicalResourceId": "a710c3a9-ab63-451d-9b85-743f9dfbba36", "Data": { "secretValue": "*****" }, "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "NoEcho": true, "Status": "SUCCESS" }
2024-07-30T19:08:44.663Z 2f820b67-ea36-4d05-abb1-3eab19e40cb6 INFO [provider-framework] readacted event: { "RequestType": "Update", "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "ResponseURL": "https://cloudformation-custom-resource-response-euwest1.s3-eu-west-1.amazonaws.com/arn%3Aaws%3Acloudformation%3Aeu-west-1%3A975050237625%3Astack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1%7CFACEBOOKCLIENTIDSecretFetcherResource%7C12cea409-fd42-4e6e-9e3f-2e225ee92ccc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240730T190842Z&X-Amz-SignedHeaders=host&X-Amz-Expires=7200&X-Amz-Credential=REDACTED", "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "RequestId": "12cea409-fd42-4e6e-9e3f-2e225ee92ccc", "LogicalResourceId": "FACEBOOKCLIENTIDSecretFetcherResource", "PhysicalResourceId": "a710c3a9-ab63-451d-9b85-743f9dfbba36", "ResourceType": "Custom::SecretFetcherResource", "ResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "FACEBOOK_CLIENT_ID", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722365096752" }, "OldResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "FACEBOOK_CLIENT_ID", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722366278045" }, "Data": { "secretValue": "*****" }, "NoEcho": true, "Status": "SUCCESS" }
2024-07-30T19:08:44.666Z 2f820b67-ea36-4d05-abb1-3eab19e40cb6 INFO [provider-framework] submit redacted response to cloudformation https://cloudformation-custom-resource-response-euwest1.s3-eu-west-1.amazonaws.com//arn%3Aaws%3Acloudformation%3Aeu-west-1%3A975050237625%3Astack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1%7CFACEBOOKCLIENTIDSecretFetcherResource%7C12cea409-fd42-4e6e-9e3f-2e225ee92ccc?*** { "Status": "SUCCESS", "Reason": "SUCCESS", "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "RequestId": "12cea409-fd42-4e6e-9e3f-2e225ee92ccc", "PhysicalResourceId": "a710c3a9-ab63-451d-9b85-743f9dfbba36", "LogicalResourceId": "FACEBOOKCLIENTIDSecretFetcherResource", "NoEcho": true, "Data": { "secretValue": "*****" } }
2024-07-30T19:08:44.863Z END RequestId: 2f820b67-ea36-4d05-abb1-3eab19e40cb6
2024-07-30T19:08:44.863Z REPORT RequestId: 2f820b67-ea36-4d05-abb1-3eab19e40cb6 Duration: 1907.54 ms Billed Duration: 1908 ms Memory Size: 128 MB Max Memory Used: 90 MB Init Duration: 332.81 ms
2024-07-30T19:05:11.360Z INIT_START Runtime Version: nodejs:20.v25 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:66a145a0c659d27a0f5c781ef79f03464c01811b9c2f47d1287ba3f315da8983
2024-07-30T19:05:11.690Z START RequestId: 1445b886-562b-4b15-af4f-c1d5dab35a0e Version: $LATEST
2024-07-30T19:05:11.691Z 2024-07-30T19:05:11.691Z 1445b886-562b-4b15-af4f-c1d5dab35a0e INFO [provider-framework] onEventHandler { "RequestType": "Create", "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "ResponseURL": "...", "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "RequestId": "37ce4cde-c17a-4333-99d6-65d406588bf4", "LogicalResourceId": "SIWAKEYIDSecretFetcherResource", "ResourceType": "Custom::SecretFetcherResource", "ResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "SIWA_KEY_ID", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722366278045" } }
2024-07-30T19:05:11.694Z 2024-07-30T19:05:11.694Z 1445b886-562b-4b15-af4f-c1d5dab35a0e INFO [provider-framework] executing user function arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-UP16G4stSAAR with payload { "RequestType": "Create", "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "ResponseURL": "...", "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "RequestId": "37ce4cde-c17a-4333-99d6-65d406588bf4", "LogicalResourceId": "SIWAKEYIDSecretFetcherResource", "ResourceType": "Custom::SecretFetcherResource", "ResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "SIWA_KEY_ID", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722366278045" } }
2024-07-30T19:05:14.093Z 2024-07-30T19:05:14.093Z 1445b886-562b-4b15-af4f-c1d5dab35a0e INFO [provider-framework] user function response: { "$metadata": { "httpStatusCode": 200, "requestId": "132b63af-559b-468c-ad21-228ef5d24295", "attempts": 1, "totalRetryDelay": 0 }, "ExecutedVersion": "$LATEST", "Payload": { "0": "REDACTED.." }, "StatusCode": 200 } object
2024-07-30T19:05:14.111Z 2024-07-30T19:05:14.111Z 1445b886-562b-4b15-af4f-c1d5dab35a0e INFO [provider-framework] redacted onEvent returned: { "RequestId": "37ce4cde-c17a-4333-99d6-65d406588bf4", "LogicalResourceId": "SIWAKEYIDSecretFetcherResource", "PhysicalResourceId": "485f9eaf-4801-4bd1-9b85-8f3f8b9c657d", "Data": { "secretValue": "*****" }, "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "NoEcho": true, "Status": "SUCCESS" }
2024-07-30T19:05:14.112Z 2024-07-30T19:05:14.112Z 1445b886-562b-4b15-af4f-c1d5dab35a0e INFO [provider-framework] readacted event: { "RequestType": "Create", "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "ResponseURL": "https://cloudformation-custom-resource-response-euwest1.s3-eu-west-1.amazonaws.com/arn%3Aaws%3Acloudformation%3Aeu-west-1%3A975050237625%3Astack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1%7CSIWAKEYIDSecretFetcherResource%7C37ce4cde-c17a-4333-99d6-65d406588bf4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240730T190511Z&X-Amz-SignedHeaders=host&X-Amz-Expires=7200&X-Amz-Credential=REDACTED", "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "RequestId": "37ce4cde-c17a-4333-99d6-65d406588bf4", "LogicalResourceId": "SIWAKEYIDSecretFetcherResource", "ResourceType": "Custom::SecretFetcherResource", "ResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "SIWA_KEY_ID", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722366278045" }, "PhysicalResourceId": "485f9eaf-4801-4bd1-9b85-8f3f8b9c657d", "Data": { "secretValue": "*****" }, "NoEcho": true, "Status": "SUCCESS" }
2024-07-30T19:05:14.114Z 2024-07-30T19:05:14.114Z 1445b886-562b-4b15-af4f-c1d5dab35a0e INFO [provider-framework] submit redacted response to cloudformation https://cloudformation-custom-resource-response-euwest1.s3-eu-west-1.amazonaws.com//arn%3Aaws%3Acloudformation%3Aeu-west-1%3A975050237625%3Astack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1%7CSIWAKEYIDSecretFetcherResource%7C37ce4cde-c17a-4333-99d6-65d406588bf4?*** { "Status": "SUCCESS", "Reason": "SUCCESS", "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "RequestId": "37ce4cde-c17a-4333-99d6-65d406588bf4", "PhysicalResourceId": "485f9eaf-4801-4bd1-9b85-8f3f8b9c657d", "LogicalResourceId": "SIWAKEYIDSecretFetcherResource", "NoEcho": true, "Data": { "secretValue": "*****" } }
2024-07-30T19:05:14.331Z END RequestId: 1445b886-562b-4b15-af4f-c1d5dab35a0e
2024-07-30T19:05:14.331Z REPORT RequestId: 1445b886-562b-4b15-af4f-c1d5dab35a0e Duration: 2641.14 ms Billed Duration: 2642 ms Memory Size: 128 MB Max Memory Used: 91 MB Init Duration: 328.14 ms
2024-07-30T19:08:42.511Z START RequestId: 6d83a87f-1108-4963-ab37-d4826de60abb Version: $LATEST
2024-07-30T19:08:42.671Z 2024-07-30T19:08:42.671Z 6d83a87f-1108-4963-ab37-d4826de60abb INFO [provider-framework] onEventHandler { "RequestType": "Update", "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "ResponseURL": "...", "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "RequestId": "b9b0cc1c-aab6-4411-9709-5ddea3dd84d1", "LogicalResourceId": "GOOGLECLIENTSECRETSecretFetcherResource", "PhysicalResourceId": "fcdac9d5-e283-4346-b48f-0d105823b306", "ResourceType": "Custom::SecretFetcherResource", "ResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "GOOGLE_CLIENT_SECRET", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722365096753" }, "OldResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "GOOGLE_CLIENT_SECRET", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722366278045" } }
2024-07-30T19:08:42.671Z 2024-07-30T19:08:42.671Z 6d83a87f-1108-4963-ab37-d4826de60abb INFO [provider-framework] executing user function arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-UP16G4stSAAR with payload { "RequestType": "Update", "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "ResponseURL": "...", "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "RequestId": "b9b0cc1c-aab6-4411-9709-5ddea3dd84d1", "LogicalResourceId": "GOOGLECLIENTSECRETSecretFetcherResource", "PhysicalResourceId": "fcdac9d5-e283-4346-b48f-0d105823b306", "ResourceType": "Custom::SecretFetcherResource", "ResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "GOOGLE_CLIENT_SECRET", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722365096753" }, "OldResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "GOOGLE_CLIENT_SECRET", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722366278045" } }
2024-07-30T19:13:36.429Z 2024-07-30T19:13:36.429Z 6d83a87f-1108-4963-ab37-d4826de60abb INFO [provider-framework] submit response to cloudformation https://cloudformation-custom-resource-response-euwest1.s3-eu-west-1.amazonaws.com//arn%3Aaws%3Acloudformation%3Aeu-west-1%3A975050237625%3Astack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1%7CGOOGLECLIENTSECRETSecretFetcherResource%7Cb9b0cc1c-aab6-4411-9709-5ddea3dd84d1?*** { "Status": "FAILED", "Reason": "TimeoutError: {\"state\":\"TIMEOUT\",\"reason\":\"Waiter has timed out\"}\n at checkExceptions (/var/runtime/node_modules/@aws-sdk/node_modules/@smithy/util-waiter/dist-cjs/index.js:59:26)\n at waitUntilFunctionActiveV2 (/var/runtime/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js:5826:49)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async defaultInvokeFunction (/var/task/outbound.js:1:1024)\n at async invokeUserFunction (/var/task/framework.js:1:2740)\n at async onEvent (/var/task/framework.js:1:369)\n at async Runtime.handler (/var/task/cfn-response.js:1:1826)", "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "RequestId": "b9b0cc1c-aab6-4411-9709-5ddea3dd84d1", "PhysicalResourceId": "fcdac9d5-e283-4346-b48f-0d105823b306", "LogicalResourceId": "GOOGLECLIENTSECRETSecretFetcherResource" }
2024-07-30T19:13:36.549Z END RequestId: 6d83a87f-1108-4963-ab37-d4826de60abb
2024-07-30T19:13:36.549Z REPORT RequestId: 6d83a87f-1108-4963-ab37-d4826de60abb Duration: 294039.69 ms Billed Duration: 294040 ms Memory Size: 128 MB Max Memory Used: 91 MB
2024-07-30T19:05:11.514Z INIT_START Runtime Version: nodejs:20.v25 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:66a145a0c659d27a0f5c781ef79f03464c01811b9c2f47d1287ba3f315da8983
2024-07-30T19:05:11.906Z START RequestId: 44ba9127-ebe7-4cd9-8d8f-b5a6b6354ea0 Version: $LATEST
2024-07-30T19:05:11.908Z 2024-07-30T19:05:11.908Z 44ba9127-ebe7-4cd9-8d8f-b5a6b6354ea0 INFO [provider-framework] onEventHandler { "RequestType": "Update", "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "ResponseURL": "...", "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "RequestId": "32e2f901-7e46-48de-abe7-2d178c9c47b5", "LogicalResourceId": "FACEBOOKCLIENTIDSecretFetcherResource", "PhysicalResourceId": "a710c3a9-ab63-451d-9b85-743f9dfbba36", "ResourceType": "Custom::SecretFetcherResource", "ResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "FACEBOOK_CLIENT_ID", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722366278045" }, "OldResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "FACEBOOK_CLIENT_ID", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722365096752" } }
2024-07-30T19:05:11.940Z 2024-07-30T19:05:11.940Z 44ba9127-ebe7-4cd9-8d8f-b5a6b6354ea0 INFO [provider-framework] executing user function arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-UP16G4stSAAR with payload { "RequestType": "Update", "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "ResponseURL": "...", "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "RequestId": "32e2f901-7e46-48de-abe7-2d178c9c47b5", "LogicalResourceId": "FACEBOOKCLIENTIDSecretFetcherResource", "PhysicalResourceId": "a710c3a9-ab63-451d-9b85-743f9dfbba36", "ResourceType": "Custom::SecretFetcherResource", "ResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "FACEBOOK_CLIENT_ID", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722366278045" }, "OldResourceProperties": { "ServiceToken": "arn:aws:lambda:eu-west-1:975050237625:function:amplify-d2i1zmq1q4r829-ma-SecretFetcherResourcePro-vTvju5V9kBpW", "secretName": "FACEBOOK_CLIENT_ID", "namespace": "d2i1zmq1q4r829", "name": "main", "type": "branch", "secretLastUpdated": "1722365096752" } }
2024-07-30T19:09:58.778Z 2024-07-30T19:09:58.778Z 44ba9127-ebe7-4cd9-8d8f-b5a6b6354ea0 INFO [provider-framework] submit response to cloudformation https://cloudformation-custom-resource-response-euwest1.s3-eu-west-1.amazonaws.com//arn%3Aaws%3Acloudformation%3Aeu-west-1%3A975050237625%3Astack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1%7CFACEBOOKCLIENTIDSecretFetcherResource%7C32e2f901-7e46-48de-abe7-2d178c9c47b5?*** { "Status": "FAILED", "Reason": "TimeoutError: {\"state\":\"TIMEOUT\",\"reason\":\"Waiter has timed out\"}\n at checkExceptions (/var/runtime/node_modules/@aws-sdk/node_modules/@smithy/util-waiter/dist-cjs/index.js:59:26)\n at waitUntilFunctionActiveV2 (/var/runtime/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js:5826:49)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async defaultInvokeFunction (/var/task/outbound.js:1:1024)\n at async invokeUserFunction (/var/task/framework.js:1:2740)\n at async onEvent (/var/task/framework.js:1:369)\n at async Runtime.handler (/var/task/cfn-response.js:1:1826)", "StackId": "arn:aws:cloudformation:eu-west-1:975050237625:stack/amplify-d2i1zmq1q4r829-main-branch-beea7f81a3-auth179371D7-WQ037FPO5GGG/08f03d00-4845-11ef-a2b5-062cbecb39a1", "RequestId": "32e2f901-7e46-48de-abe7-2d178c9c47b5", "PhysicalResourceId": "a710c3a9-ab63-451d-9b85-743f9dfbba36", "LogicalResourceId": "FACEBOOKCLIENTIDSecretFetcherResource" }
2024-07-30T19:09:58.938Z END RequestId: 44ba9127-ebe7-4cd9-8d8f-b5a6b6354ea0
2024-07-30T19:09:58.938Z REPORT RequestId: 44ba9127-ebe7-4cd9-8d8f-b5a6b6354ea0 Duration: 287032.89 ms Billed Duration: 287033 ms Memory Size: 128 MB Max Memory Used: 90 MB Init Duration: 391.54 ms
Hey @otottkovacstibor, thank you for the information. From the logs it appears the SecretFetcherResourcePro function appears to be throttling when fetching GOOGLECLIENTSECRET and FACEBOOKCLIENTID.
For a quick confirmation could you check the concurrent execution -> Applied account-level quota value on the Service quota console.
From the Lambda documentation noticed new AWS accounts have reduced concurrency and memory quotas.
Hey @ykethan, you're right, this is quite a new AWS account created 2 weeks ago.
It looks like my account-level concurrency is limited to 10:
I can also confirm that there were a lot of throttled executions during my testing.
Thanks again for your help, I'll try to request an account-level quota increase.
I can confirm that everything is working well after the quota increase.