File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ version = 0.1
2
2
[default ]
3
3
[default .deploy ]
4
4
[default .deploy .parameters ]
5
+ s3_bucket = " aws-sam-cli-managed-default-samclisourcebucket-b5rkcqqppiqc"
5
6
region = " us-east-2"
6
7
confirm_changeset = true
7
- capabilities = " CAPABILITY_IAM"
8
- parameter_overrides = " Environment=\" stage\" "
9
-
8
+ capabilities = " CAPABILITY_IAM"
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ Globals:
27
27
Resources :
28
28
ServerlessHTTPApi :
29
29
Type : AWS::Serverless::HttpApi
30
+ Properties :
31
+ StageName : !Sub "${Environment}"
30
32
31
33
HelloWorldFunction :
32
34
Type : AWS::Serverless::Function
@@ -45,7 +47,11 @@ Resources:
45
47
Outputs :
46
48
HelloWorldApi :
47
49
Description : " API Gateway endpoint URL for Prod stage for Hello World function"
48
- Value : !Sub "https://${ServerlessHTTPApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/"
50
+ Value : !Join
51
+ - ' '
52
+ - - !Sub "https://${ServerlessHTTPApi}.execute-api.${AWS::Region}.amazonaws.com/"
53
+ - !If [ProdCondition, "prod", "stage"]
54
+
49
55
HelloWorldFunction :
50
56
Description : " Hello World Lambda Function ARN"
51
57
Value : !GetAtt HelloWorldFunction.Arn
You can’t perform that action at this time.
0 commit comments