These are the input parameters for this template. All of these parameters must be supplied for this template to be deployed.
Default Operating System for EC2 instance.
Default EC2 Instance Type for Application instances.
The following tags are applied to all resources created by this template.
Metadata is mostly for organizing and presenting Parameters in a better way when using CloudFormation in the AWS Web UI.
This is the EC2 instance deployed by the template.
Lambda function to introspect VPCs, subnets, and select most available
Launch Config to deploy the EC2 instance with some tags.
Create temporary working folder if it doesn't already exist
Import CFT parameters into a local parameters file if they don't already exist
EFSId = $ { EFSId }
Import the instance customization script from S3 if it doesn't already exist
Run the instance customization script
Clean up on completion
Fn::ImportValue: !Sub "${CMFoundationStack}-fs-id"
Define the ASG for the Cluster Instances
Security group for the EC2 instance, that allows you to ssh into the instance TODO: Needs to be updated to permit passing this as a parameter.
Permit the instance access to the EFS export
Type: AWS::EC2::SecurityGroupIngress Properties: GroupId: Fn::ImportValue: !Sub "${ASISLinuxFoundationStack}-efs-sg" IpProtocol: tcp FromPort: 2049 ToPort: 2049 SourceSecurityGroupId: !Ref InstanceSecurityGroup
Permit the instance ssh access to the other instances
Permit world access to the Web ports on the instances
This is the IAM policy that will be attached to the instance's IAM role. Any AWS specific permissions that the node might need should be defined here. TODO: Determine what policy is needed
This is the IAM role that will be applied to the EC2 Instance. Any AWS specific permissions that the node might need should be defined here.
This is just a little construct to connect a set of roles together into a profile. The profile is referenced by the EC2 Instance.
This creates placeholder Route53 records that are populated at boot time by the instance itself
TODO: Determine what other outputs back to the caller will be needed.
ASIS Linux Server Template
This CloudFormation template will deploy an Amazon Linux2 server with ssh permitted from limited networks, and a set of Web specific ports open to the world