Skip to content

Instantly share code, notes, and snippets.

@AHaydar
AHaydar / custom-vpc.yml
Last active Mar 13, 2021
CloudFormation template to create a secure VPC, Subnets, Bastion Host, and a VM within the private subnet
View custom-vpc.yml
AWSTemplateFormatVersion: "2010-09-09"
Description: Custom vpc, subnets, route table.
Parameters:
KeyName:
Description: EC2 KeyPair
Type: AWS::EC2::KeyPair::KeyName
Resources:
VPC:
View template5.yml
Resources:
Ec2Instance:
Type: AWS::EC2::Instance
Properties:
InstanceType: t2.micro
ImageId: ami-0947d2ba12ee1ff75 # Amazon Linux AMI in us-east-1
KeyName: ec2-instances
Tags:
- Key: Name
Value: My EC2 Instance
View template4.yml
Resources:
Ec2Instance:
Type: AWS::EC2::Instance
Properties:
InstanceType: t2.micro
ImageId: ami-0947d2ba12ee1ff75 # Amazon Linux AMI in us-east-1
KeyName: ec2-instances
Tags:
- Key: Name
Value: My EC2 Instance
View template3.yml
Resources:
Ec2Instance:
Type: AWS::EC2::Instance
Properties:
InstanceType: t2.micro
ImageId: ami-0947d2ba12ee1ff75 # Amazon Linux AMI in us-east-1
KeyName: ec2-instances
Tags:
- Key: Name
Value: My EC2 Instance
@AHaydar
AHaydar / template2.yml
Last active Nov 8, 2020
CloudFormation
View template2.yml
Resources:
Ec2Instance:
Type: AWS::EC2::Instance
Properties:
InstanceType: t2.micro
ImageId: ami-0947d2ba12ee1ff75 # Amazon Linux AMI in us-east-1
Tags:
- Key: Name
Value: My EC2 Instance
- Key: Owner
View template1.yml
Resources:
Ec2Instance:
Type: AWS::EC2::Instance
Properties:
InstanceType: t2.micro
ImageId: ami-0947d2ba12ee1ff75 # Amazon Linux AMI in us-east-1