https://github.com/techservicesillinois/terraform-aws-cloud9-environment-ec2
Provides a Cloud9 EC2 Development Environment
https://github.com/techservicesillinois/terraform-aws-cloud9-environment-ec2
Last synced: 2 months ago
JSON representation
Provides a Cloud9 EC2 Development Environment
- Host: GitHub
- URL: https://github.com/techservicesillinois/terraform-aws-cloud9-environment-ec2
- Owner: techservicesillinois
- License: mit
- Created: 2019-02-19T17:15:15.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-03-27T03:12:40.000Z (about 1 year ago)
- Last Synced: 2025-03-27T04:23:36.787Z (about 1 year ago)
- Language: Makefile
- Size: 10.7 KB
- Stars: 8
- Watchers: 9
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloud9-environment-ec2
[](https://github.com/techservicesillinois/terraform-aws-cloud9-environment-ec2/actions)
Provides a Cloud9 EC2 development environment.
Example Usage
-----------------
The following example creates a Cloud9 EC2 environment in VPC
`vpcName` in the lexicographically smallest availability zone (AZ)
available in the given VPC. For a VPC using all AZs in us-east-2
that would be `us-east-2a`.
```
module "service_name" {
source = "git@github.com:techservicesillinois/terraform-aws-cloud9-environment-ec2"
name = "service"
description = "Environment for service development"
subnet_type = "public"
vpc = "vpcName"
owner_arn = "arn:aws:sts::917683843710:assumed-role/roleName/netid@illinois.edu"
```
Argument Reference
-----------------
The following arguments are supported:
* `automatic_stop_time_minutes` - (Optional) Minutes until the instance is shut down after inactivity (default 30).
* `name` - (Required) The name of the environment.
* `description` - (Required) The description of the environment.
* `instance_type` - (Required) The type of instance to connect to the environment.nano).
* `owner_arn` - (Required) The ARN of the environment owner.
* `subnet_type` - (Required) Subnet type (e.g., 'campus', 'private', 'public') for resource placement.
* `vpc` - (Required) Name of the virtual private cloud in which resources are to be placed.
Attributes Reference
--------------------
The following attributes are exported:
* `id` - The ID of the environment.
* `arn` - The ARN of the environment.
* `type` - The type of the environment (e.g. ssh or ec2).
Limitations
-----------
* The subnet where the EC2 instance resides can not be specified.
* The selected VPC must have at most one subnet per availability zone (AZ).