Skip to content

Commit e115e6f

Browse files
authored
Merge pull request #643 from amplify-education/hotfix/remove-random-string-from-sls-service
Remove RANDOM_STRING to reduce SLS credits usage
2 parents ef35af9 + 029261b commit e115e6f

File tree

24 files changed

+53
-53
lines changed

24 files changed

+53
-53
lines changed

test/integration-tests/basic/apigateway-with-export/serverless.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# APIGateway with export outputs
2-
service: ${env:PLUGIN_IDENTIFIER}-apigateway-with-export-${env:RANDOM_STRING}
2+
service: ${env:PLUGIN_IDENTIFIER}-apigateway-with-export
33

44
frameworkVersion: "4.2.5"
55

@@ -27,23 +27,23 @@ resources:
2727
Value:
2828
Ref: ApiGatewayRestApi # Logical ID
2929
Export:
30-
Name: api-${self:provider.stage}-${env:RANDOM_STRING}-restApiId
30+
Name: api-${self:provider.stage}-restApiId
3131
RootResource:
3232
Description: Main service's API Gateway Root Resource ID
3333
Value:
3434
Fn::GetAtt:
3535
- ApiGatewayRestApi # Logical ID
3636
- RootResourceId # Logical ID
3737
Export:
38-
Name: api-${self:provider.stage}-${env:RANDOM_STRING}-RootResourceId
38+
Name: api-${self:provider.stage}-RootResourceId
3939

4040
plugins:
4141
- serverless-domain-manager
4242

4343
custom:
4444
customDomain:
4545
stage: ${self:provider.stage}
46-
domainName: ${env:PLUGIN_IDENTIFIER}-apigateway-with-export-${env:RANDOM_STRING}.${env:TEST_DOMAIN}
46+
domainName: ${env:PLUGIN_IDENTIFIER}-apigateway-with-export.${env:TEST_DOMAIN}
4747
autoDomain: true
4848
basePath: hello-world
4949
endpointType: REGIONAL

test/integration-tests/basic/apigateway-with-import/serverless.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# APIGateway with import other CloudFormation stack outputs
2-
service: ${env:PLUGIN_IDENTIFIER}-apigateway-with-import-${env:RANDOM_STRING}
2+
service: ${env:PLUGIN_IDENTIFIER}-apigateway-with-import
33

44
frameworkVersion: "4.2.5"
55

@@ -12,9 +12,9 @@ provider:
1212
stage: test
1313
apiGateway:
1414
restApiId:
15-
Fn::ImportValue: api-${self:provider.stage}-${env:RANDOM_STRING}-restApiId
15+
Fn::ImportValue: api-${self:provider.stage}-restApiId
1616
restApiRootResourceId:
17-
Fn::ImportValue: api-${self:provider.stage}-${env:RANDOM_STRING}-RootResourceId
17+
Fn::ImportValue: api-${self:provider.stage}-RootResourceId
1818
functions:
1919
helloWorld:
2020
handler: handler.helloWorld

test/integration-tests/basic/basepath-mapping/serverless.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Enabled and testing basepath mapping
2-
service: ${env:PLUGIN_IDENTIFIER}-basepath-mapping-${env:RANDOM_STRING}
2+
service: ${env:PLUGIN_IDENTIFIER}-basepath-mapping
33

44
frameworkVersion: "4.2.5"
55

@@ -27,7 +27,7 @@ plugins:
2727
- serverless-domain-manager
2828
custom:
2929
customDomain:
30-
domainName: ${env:PLUGIN_IDENTIFIER}-basepath-mapping-${env:RANDOM_STRING}.${env:TEST_DOMAIN}
30+
domainName: ${env:PLUGIN_IDENTIFIER}-basepath-mapping.${env:TEST_DOMAIN}
3131
basePath: 'api'
3232

3333
package:

test/integration-tests/basic/create-domain-idempotent/serverless.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Creating a domain should be idempotent
2-
service: ${env:PLUGIN_IDENTIFIER}-create-domain-idempotent-${env:RANDOM_STRING}
2+
service: ${env:PLUGIN_IDENTIFIER}-create-domain-idempotent
33

44
frameworkVersion: "4.2.5"
55

@@ -22,7 +22,7 @@ plugins:
2222
- serverless-domain-manager
2323
custom:
2424
customDomain:
25-
domainName: ${env:PLUGIN_IDENTIFIER}-create-domain-idempotent-${env:RANDOM_STRING}.${env:TEST_DOMAIN}
25+
domainName: ${env:PLUGIN_IDENTIFIER}-create-domain-idempotent.${env:TEST_DOMAIN}
2626
basePath: ''
2727

2828
package:

test/integration-tests/basic/deploy-idempotent/serverless.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Deploying should be idempotent
2-
service: ${env:PLUGIN_IDENTIFIER}-deploy-idempotent-${env:RANDOM_STRING}
2+
service: ${env:PLUGIN_IDENTIFIER}-deploy-idempotent
33

44
frameworkVersion: "4.2.5"
55

@@ -22,7 +22,7 @@ plugins:
2222
- serverless-domain-manager
2323
custom:
2424
customDomain:
25-
domainName: ${env:PLUGIN_IDENTIFIER}-deploy-idempotent-${env:RANDOM_STRING}.${env:TEST_DOMAIN}
25+
domainName: ${env:PLUGIN_IDENTIFIER}-deploy-idempotent.${env:TEST_DOMAIN}
2626
basePath: ''
2727

2828
package:

test/integration-tests/basic/deploy-idempotent2/serverless.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Deploying should be idempotent for the same domain and different paths
2-
service: ${env:PLUGIN_IDENTIFIER}-deploy-idempotent2-${env:RANDOM_STRING}
2+
service: ${env:PLUGIN_IDENTIFIER}-deploy-idempotent2
33

44
frameworkVersion: "4.2.5"
55

@@ -25,11 +25,11 @@ custom:
2525
- rest:
2626
autoDomain: true
2727
basePath: "path1"
28-
domainName: ${env:PLUGIN_IDENTIFIER}-deploy-idempotent2-${env:RANDOM_STRING}.${env:TEST_DOMAIN}
28+
domainName: ${env:PLUGIN_IDENTIFIER}-deploy-idempotent2.${env:TEST_DOMAIN}
2929
allowPathMatching: true
3030
- rest:
3131
basePath: "path2"
32-
domainName: ${env:PLUGIN_IDENTIFIER}-deploy-idempotent2-${env:RANDOM_STRING}.${env:TEST_DOMAIN}
32+
domainName: ${env:PLUGIN_IDENTIFIER}-deploy-idempotent2.${env:TEST_DOMAIN}
3333
allowPathMatching: true
3434

3535
package:

test/integration-tests/basic/http-api-multiple/serverless.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
service: ${env:PLUGIN_IDENTIFIER}-http-api-${env:RANDOM_STRING}
1+
service: ${env:PLUGIN_IDENTIFIER}-http-api
22

33
frameworkVersion: "4.2.5"
44

@@ -26,12 +26,12 @@ plugins:
2626
custom:
2727
customDomains:
2828
- http:
29-
domainName: ${env:PLUGIN_IDENTIFIER}-http-api-multi-${env:RANDOM_STRING}.${env:TEST_DOMAIN}
29+
domainName: ${env:PLUGIN_IDENTIFIER}-http-api-multi.${env:TEST_DOMAIN}
3030
basePath: ''
3131
endpointType: REGIONAL
3232
autoDomain: true
3333
- http:
34-
domainName: ${env:PLUGIN_IDENTIFIER}-http-api-milti2-${env:RANDOM_STRING}.${env:TEST_DOMAIN}
34+
domainName: ${env:PLUGIN_IDENTIFIER}-http-api-milti2.${env:TEST_DOMAIN}
3535
basePath: ''
3636
endpointType: REGIONAL
3737
autoDomain: true

test/integration-tests/basic/mutual-tls/serverless.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
service: ${env:PLUGIN_IDENTIFIER}-mutual-tls-${env:RANDOM_STRING}
1+
service: ${env:PLUGIN_IDENTIFIER}-mutual-tls
22

33
frameworkVersion: "4.2.5"
44

@@ -22,7 +22,7 @@ plugins:
2222

2323
custom:
2424
customDomain:
25-
domainName: ${env:PLUGIN_IDENTIFIER}-mutual-tls-${env:RANDOM_STRING}.${env:TEST_DOMAIN}
25+
domainName: ${env:PLUGIN_IDENTIFIER}-mutual-tls.${env:TEST_DOMAIN}
2626
autoDomain: true
2727
endpointType: REGIONAL
2828
tlsTruststoreUri: ${env:TLS_TRUSTSTORE_URI}

test/integration-tests/basic/null-basepath-mapping/serverless.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Enabled and testing basepath mapping
2-
service: ${env:PLUGIN_IDENTIFIER}-null-basepath-mapping-${env:RANDOM_STRING}
2+
service: ${env:PLUGIN_IDENTIFIER}-null-basepath-mapping
33

44
frameworkVersion: "4.2.5"
55

@@ -27,7 +27,7 @@ plugins:
2727
- serverless-domain-manager
2828
custom:
2929
customDomain:
30-
domainName: ${env:PLUGIN_IDENTIFIER}-null-basepath-mapping-${env:RANDOM_STRING}.${env:TEST_DOMAIN}
30+
domainName: ${env:PLUGIN_IDENTIFIER}-null-basepath-mapping.${env:TEST_DOMAIN}
3131
basePath: ''
3232

3333
package:

test/integration-tests/basic/route53-profile/serverless.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Creating a domain should be idempotent
2-
service: ${env:PLUGIN_IDENTIFIER}-route53-profile-${env:RANDOM_STRING}
2+
service: ${env:PLUGIN_IDENTIFIER}-route53-profile
33

44
frameworkVersion: "4.2.5"
55

@@ -23,7 +23,7 @@ plugins:
2323

2424
custom:
2525
customDomain:
26-
domainName: ${env:PLUGIN_IDENTIFIER}-route53-profile-${env:RANDOM_STRING}.${env:TEST_DOMAIN}
26+
domainName: ${env:PLUGIN_IDENTIFIER}-route53-profile.${env:TEST_DOMAIN}
2727
route53Profile: ${env:ROUTE53_PROFILE}
2828

2929
package:

0 commit comments

Comments
 (0)