@aws-amplify/graphql-model-transformer
Advanced tools
Comparing version 2.7.1-gen2-release.0 to 2.8.0-gen2-release.0
@@ -6,2 +6,8 @@ # Change Log | ||
# [2.8.0-gen2-release.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-model-transformer@2.7.1-gen2-release.0...@aws-amplify/graphql-model-transformer@2.8.0-gen2-release.0) (2024-04-03) | ||
### Features | ||
- add cdk sql connection string support ([#2409](https://github.com/aws-amplify/amplify-category-api/issues/2409)) ([274d117](https://github.com/aws-amplify/amplify-category-api/commit/274d1176d96e265d02817a975848c767d6d43c31)) | ||
## [2.7.1-gen2-release.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-model-transformer@2.7.0-gen2-release.1...@aws-amplify/graphql-model-transformer@2.7.1-gen2-release.0) (2024-03-29) | ||
@@ -8,0 +14,0 @@ |
@@ -177,2 +177,9 @@ "use strict"; | ||
} | ||
else if ((0, graphql_transformer_interfaces_1.isSqlModelDataSourceSsmDbConnectionStringConfig)(secretEntry)) { | ||
policyStatements.push(new aws_iam_1.PolicyStatement({ | ||
actions: ['ssm:GetParameter', 'ssm:GetParameters'], | ||
effect: aws_iam_1.Effect.ALLOW, | ||
resources: [`arn:aws:ssm:*:*:parameter${secretEntry.connectionUriSsmPath}`], | ||
})); | ||
} | ||
else { | ||
@@ -179,0 +186,0 @@ throw new Error('Unable to determine if SSM or Secrets Manager should be used for credentials.'); |
@@ -49,2 +49,7 @@ "use strict"; | ||
} | ||
else if ((0, graphql_transformer_interfaces_1.isSqlModelDataSourceSsmDbConnectionStringConfig)(secretEntry)) { | ||
environment.CREDENTIAL_STORAGE_METHOD = 'SSM'; | ||
environment.connectionString = secretEntry.connectionUriSsmPath; | ||
credentialStorageMethod = rds_1.CredentialStorageMethod.SSM; | ||
} | ||
const lambda = (0, rds_1.createRdsLambda)(lambdaScope, context.api, role, layerVersionArn, resourceNames, credentialStorageMethod, environment, strategy.vpcConfiguration, strategy.sqlLambdaProvisionedConcurrencyConfig); | ||
@@ -51,0 +56,0 @@ const patchingLambdaRoleScope = context.stackManager.getScopeFor(resourceNames.sqlPatchingLambdaExecutionRole, resourceNames.sqlStack); |
{ | ||
"name": "@aws-amplify/graphql-model-transformer", | ||
"version": "2.7.1-gen2-release.0", | ||
"version": "2.8.0-gen2-release.0", | ||
"description": "Amplify graphql @model transformer", | ||
@@ -36,4 +36,4 @@ "repository": { | ||
"@aws-amplify/graphql-directives": "1.1.0-gen2-release.0", | ||
"@aws-amplify/graphql-transformer-core": "2.5.2-gen2-release.0", | ||
"@aws-amplify/graphql-transformer-interfaces": "3.5.1-gen2-release.0", | ||
"@aws-amplify/graphql-transformer-core": "2.5.2-gen2-release.1", | ||
"@aws-amplify/graphql-transformer-interfaces": "3.6.0-gen2-release.0", | ||
"graphql": "^15.5.0", | ||
@@ -48,3 +48,3 @@ "graphql-mapping-template": "4.20.15", | ||
"devDependencies": { | ||
"@aws-amplify/graphql-transformer-test-utils": "0.4.8-gen2-release.0", | ||
"@aws-amplify/graphql-transformer-test-utils": "0.4.8-gen2-release.1", | ||
"@aws-sdk/client-dynamodb": "^3.431.0", | ||
@@ -91,3 +91,3 @@ "@types/aws-lambda": "8.10.119", | ||
}, | ||
"gitHead": "a550843921e81b923214a9038b0725ac5e6b2b67" | ||
"gitHead": "990369ef2ef303d9abaea74f5c8c24e745af3461" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50207717
4737
+ Added@aws-amplify/graphql-transformer-core@2.5.2-gen2-release.1(transitive)
+ Added@aws-amplify/graphql-transformer-interfaces@3.6.0-gen2-release.0(transitive)
- Removed@aws-amplify/graphql-transformer-core@2.5.2-gen2-release.0(transitive)
- Removed@aws-amplify/graphql-transformer-interfaces@3.5.1-gen2-release.0(transitive)
Updated@aws-amplify/graphql-transformer-core@2.5.2-gen2-release.1
Updated@aws-amplify/graphql-transformer-interfaces@3.6.0-gen2-release.0