CloudFormation을 사용하여 VPC S3 엔드포인트 구축
5827 단어 CloudFormationvpcvpcendpointAWS
소개
이 기사에서는 AWS CloudFormation 관리 콘솔을 사용하여 VPC S3 엔드포인트를 구축하는 단계를 설명합니다. (초보자용)
본 기사에서 게재하고 있는 템플릿의 최신판은 아래에 두고 있습니다.
htps : // 기주 b. 코 m / 오쿠 보 t / 아 ws-c ぉ d d ぉ r 마치 온
구성도

전제 조건
아래의 기사의 구축 순서로, VPC를 구축하고 있는 것.
CloudFormation을 사용하여 VPC 구축
PJPrefix의 값은 동일하게 한다.
구축 절차
1 AWS CloudFormation 관리 콘솔에서 스택 생성을 클릭합니다.

2 후술하는 템플릿을 선택합니다.

3 각 파라미터를 입력합니다.

매개변수 이름
용도
비고
스택 이름
템플릿에서 만들 리소스 집합의 이름
예 prd-stack-nat-20180801
PJPrefix
구축하는 프로젝트의 환경을 식별하기 위해서 각 컴퍼넌트의 선두에 부여하는 식별자
예 qiita-prd
4 후속 작업은 기본값으로 다음으로 생성됩니다.
상황이 CREATE COMPLETE가 되면 VPC S3 엔드포인트 구축이 완료됩니다.

템플릿
vpc-s3endpoint.ymlAWSTemplateFormatVersion: "2010-09-09"
Description:
VPCS3Endpoint Create
Metadata:
"AWS::CloudFormation::Interface":
ParameterGroups:
- Label:
default: "Project Name Prefix"
Parameters:
- PJPrefix
# ------------------------------------------------------------#
# Input Parameters
# ------------------------------------------------------------#
Parameters:
PJPrefix:
Type: String
Resources:
# ------------------------------------------------------------#
# VPCS3Endpoint
# ------------------------------------------------------------#
VPCS3Endpoint:
Type: "AWS::EC2::VPCEndpoint"
Properties:
RouteTableIds:
- { "Fn::ImportValue": !Sub "${PJPrefix}-private-route-a" }
- { "Fn::ImportValue": !Sub "${PJPrefix}-private-route-c" }
ServiceName: !Sub "com.amazonaws.${AWS::Region}.s3"
VpcId: { "Fn::ImportValue": !Sub "${PJPrefix}-vpc" }
# ------------------------------------------------------------#
# Output Parameters
# ------------------------------------------------------------#
Outputs:
VPCS3Endpoint:
Value: !Ref VPCS3Endpoint
Export:
Name: !Sub "${PJPrefix}-vpcs3endpoint-id"
Reference
이 문제에 관하여(CloudFormation을 사용하여 VPC S3 엔드포인트 구축), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/okubot55/items/dc75d6cc07911ef7543e
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)

전제 조건
아래의 기사의 구축 순서로, VPC를 구축하고 있는 것.
CloudFormation을 사용하여 VPC 구축
PJPrefix의 값은 동일하게 한다.
구축 절차
1 AWS CloudFormation 관리 콘솔에서 스택 생성을 클릭합니다.

2 후술하는 템플릿을 선택합니다.

3 각 파라미터를 입력합니다.

매개변수 이름
용도
비고
스택 이름
템플릿에서 만들 리소스 집합의 이름
예 prd-stack-nat-20180801
PJPrefix
구축하는 프로젝트의 환경을 식별하기 위해서 각 컴퍼넌트의 선두에 부여하는 식별자
예 qiita-prd
4 후속 작업은 기본값으로 다음으로 생성됩니다.
상황이 CREATE COMPLETE가 되면 VPC S3 엔드포인트 구축이 완료됩니다.

템플릿
vpc-s3endpoint.ymlAWSTemplateFormatVersion: "2010-09-09"
Description:
VPCS3Endpoint Create
Metadata:
"AWS::CloudFormation::Interface":
ParameterGroups:
- Label:
default: "Project Name Prefix"
Parameters:
- PJPrefix
# ------------------------------------------------------------#
# Input Parameters
# ------------------------------------------------------------#
Parameters:
PJPrefix:
Type: String
Resources:
# ------------------------------------------------------------#
# VPCS3Endpoint
# ------------------------------------------------------------#
VPCS3Endpoint:
Type: "AWS::EC2::VPCEndpoint"
Properties:
RouteTableIds:
- { "Fn::ImportValue": !Sub "${PJPrefix}-private-route-a" }
- { "Fn::ImportValue": !Sub "${PJPrefix}-private-route-c" }
ServiceName: !Sub "com.amazonaws.${AWS::Region}.s3"
VpcId: { "Fn::ImportValue": !Sub "${PJPrefix}-vpc" }
# ------------------------------------------------------------#
# Output Parameters
# ------------------------------------------------------------#
Outputs:
VPCS3Endpoint:
Value: !Ref VPCS3Endpoint
Export:
Name: !Sub "${PJPrefix}-vpcs3endpoint-id"
Reference
이 문제에 관하여(CloudFormation을 사용하여 VPC S3 엔드포인트 구축), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/okubot55/items/dc75d6cc07911ef7543e
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
1 AWS CloudFormation 관리 콘솔에서 스택 생성을 클릭합니다.

2 후술하는 템플릿을 선택합니다.

3 각 파라미터를 입력합니다.

매개변수 이름
용도
비고
스택 이름
템플릿에서 만들 리소스 집합의 이름
예 prd-stack-nat-20180801
PJPrefix
구축하는 프로젝트의 환경을 식별하기 위해서 각 컴퍼넌트의 선두에 부여하는 식별자
예 qiita-prd
4 후속 작업은 기본값으로 다음으로 생성됩니다.
상황이 CREATE COMPLETE가 되면 VPC S3 엔드포인트 구축이 완료됩니다.

템플릿
vpc-s3endpoint.ymlAWSTemplateFormatVersion: "2010-09-09"
Description:
VPCS3Endpoint Create
Metadata:
"AWS::CloudFormation::Interface":
ParameterGroups:
- Label:
default: "Project Name Prefix"
Parameters:
- PJPrefix
# ------------------------------------------------------------#
# Input Parameters
# ------------------------------------------------------------#
Parameters:
PJPrefix:
Type: String
Resources:
# ------------------------------------------------------------#
# VPCS3Endpoint
# ------------------------------------------------------------#
VPCS3Endpoint:
Type: "AWS::EC2::VPCEndpoint"
Properties:
RouteTableIds:
- { "Fn::ImportValue": !Sub "${PJPrefix}-private-route-a" }
- { "Fn::ImportValue": !Sub "${PJPrefix}-private-route-c" }
ServiceName: !Sub "com.amazonaws.${AWS::Region}.s3"
VpcId: { "Fn::ImportValue": !Sub "${PJPrefix}-vpc" }
# ------------------------------------------------------------#
# Output Parameters
# ------------------------------------------------------------#
Outputs:
VPCS3Endpoint:
Value: !Ref VPCS3Endpoint
Export:
Name: !Sub "${PJPrefix}-vpcs3endpoint-id"
Reference
이 문제에 관하여(CloudFormation을 사용하여 VPC S3 엔드포인트 구축), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/okubot55/items/dc75d6cc07911ef7543e
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
AWSTemplateFormatVersion: "2010-09-09"
Description:
VPCS3Endpoint Create
Metadata:
"AWS::CloudFormation::Interface":
ParameterGroups:
- Label:
default: "Project Name Prefix"
Parameters:
- PJPrefix
# ------------------------------------------------------------#
# Input Parameters
# ------------------------------------------------------------#
Parameters:
PJPrefix:
Type: String
Resources:
# ------------------------------------------------------------#
# VPCS3Endpoint
# ------------------------------------------------------------#
VPCS3Endpoint:
Type: "AWS::EC2::VPCEndpoint"
Properties:
RouteTableIds:
- { "Fn::ImportValue": !Sub "${PJPrefix}-private-route-a" }
- { "Fn::ImportValue": !Sub "${PJPrefix}-private-route-c" }
ServiceName: !Sub "com.amazonaws.${AWS::Region}.s3"
VpcId: { "Fn::ImportValue": !Sub "${PJPrefix}-vpc" }
# ------------------------------------------------------------#
# Output Parameters
# ------------------------------------------------------------#
Outputs:
VPCS3Endpoint:
Value: !Ref VPCS3Endpoint
Export:
Name: !Sub "${PJPrefix}-vpcs3endpoint-id"
Reference
이 문제에 관하여(CloudFormation을 사용하여 VPC S3 엔드포인트 구축), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/okubot55/items/dc75d6cc07911ef7543e텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)