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

Commit

Permalink
Merge pull request #6 from aws-samples/rezabekf/patch-01
Browse files Browse the repository at this point in the history
Rezabekf/patch 01
  • Loading branch information
matteofigus authored Sep 27, 2019
2 parents 77d3bb4 + f66c39b commit 234b36d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
2 changes: 1 addition & 1 deletion docs/step-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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.
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.

Next, you need to associate the solution's AWS WAF Web ACL with your ALB. For that:
* Go to the [AWS WAF console](https://console.aws.amazon.com/wafv2/home?#/webacls)
Expand Down
2 changes: 0 additions & 2 deletions templates/instance.template
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,3 @@ Outputs:
TheSiteUrl:
Description: public url of the application
Value: !Sub 'http://${TheLoadBalancer.DNSName}:${TheWebPort}/'
Export:
Name: site-url
7 changes: 3 additions & 4 deletions templates/main.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
AWSTemplateFormatVersion: '2010-09-09'
Description: Workshop about AWS WAF and WAF Security Automations Solution (uksb-1q1gt3g5d)
Metadata:
Version: '0.3'
Version: '0.4'
AWS::CloudFormation::Interface:
ParameterGroups:
- Label:
Expand Down Expand Up @@ -50,8 +50,6 @@ Parameters:
Description: port application is listening at
Default: 80
Type: Number
Mappings: {}
Conditions: {}
Resources:
TheNeworkStack:
Type: AWS::CloudFormation::Stack
Expand Down Expand Up @@ -94,4 +92,5 @@ Resources:
Value: !Sub '${AWS::StackName}-ASG'
TemplateURL: ./instance.template
TimeoutInMinutes: 30
Outputs: {}
Outputs:
TheSiteUrl: !GetAtt TheInstanceStack.Outputs.TheSiteUrl

0 comments on commit 234b36d

Please sign in to comment.