Created
March 25, 2024 04:27
-
-
Save overnew/e64c2c52e049b8486f4170f0067b3e43 to your computer and use it in GitHub Desktop.
AWS cloudformation IGW
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: 2010-09-09 | |
Description: Deploy VPC | |
Resources: | |
InternetGateway: | |
Type: AWS::EC2::InternetGateway | |
Properties: | |
Tags: | |
- Key: Name | |
Value: Internet Gateway | |
AttachGateway: | |
Type: AWS::EC2::VPCGatewayAttachment | |
Properties: | |
VpcId: !Ref VPC | |
InternetGatewayId: !Ref InternetGateway | |
#!Ref로 템플릿의 다른 요소의 이름을 통해 참조할 수 있다. | |
#여기서는 위의 InternetGateway의 ID를 가져오게 된다. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment