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 | |
Resources: | |
# Creating the VPC | |
VPC: | |
Type: 'AWS::EC2::VPC' | |
Properties: | |
CidrBlock: 10.10.0.0/16 | |
EnableDnsSupport: true | |
EnableDnsHostnames: true | |
Tags: |
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 | |
Resources: | |
# Creating the VPC | |
cloudVPC: | |
Type: 'AWS::EC2::VPC' | |
Properties: | |
CidrBlock: 10.0.0.0/16 | |
EnableDnsSupport: true | |
EnableDnsHostnames: true | |
Tags: |
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
# Create an RDS MySql 5.7 Instance | |
Parameters: | |
Owner: | |
Description: Enter the Name of the owner for this Stack. | |
Type: String | |
Default: Name | |
VPC: | |
Description: Select VPC form the available VPCs in your account. | |
Type: AWS::EC2::VPC::Id | |
PrivateSubnet1: |
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: NAT Gateway | |
Parameters: | |
Owner: | |
Description: Enter Team or Individual Name Responsible for the Stack. | |
Type: String | |
Default: FirstName LastName | |
VPC: | |
Description: Select VPC. | |
Type: AWS::EC2::VPC::Id |
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: NAT Gateway | |
Parameters: | |
Owner: | |
Description: Enter Team or Individual Name Responsible for the Stack. | |
Type: String | |
Default: FirstName LastName | |
VPC: | |
Description: Select VPC. | |
Type: AWS::EC2::VPC::Id |
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
# Create an RDS MySql 5.7 Instance | |
Parameters: | |
Owner: | |
Description: Enter the Name of the owner for this Stack. | |
Type: String | |
Default: Name | |
VPC: | |
Description: Select VPC form the available VPCs in your account. | |
Type: AWS::EC2::VPC::Id | |
PrivateSubnet1: |
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 | |
Resources: | |
# Creating the VPC | |
cloudVPC: | |
Type: 'AWS::EC2::VPC' | |
Properties: | |
CidrBlock: 10.0.0.0/16 | |
EnableDnsSupport: true | |
EnableDnsHostnames: true | |
Tags: |
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
# Create an RDS MySql 5.7 Instance | |
Parameters: | |
Owner: | |
Description: Enter the Name of the owner for this Stack. | |
Type: String | |
Default: Name | |
VPC: | |
Description: Select VPC form the available VPCs in your account. | |
Type: AWS::EC2::VPC::Id | |
PrivateSubnet1: |
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: NAT Gateway | |
Parameters: | |
Owner: | |
Description: Enter Team or Individual Name Responsible for the Stack. | |
Type: String | |
Default: FirstName LastName | |
VPC: | |
Description: Select VPC. | |
Type: AWS::EC2::VPC::Id |
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
import boto3 | |
ec2 = boto3.resource('ec2') | |
no_of_instances = int(input("How many instances:" )) | |
instance = ec2.create_instances( | |
ImageId="ami-0cff7528ff583bf9a", #input AMI here | |
InstanceType='t2.micro', | |
KeyName='LUIT_Project14', #input keypair name here | |
MaxCount= 3, |
OlderNewer