diff --git a/packages/amplify-graphql-model-transformer/src/resolvers/rds/resolver.ts b/packages/amplify-graphql-model-transformer/src/resolvers/rds/resolver.ts index 8fe1b7816d..5dbc8b9948 100644 --- a/packages/amplify-graphql-model-transformer/src/resolvers/rds/resolver.ts +++ b/packages/amplify-graphql-model-transformer/src/resolvers/rds/resolver.ts @@ -203,9 +203,10 @@ export const createLayerVersionCustomResource = ( ): AwsCustomResource => { const { SQLLayerManifestBucket, SQLLayerManifestBucketRegion, SQLLayerVersionManifestKeyPrefix } = ResourceConstants.RESOURCES; + const SQLBetaLayerManifestBucket = `${SQLLayerManifestBucket}-beta`; const key = Fn.join('', [SQLLayerVersionManifestKeyPrefix, Fn.ref('AWS::Region')]); - const manifestArn = `arn:aws:s3:::${SQLLayerManifestBucket}/${key}`; + const manifestArn = `arn:aws:s3:::${SQLBetaLayerManifestBucket}/${key}`; const resourceName = resourceNames.sqlLayerVersionResolverCustomResource; @@ -226,7 +227,7 @@ export const createLayerVersionCustomResource = ( action: 'getObject', region: SQLLayerManifestBucketRegion, parameters: { - Bucket: SQLLayerManifestBucket, + Bucket: SQLBetaLayerManifestBucket, Key: key, }, physicalResourceId,