Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial module setup #1

Merged
merged 4 commits into from
Sep 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove VPC_CONFIG variable
benjaminlukeclark committed Sep 18, 2024
commit 4ed88d5be9da225539006dc513c33ca7eed2cb0a
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -76,7 +76,6 @@ the module itself, and the [examples](#examples) section which has examples of h
| <a name="input_application_name"></a> [application\_name](#input\_application\_name) | Name of the application utilising resource. | `string` | n/a | yes |
| <a name="input_environment"></a> [environment](#input\_environment) | Which environment this is being instantiated in. | `string` | n/a | yes |
| <a name="input_raw_state_machines"></a> [raw\_state\_machines](#input\_raw\_state\_machines) | Data structure<br>---------------<br>A list of dictionaries, where each dictionary has the following attributes:<br><br>REQUIRED<br>---------<br>- template\_file : File path which this machine corresponds to<br>- template\_input : A dictionary of key/value pairs, outlining in detail the inputs needed for a template to be instantiated<br>- suffix : Friendly name for the state function<br>- iam\_policy\_statements : A list of dictionaries where each dictionary is an IAM statement defining glue job permissions<br>-- Each dictionary in this list must define the following attributes:<br>--- sid: Friendly name for the policy, no spaces or special characters allowed<br>--- actions: A list of IAM actions the state machine is allowed to perform<br>--- resources: Which resource(s) the state machine may perform the above actions against<br>--- conditions : An OPTIONAL list of dictionaries, which each defines:<br>---- test : Test condition for limiting the action<br>---- variable : Value to test<br>---- values : A list of strings, denoting what to test for<br><br><br>OPTIONAL<br>---------<br>- cloudwatch\_retention : How many days logs should be retained for in Cloudwatch, defaults to 90 | <pre>list(<br> object({<br> template_file = string,<br> template_input = map(string),<br> suffix = string,<br> iam_policy_statements = list(<br> object({<br> sid = string,<br> actions = list(string),<br> resources = list(string),<br> conditions = optional(list(<br> object({<br> test : string,<br> variable : string,<br> values = list(string)<br> })<br> ), [])<br> })<br> ),<br> cloudwatch_retention = optional(number, 90)<br> })<br> )</pre> | n/a | yes |
| <a name="input_vpc_config"></a> [vpc\_config](#input\_vpc\_config) | AWS VPC ID | `string` | n/a | yes |

## Outputs

5 changes: 1 addition & 4 deletions examples/step_function/data.tf
Original file line number Diff line number Diff line change
@@ -2,7 +2,4 @@
data "aws_region" "current_region" {}

# Retrieve the current AWS Account info
data "aws_caller_identity" "current_account" {}

# Retrieve the default VPC
data "aws_vpc" "current" {}
data "aws_caller_identity" "current_account" {}
2 changes: 0 additions & 2 deletions examples/step_function/main.tf
Original file line number Diff line number Diff line change
@@ -18,6 +18,4 @@ module "step_function" {
application_name = var.application_name
environment = var.environment
raw_state_machines = local.raw_state_machines
vpc_config = data.aws_vpc.current.id

}
5 changes: 0 additions & 5 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -13,11 +13,6 @@ variable "application_name" {
type = string
}

variable "vpc_config" {
description = "AWS VPC ID"
type = string
}

variable "raw_state_machines" {
description = <<EOF