Created
September 14, 2018 19:17
-
-
Save infamousjoeg/0079be32d9ad61088122ea9683755963 to your computer and use it in GitHub Desktop.
AWS CloudFormation Template for deploying CyberArk Conjur's cdemo AMI (YAML-format)
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' | |
Parameters: | |
Subnet: | |
Description: Subnet to launch cdemo instance in. | |
Type: AWS::EC2::Subnet::Id | |
VpcId: | |
Description: The VPC ID this stack will be launched into | |
Type: AWS::EC2::VPC::Id | |
KeyName: | |
Description: Key pair to use for SSH | |
Type: AWS::EC2::KeyPair::KeyName | |
InstanceType: | |
Description: 'Instance type for all instances (Recommended: t2.large)' | |
Type: String | |
Default: t2.large | |
Resources: | |
cdemoInstanceConfiguration: | |
Type: AWS::EC2::Instance | |
Properties: | |
ImageId: ami-0f29ce90932add957 | |
KeyName: !Ref KeyName | |
InstanceType: !Ref InstanceType | |
SecurityGroupIds: | |
- !Ref cdemoSecurityGroup | |
cdemoSecurityGroup: | |
Type: AWS::EC2::SecurityGroup | |
Properties: | |
SecurityGroupIngress: | |
- IpProtocol: tcp | |
FromPort: '8080' | |
ToPort: '8080' | |
CidrIp: 0.0.0.0/0 | |
- IpProtocol: tcp | |
FromPort: '10080' | |
ToPort: '10080' | |
CidrIp: 0.0.0.0/0 | |
- IpProtocol: tcp | |
FromPort: '6060' | |
ToPort: '6060' | |
CidrIp: 0.0.0.0/0 | |
- IpProtocol: tcp | |
FromPort: '443' | |
ToPort: '443' | |
CidrIp: 0.0.0.0/0 | |
- IpProtocol: tcp | |
FromPort: '4040' | |
ToPort: '4040' | |
CidrIp: 0.0.0.0/0 | |
- IpProtocol: tcp | |
FromPort: '8000' | |
ToPort: '8000' | |
CidrIp: 0.0.0.0/0 | |
- IpProtocol: tcp | |
FromPort: '22' | |
ToPort: '22' | |
CidrIp: '0.0.0.0/0' | |
GroupDescription: cdemo Security Group w/ SSH | |
VpcId: !Ref VpcId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment