@friggframework/devtools 2.0.0--canary.461.fb1228a.0 → 2.0.0--canary.461.ec1ad4e.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -915,8 +915,8 @@ class VpcBuilder extends InfrastructureBuilder {
|
|
|
915
915
|
if (!stackManagedEndpoints.dynamodb && !existingEndpoints.dynamodb) missing.push('DynamoDB');
|
|
916
916
|
if (!stackManagedEndpoints.kms && !existingEndpoints.kms && appDefinition.encryption?.fieldLevelEncryptionMethod === 'kms') missing.push('KMS');
|
|
917
917
|
if (!stackManagedEndpoints.secretsManager && !existingEndpoints.secretsManager) missing.push('Secrets Manager');
|
|
918
|
-
// SQS endpoint needed for
|
|
919
|
-
if (!stackManagedEndpoints.sqs && !existingEndpoints.sqs
|
|
918
|
+
// SQS endpoint needed for job queues and async processing
|
|
919
|
+
if (!stackManagedEndpoints.sqs && !existingEndpoints.sqs) missing.push('SQS');
|
|
920
920
|
|
|
921
921
|
// Log reused stack-managed endpoints
|
|
922
922
|
const reused = [];
|
|
@@ -992,7 +992,7 @@ class VpcBuilder extends InfrastructureBuilder {
|
|
|
992
992
|
const needsSecurityGroup =
|
|
993
993
|
(!stackManagedEndpoints.kms && !existingEndpoints.kms && appDefinition.encryption?.fieldLevelEncryptionMethod === 'kms') ||
|
|
994
994
|
(!stackManagedEndpoints.secretsManager && !existingEndpoints.secretsManager) ||
|
|
995
|
-
(!stackManagedEndpoints.sqs && !existingEndpoints.sqs
|
|
995
|
+
(!stackManagedEndpoints.sqs && !existingEndpoints.sqs);
|
|
996
996
|
|
|
997
997
|
if (needsSecurityGroup) {
|
|
998
998
|
result.resources.FriggVPCEndpointSecurityGroup = {
|
|
@@ -1047,8 +1047,9 @@ class VpcBuilder extends InfrastructureBuilder {
|
|
|
1047
1047
|
};
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
|
-
// SQS Interface Endpoint (only if not stack-managed
|
|
1051
|
-
|
|
1050
|
+
// SQS Interface Endpoint (only if not stack-managed and missing)
|
|
1051
|
+
// Used for job queues and async processing (not just database migrations)
|
|
1052
|
+
if (!stackManagedEndpoints.sqs && !existingEndpoints.sqs) {
|
|
1052
1053
|
result.resources.FriggSQSVPCEndpoint = {
|
|
1053
1054
|
Type: 'AWS::EC2::VPCEndpoint',
|
|
1054
1055
|
Properties: {
|
|
@@ -424,7 +424,7 @@ describe('VpcBuilder', () => {
|
|
|
424
424
|
expect(result.resources.FriggKMSVPCEndpoint).toBeUndefined();
|
|
425
425
|
expect(result.resources.FriggSecretsManagerVPCEndpoint).toBeUndefined();
|
|
426
426
|
expect(result.resources.FriggSQSVPCEndpoint).toBeUndefined();
|
|
427
|
-
|
|
427
|
+
|
|
428
428
|
// Should still NOT create VPC Endpoint Security Group
|
|
429
429
|
expect(result.resources.FriggVPCEndpointSecurityGroup).toBeUndefined();
|
|
430
430
|
});
|
|
@@ -449,6 +449,7 @@ describe('VpcBuilder', () => {
|
|
|
449
449
|
expect(result.resources.FriggDynamoDBVPCEndpoint).toBeDefined();
|
|
450
450
|
expect(result.resources.FriggKMSVPCEndpoint).toBeDefined();
|
|
451
451
|
expect(result.resources.FriggSecretsManagerVPCEndpoint).toBeDefined();
|
|
452
|
+
expect(result.resources.FriggSQSVPCEndpoint).toBeDefined();
|
|
452
453
|
});
|
|
453
454
|
|
|
454
455
|
it('should skip VPC endpoints when disabled', async () => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/devtools",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.461.
|
|
4
|
+
"version": "2.0.0--canary.461.ec1ad4e.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-ec2": "^3.835.0",
|
|
7
7
|
"@aws-sdk/client-kms": "^3.835.0",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@babel/eslint-parser": "^7.18.9",
|
|
12
12
|
"@babel/parser": "^7.25.3",
|
|
13
13
|
"@babel/traverse": "^7.25.3",
|
|
14
|
-
"@friggframework/schemas": "2.0.0--canary.461.
|
|
15
|
-
"@friggframework/test": "2.0.0--canary.461.
|
|
14
|
+
"@friggframework/schemas": "2.0.0--canary.461.ec1ad4e.0",
|
|
15
|
+
"@friggframework/test": "2.0.0--canary.461.ec1ad4e.0",
|
|
16
16
|
"@hapi/boom": "^10.0.1",
|
|
17
17
|
"@inquirer/prompts": "^5.3.8",
|
|
18
18
|
"axios": "^1.7.2",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"serverless-http": "^2.7.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@friggframework/eslint-config": "2.0.0--canary.461.
|
|
38
|
-
"@friggframework/prettier-config": "2.0.0--canary.461.
|
|
37
|
+
"@friggframework/eslint-config": "2.0.0--canary.461.ec1ad4e.0",
|
|
38
|
+
"@friggframework/prettier-config": "2.0.0--canary.461.ec1ad4e.0",
|
|
39
39
|
"aws-sdk-client-mock": "^4.1.0",
|
|
40
40
|
"aws-sdk-client-mock-jest": "^4.1.0",
|
|
41
41
|
"jest": "^30.1.3",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "ec1ad4ecc89d650ce9380aeed0a29831d8e2098b"
|
|
74
74
|
}
|