-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cloud9-SSM.yaml
42 lines (36 loc) · 1.37 KB
/
Cloud9-SSM.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
AWSTemplateFormatVersion : "2010-09-09"
Description: >
AWS Blog: Isolating network access to your AWS Cloud9 environments
Sample Cloudformation template to launch the AWS Cloud9 instance
in a private subnet with access via AWS Systems Manager.
Parameters:
ParamAWSCloud9InstanceType:
Type: String
Default: "t2.micro"
AllowedValues:
- t2.micro
- t3.small
- m5.large
Description: >
Enter the EC2 instance type for the AWS Cloud9 environment:
- t2.micro (1 GiB RAM + 1 vCPU)
Free-tier eligible, ideal for educational users and exploration.
- t3.small (2 GiB RAM + 2 vCPU)
Recommended for small-sized web projects.
- m5.large (8 GiB RAM + 2 vCPU)
Recommended for production and general-purpose development.
ParamAWSCloud9SubnetId:
Type: AWS::EC2::Subnet::Id
Default: "subnet-123a351e"
Description: "Select the subnet to deploy the AWS Cloud9 instance."
Resources:
AWSCloud9SSHInstance:
Type: AWS::Cloud9::EnvironmentEC2
Properties:
AutomaticStopTimeMinutes: 30
ConnectionType: "CONNECT_SSM"
Description: "AWS Cloud9 instance accessible using AWS Systems Manager"
InstanceType: !Ref ParamAWSCloud9InstanceType
SubnetId: !Ref ParamAWSCloud9SubnetId