Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.

Commit 234b36d

Browse files
authored
Merge pull request #6 from aws-samples/rezabekf/patch-01
Rezabekf/patch 01
2 parents 77d3bb4 + f66c39b commit 234b36d

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea

docs/step-1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 1.1 Associate the solution's AWS WAF Web ACL with your ALB
44

5-
After deploying the Web App, look at the [CloudFormation Exports](https://console.aws.amazon.com/cloudformation/home?#/exports). You should have a value called `site-url`. That is the address of the Application Load Balancer sitting on top of the Web App. Take note of that URL.
5+
After deploying the Web App, look at the Main Stack Outputs tab. You should have a value called `TheSiteUrl`. That is the address of the Application Load Balancer sitting on top of the Web App. Take note of that URL.
66

77
Next, you need to associate the solution's AWS WAF Web ACL with your ALB. For that:
88
* Go to the [AWS WAF console](https://console.aws.amazon.com/wafv2/home?#/webacls)

templates/instance.template

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,5 +155,3 @@ Outputs:
155155
TheSiteUrl:
156156
Description: public url of the application
157157
Value: !Sub 'http://${TheLoadBalancer.DNSName}:${TheWebPort}/'
158-
Export:
159-
Name: site-url

templates/main.template

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
AWSTemplateFormatVersion: '2010-09-09'
22
Description: Workshop about AWS WAF and WAF Security Automations Solution (uksb-1q1gt3g5d)
33
Metadata:
4-
Version: '0.3'
4+
Version: '0.4'
55
AWS::CloudFormation::Interface:
66
ParameterGroups:
77
- Label:
@@ -50,8 +50,6 @@ Parameters:
5050
Description: port application is listening at
5151
Default: 80
5252
Type: Number
53-
Mappings: {}
54-
Conditions: {}
5553
Resources:
5654
TheNeworkStack:
5755
Type: AWS::CloudFormation::Stack
@@ -94,4 +92,5 @@ Resources:
9492
Value: !Sub '${AWS::StackName}-ASG'
9593
TemplateURL: ./instance.template
9694
TimeoutInMinutes: 30
97-
Outputs: {}
95+
Outputs:
96+
TheSiteUrl: !GetAtt TheInstanceStack.Outputs.TheSiteUrl

0 commit comments

Comments
 (0)