Terraform AWS sample module to provision resources to demonstrate alternative workflows to the traditional Bastion Host pattern with SSH/RDP. For more information see https://hedrange.com/2024/07/03/bye-bye-bastion/.
Requires the aws provider.
See examples/main.tf.
Name | Version |
---|---|
aws | ~> 5.56 |
Name | Version |
---|---|
aws | ~> 5.56 |
Name | Type |
---|---|
aws_cloud9_environment_ec2.cloud9_ssm_instance | resource |
aws_security_group.private_access | resource |
aws_ami.amazon_linux_23 | data source |
aws_availability_zones.available | data source |
aws_caller_identity.current | data source |
aws_canonical_user_id.current | data source |
aws_cloudfront_log_delivery_canonical_user_id.cloudfront | data source |
aws_iam_policy_document.dynamodb_endpoint_policy | data source |
aws_iam_policy_document.generic_endpoint_policy | data source |
aws_region.current | data source |
aws_security_group.cloud9_security_group | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
cloud9_instance_owner_arn | The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment's creator, but if provisioned by CI/CD, it will not be visible in the AWS Console. | string |
n/a | yes |
name_prefix | Name prefix for provisioned resources. | string |
"bastion-alternative-demo" |
no |
vpc_cidr | VPC CIDR range. | string |
"10.1.0.0/16" |
no |
Name | Description |
---|---|
cloud9_security_group_id | Cloud9 Security Group ID |
Note: The inputs and outputs sections are automatically generated by terraform-docs in a git pre-commit hook. This requires setup of pre-commit-terraform . Follow the install instructions to use, including the dependencies setup. pre-commit ensures correct formatting, linting and generation of documentation. It also check's for trailing whitespace, merge conflics and mixed line endings. See .pre-commit-config.yaml for more information. A full guide to the pre-commit framework can be found here.
See contributors.
MIT licensed. See LICENSE. Feel free to fork and make use of what you want.