diff --git a/README.md b/README.md index 3bacd0c..e560d0f 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,6 @@ the module itself, and the [examples](#examples) section which has examples of h | [application\_name](#input\_application\_name) | Name of the application utilising resource. | `string` | n/a | yes | | [environment](#input\_environment) | Which environment this is being instantiated in. | `string` | n/a | yes | | [raw\_state\_machines](#input\_raw\_state\_machines) | Data structure
---------------
A list of dictionaries, where each dictionary has the following attributes:

REQUIRED
---------
- template\_file : File path which this machine corresponds to
- template\_input : A dictionary of key/value pairs, outlining in detail the inputs needed for a template to be instantiated
- suffix : Friendly name for the state function
- iam\_policy\_statements : A list of dictionaries where each dictionary is an IAM statement defining glue job permissions
-- Each dictionary in this list must define the following attributes:
--- sid: Friendly name for the policy, no spaces or special characters allowed
--- actions: A list of IAM actions the state machine is allowed to perform
--- resources: Which resource(s) the state machine may perform the above actions against
--- conditions : An OPTIONAL list of dictionaries, which each defines:
---- test : Test condition for limiting the action
---- variable : Value to test
---- values : A list of strings, denoting what to test for


OPTIONAL
---------
- cloudwatch\_retention : How many days logs should be retained for in Cloudwatch, defaults to 90 |
list(
object({
template_file = string,
template_input = map(string),
suffix = string,
iam_policy_statements = list(
object({
sid = string,
actions = list(string),
resources = list(string),
conditions = optional(list(
object({
test : string,
variable : string,
values = list(string)
})
), [])
})
),
cloudwatch_retention = optional(number, 90)
})
)
| n/a | yes | -| [vpc\_config](#input\_vpc\_config) | AWS VPC ID | `string` | n/a | yes | ## Outputs diff --git a/examples/step_function/data.tf b/examples/step_function/data.tf index d352dcc..7ae4bae 100644 --- a/examples/step_function/data.tf +++ b/examples/step_function/data.tf @@ -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" {} \ No newline at end of file +data "aws_caller_identity" "current_account" {} \ No newline at end of file diff --git a/examples/step_function/main.tf b/examples/step_function/main.tf index ab6dc0d..8a7561d 100644 --- a/examples/step_function/main.tf +++ b/examples/step_function/main.tf @@ -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 - } \ No newline at end of file diff --git a/variables.tf b/variables.tf index 02761f9..068ffe6 100644 --- a/variables.tf +++ b/variables.tf @@ -13,11 +13,6 @@ variable "application_name" { type = string } -variable "vpc_config" { - description = "AWS VPC ID" - type = string -} - variable "raw_state_machines" { description = <