-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge https://github.com/cisagov/skeleton-tf-module into lineage/skel…
…eton # Conflicts: # .github/dependabot.yml # README.md # examples/basic_usage/README.md # examples/basic_usage/versions.tf
- Loading branch information
Showing
10 changed files
with
207 additions
and
32 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
formatter: markdown table | ||
output: | ||
file: README.md | ||
mode: inject | ||
template: |- | ||
<!-- BEGIN_TF_DOCS --> | ||
{{ .Content }} | ||
<!-- END_TF_DOCS --> | ||
settings: | ||
anchor: false | ||
html: false | ||
lockfile: false |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Launch an example EC2 instance in a new VPC # | ||
|
||
## Usage ## | ||
|
||
To run this example you need to execute the `terraform init` command | ||
followed by the `terraform apply` command. | ||
|
||
Note that this example may create resources which cost money. Run | ||
`terraform destroy` when you no longer need these resources. | ||
|
||
## Requirements ## | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| terraform | ~> 1.0 | | ||
| aws | ~> 4.9 | | ||
|
||
## Providers ## | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| aws | ~> 4.9 | | ||
|
||
## Modules ## | ||
|
||
| Name | Source | Version | | ||
|------|--------|---------| | ||
| example | ../../ | n/a | | ||
|
||
## Resources ## | ||
|
||
| Name | Type | | ||
|------|------| | ||
| [aws_subnet.example](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/subnet) | resource | | ||
| [aws_vpc.example](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc) | resource | | ||
|
||
## Inputs ## | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|------|---------|:--------:| | ||
| ami\_owner\_account\_id | The ID of the AWS account that owns the AMI, or "self" if the AMI is owned by the same account as the provisioner. | `string` | `"self"` | no | | ||
| aws\_availability\_zone | The AWS availability zone to deploy into (e.g. a, b, c, etc.). | `string` | `"a"` | no | | ||
| aws\_region | The AWS region to deploy into (e.g. us-east-1). | `string` | `"us-east-1"` | no | | ||
| tags | Tags to apply to all AWS resources created. | `map(string)` | ```{ "Testing": true }``` | no | | ||
| tf\_role\_arn | The ARN of the role that can terraform non-specialized resources. | `string` | n/a | yes | | ||
|
||
## Outputs ## | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| arn | The EC2 instance ARN. | | ||
| availability\_zone | The AZ where the EC2 instance is deployed. | | ||
| id | The EC2 instance ID. | | ||
| private\_ip | The private IP of the EC2 instance. | | ||
| subnet\_id | The ID of the subnet where the EC2 instance is deployed. | |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
terraform { | ||
# We want to hold off on 1.1 or higher until we have tested it. | ||
required_version = "~> 1.0" | ||
|
||
# If you use any other providers you should also pin them to the | ||
# major version currently being used. This practice will help us | ||
# avoid unwelcome surprises. | ||
required_providers { | ||
# Version 4.9 of the Terraform AWS provider made changes to the S3 bucket | ||
# refactor that is in place for versions 4.0-4.8 of the provider. With v4.9 | ||
# only non-breaking changes and deprecation notices are introduced. Using | ||
# this version will simplify migration to the new, broken out AWS S3 bucket | ||
# configuration resources. Please see | ||
# https://github.com/hashicorp/terraform-provider-aws/pull/23985 | ||
# for more information about the changes in v4.9 and | ||
# https://www.hashicorp.com/blog/terraform-aws-provider-4-0-refactors-s3-bucket-resource | ||
# for more information about the S3 bucket refactor. | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 4.9" | ||
} | ||
} | ||
} |
Oops, something went wrong.