Skip to content

Commit 847fd13

Browse files
Update README
1 parent 849840c commit 847fd13

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

examples/block-public-access/README.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,23 @@
22

33
The configuration in this directory creates a VPC, route tables and a private subnet per availability zone.
44

5-
In addition to standard settings, new options for blocking public access have been introduced. There are several ways to define these options:
5+
In addition to standard settings, new options for blocking public access have been introduced.
6+
7+
[Read more about enhancing VPC Security with Amazon VPC Block Public Access](https://aws.amazon.com/blogs/networking-and-content-delivery/vpc-block-public-access/).
8+
9+
## Usage
10+
11+
To run this example you need to execute:
12+
13+
```bash
14+
$ terraform init
15+
$ terraform plan
16+
$ terraform apply
17+
```
18+
19+
Note that this example may create resources which can cost money (AWS Elastic IP, for example). Run `terraform destroy` when you don't need these resources.
20+
21+
This example defines VPC Block Public Access Exclusion at the subnet level, but other possibilities are also available and are commented on in the code. There are several ways to define these options:
622

723
- configure VPC Block Public Access Options e.g.:
824
```hcl
@@ -46,23 +62,11 @@ aws ec2 --region eu-west-1 describe-vpc-block-public-access-options
4662
Similarly, you can check VPC Block Public Access Exclusions by obtaining the exclusion ID from the Terraform state and running:
4763

4864
```bash
49-
aws ec2 --region eu-west-1 describe-vpc-block-public-access-exclusions --exclusion-ids exclusion-id
50-
```
51-
52-
[Read more about enhancing VPC Security with Amazon VPC Block Public Access](https://aws.amazon.com/blogs/networking-and-content-delivery/vpc-block-public-access/).
53-
54-
## Usage
55-
56-
To run this example you need to execute:
65+
terraform output vpc_block_public_access_exclusions
5766

58-
```bash
59-
$ terraform init
60-
$ terraform plan
61-
$ terraform apply
67+
aws ec2 --region eu-west-1 describe-vpc-block-public-access-exclusions --exclusion-ids exclusion-id
6268
```
6369

64-
Note that this example may create resources which can cost money (AWS Elastic IP, for example). Run `terraform destroy` when you don't need these resources.
65-
6670
<!-- BEGIN_TF_DOCS -->
6771
## Requirements
6872

0 commit comments

Comments
 (0)