From a47fcb7e64de34620b35272d731f1bc6c5e50025 Mon Sep 17 00:00:00 2001 From: Thomas Sudeep Benardo <36351384+be-thomas@users.noreply.github.com> Date: Mon, 26 Oct 2026 03:59:04 +0530 Subject: [PATCH 1/2] Add conformance input corpus and collector Add cmd/openiac-conformance and internal/conformance/collect to crawl the Terraform Registry and configured GitHub seeds, resolve each module to an immutable commit, filter for Terraform sources, licenses and safety, and write self-contained fixtures. Commit 918 fixtures (6,934 files, 25,173,266 bytes) with per-fixture provenance, hashes, license texts, a deterministic corpus lock and generated third-party attribution. Document the inputs phase in docs/CONFORMANCE.md and conformance/README.md. --- Makefile | 6 +- README.md | 33 +- THIRD_PARTY.md | 928 ++ cmd/openiac-conformance/main.go | 121 + conformance/README.md | 142 + conformance/collection/README.md | 44 + conformance/collection/sources.json | 63 + conformance/corpus.lock.json | 22 + .../patterns/agones-game-controller/LICENSE | 201 + .../patterns/agones-game-controller/NOTICE | 7 + .../agones-game-controller/fixture.json | 33 + .../agones-game-controller/input/main.tf | 203 + .../agones-game-controller/input/outputs.tf | 4 + .../agones-game-controller/input/variables.tf | 0 .../agones-game-controller/input/versions.tf | 21 + .../fc40e646/patterns/aws-neuron-efa/LICENSE | 201 + .../fc40e646/patterns/aws-neuron-efa/NOTICE | 7 + .../patterns/aws-neuron-efa/fixture.json | 35 + .../patterns/aws-neuron-efa/input/eks.tf | 108 + .../patterns/aws-neuron-efa/input/helm.tf | 50 + .../patterns/aws-neuron-efa/input/main.tf | 109 + .../aws-vpc-cni-network-policy/LICENSE | 201 + .../aws-vpc-cni-network-policy/NOTICE | 7 + .../aws-vpc-cni-network-policy/fixture.json | 36 + .../aws-vpc-cni-network-policy/input/main.tf | 299 + .../input/outputs.tf | 4 + .../input/variables.tf | 0 .../input/versions.tf | 18 + .../blue-green-upgrade/environment/LICENSE | 201 + .../blue-green-upgrade/environment/NOTICE | 7 + .../environment/fixture.json | 35 + .../environment/input/main.tf | 111 + .../environment/input/outputs.tf | 14 + .../environment/input/variables.tf | 29 + .../environment/input/versions.tf | 15 + .../modules/eks_cluster/LICENSE | 201 + .../modules/eks_cluster/NOTICE | 7 + .../modules/eks_cluster/fixture.json | 41 + .../modules/eks_cluster/input/main.tf | 699 ++ .../modules/eks_cluster/input/outputs.tf | 51 + .../modules/eks_cluster/input/variables.tf | 121 + .../modules/eks_cluster/input/versions.tf | 15 + .../fc40e646/patterns/bottlerocket/LICENSE | 201 + .../fc40e646/patterns/bottlerocket/NOTICE | 7 + .../patterns/bottlerocket/fixture.json | 37 + .../patterns/bottlerocket/input/addons.tf | 107 + .../patterns/bottlerocket/input/eks.tf | 113 + .../patterns/bottlerocket/input/main.tf | 56 + .../patterns/bottlerocket/input/outputs.tf | 7 + .../patterns/bottlerocket/input/versions.tf | 18 + .../patterns/bottlerocket/input/vpc.tf | 34 + .../patterns/ecr-pull-through-cache/LICENSE | 201 + .../patterns/ecr-pull-through-cache/NOTICE | 7 + .../ecr-pull-through-cache/fixture.json | 39 + .../ecr-pull-through-cache/input/addons.tf | 134 + .../ecr-pull-through-cache/input/ecr.tf | 49 + .../ecr-pull-through-cache/input/eks.tf | 105 + .../ecr-pull-through-cache/input/main.tf | 73 + .../ecr-pull-through-cache/input/variables.tf | 8 + .../ecr-pull-through-cache/input/vpc.tf | 24 + .../automode-custom-nodepools/LICENSE | 201 + .../automode-custom-nodepools/NOTICE | 7 + .../automode-custom-nodepools/fixture.json | 36 + .../input/eks-automode-config.tf | 51 + .../automode-custom-nodepools/input/main.tf | 196 + .../patterns/fargate-serverless/LICENSE | 201 + .../patterns/fargate-serverless/NOTICE | 7 + .../patterns/fargate-serverless/fixture.json | 36 + .../patterns/fargate-serverless/input/main.tf | 269 + .../fargate-serverless/input/outputs.tf | 4 + .../fargate-serverless/input/variables.tf | 0 .../fargate-serverless/input/versions.tf | 25 + .../patterns/fully-private-cluster/LICENSE | 201 + .../patterns/fully-private-cluster/NOTICE | 7 + .../fully-private-cluster/fixture.json | 33 + .../fully-private-cluster/input/main.tf | 123 + .../fully-private-cluster/input/outputs.tf | 4 + .../fully-private-cluster/input/variables.tf | 0 .../fully-private-cluster/input/versions.tf | 17 + .../gitops/getting-started-argocd/LICENSE | 201 + .../gitops/getting-started-argocd/NOTICE | 7 + .../getting-started-argocd/fixture.json | 36 + .../getting-started-argocd/input/main.tf | 258 + .../getting-started-argocd/input/outputs.tf | 33 + .../getting-started-argocd/input/variables.tf | 76 + .../getting-started-argocd/input/versions.tf | 25 + .../hub/LICENSE | 201 + .../multi-cluster-hub-spoke-argocd/hub/NOTICE | 7 + .../hub/fixture.json | 37 + .../hub/input/main.tf | 316 + .../hub/input/outputs.tf | 52 + .../hub/input/variables.tf | 62 + .../hub/input/versions.tf | 25 + .../spokes/LICENSE | 201 + .../spokes/NOTICE | 7 + .../spokes/fixture.json | 37 + .../spokes/input/main.tf | 345 + .../spokes/input/outputs.tf | 7 + .../spokes/input/variables.tf | 75 + .../spokes/input/versions.tf | 21 + .../patterns/ipv6-eks-cluster/LICENSE | 201 + .../fc40e646/patterns/ipv6-eks-cluster/NOTICE | 7 + .../patterns/ipv6-eks-cluster/fixture.json | 32 + .../patterns/ipv6-eks-cluster/input/main.tf | 101 + .../ipv6-eks-cluster/input/outputs.tf | 4 + .../ipv6-eks-cluster/input/variables.tf | 0 .../ipv6-eks-cluster/input/versions.tf | 17 + .../fc40e646/patterns/istio/LICENSE | 201 + .../fc40e646/patterns/istio/NOTICE | 7 + .../fc40e646/patterns/istio/fixture.json | 35 + .../fc40e646/patterns/istio/input/main.tf | 218 + .../fc40e646/patterns/istio/input/outputs.tf | 4 + .../patterns/istio/input/variables.tf | 0 .../fc40e646/patterns/istio/input/versions.tf | 25 + .../fc40e646/patterns/karpenter-mng/LICENSE | 201 + .../fc40e646/patterns/karpenter-mng/NOTICE | 7 + .../patterns/karpenter-mng/fixture.json | 35 + .../patterns/karpenter-mng/input/eks.tf | 78 + .../patterns/karpenter-mng/input/karpenter.tf | 64 + .../patterns/karpenter-mng/input/main.tf | 75 + .../patterns/karpenter-mng/input/vpc.tf | 26 + .../fc40e646/patterns/karpenter/LICENSE | 201 + .../fc40e646/patterns/karpenter/NOTICE | 7 + .../fc40e646/patterns/karpenter/fixture.json | 35 + .../fc40e646/patterns/karpenter/input/eks.tf | 52 + .../patterns/karpenter/input/karpenter.tf | 64 + .../fc40e646/patterns/karpenter/input/main.tf | 75 + .../fc40e646/patterns/karpenter/input/vpc.tf | 26 + .../fc40e646/patterns/kubecost/LICENSE | 201 + .../fc40e646/patterns/kubecost/NOTICE | 7 + .../fc40e646/patterns/kubecost/fixture.json | 36 + .../fc40e646/patterns/kubecost/input/main.tf | 409 + .../patterns/kubecost/input/outputs.tf | 19 + .../patterns/kubecost/input/variables.tf | 4 + .../patterns/kubecost/input/versions.tf | 21 + .../patterns/ml-capacity-block/LICENSE | 201 + .../patterns/ml-capacity-block/NOTICE | 7 + .../patterns/ml-capacity-block/fixture.json | 36 + .../patterns/ml-capacity-block/input/eks.tf | 135 + .../patterns/ml-capacity-block/input/helm.tf | 33 + .../patterns/ml-capacity-block/input/main.tf | 102 + .../patterns/ml-container-cache/LICENSE | 201 + .../patterns/ml-container-cache/NOTICE | 7 + .../patterns/ml-container-cache/fixture.json | 35 + .../ml-container-cache/input/cache_builder.tf | 20 + .../patterns/ml-container-cache/input/eks.tf | 131 + .../patterns/ml-container-cache/input/helm.tf | 13 + .../patterns/ml-container-cache/input/main.tf | 102 + .../fc40e646/patterns/multi-node-vllm/LICENSE | 201 + .../fc40e646/patterns/multi-node-vllm/NOTICE | 7 + .../patterns/multi-node-vllm/fixture.json | 38 + .../patterns/multi-node-vllm/input/ecr.tf | 45 + .../patterns/multi-node-vllm/input/eks.tf | 109 + .../patterns/multi-node-vllm/input/helm.tf | 56 + .../patterns/multi-node-vllm/input/main.tf | 129 + .../patterns/multi-tenancy-with-teams/LICENSE | 201 + .../patterns/multi-tenancy-with-teams/NOTICE | 7 + .../multi-tenancy-with-teams/fixture.json | 35 + .../multi-tenancy-with-teams/input/main.tf | 194 + .../multi-tenancy-with-teams/input/outputs.tf | 9 + .../input/variables.tf | 0 .../input/versions.tf | 21 + .../fc40e646/patterns/nvidia-gpu-efa/LICENSE | 201 + .../fc40e646/patterns/nvidia-gpu-efa/NOTICE | 7 + .../patterns/nvidia-gpu-efa/fixture.json | 35 + .../patterns/nvidia-gpu-efa/input/eks.tf | 108 + .../patterns/nvidia-gpu-efa/input/helm.tf | 33 + .../patterns/nvidia-gpu-efa/input/main.tf | 102 + .../patterns/private-public-ingress/LICENSE | 201 + .../patterns/private-public-ingress/NOTICE | 7 + .../private-public-ingress/fixture.json | 35 + .../private-public-ingress/input/main.tf | 281 + .../private-public-ingress/input/outputs.tf | 4 + .../private-public-ingress/input/variables.tf | 0 .../private-public-ingress/input/versions.tf | 14 + .../patterns/privatelink-access/LICENSE | 201 + .../patterns/privatelink-access/NOTICE | 7 + .../patterns/privatelink-access/fixture.json | 37 + .../privatelink-access/input/client.tf | 115 + .../patterns/privatelink-access/input/eks.tf | 151 + .../patterns/privatelink-access/input/main.tf | 25 + .../privatelink-access/input/outputs.tf | 25 + .../privatelink-access/input/privatelink.tf | 292 + .../privatelink-access/input/variables.tf | 0 .../privatelink-access/input/versions.tf | 25 + .../patterns/sso-iam-identity-center/LICENSE | 201 + .../patterns/sso-iam-identity-center/NOTICE | 7 + .../sso-iam-identity-center/fixture.json | 39 + .../sso-iam-identity-center/input/main.tf | 137 + .../sso-iam-identity-center/input/outputs.tf | 62 + .../sso-iam-identity-center/input/sso.tf | 167 + .../sso-iam-identity-center/input/teams.tf | 148 + .../input/variables.tf | 33 + .../sso-iam-identity-center/input/versions.tf | 14 + .../fc40e646/patterns/sso-okta/LICENSE | 201 + .../fc40e646/patterns/sso-okta/NOTICE | 7 + .../fc40e646/patterns/sso-okta/fixture.json | 39 + .../fc40e646/patterns/sso-okta/input/main.tf | 99 + .../fc40e646/patterns/sso-okta/input/okta.tf | 163 + .../patterns/sso-okta/input/outputs.tf | 23 + .../patterns/sso-okta/input/variables.tf | 33 + .../patterns/sso-okta/input/versions.tf | 18 + .../fc40e646/patterns/stateful/LICENSE | 201 + .../fc40e646/patterns/stateful/NOTICE | 7 + .../fc40e646/patterns/stateful/fixture.json | 38 + .../fc40e646/patterns/stateful/input/main.tf | 441 + .../patterns/stateful/input/outputs.tf | 9 + .../patterns/stateful/input/variables.tf | 0 .../patterns/stateful/input/versions.tf | 25 + .../fc40e646/patterns/targeted-odcr/LICENSE | 201 + .../fc40e646/patterns/targeted-odcr/NOTICE | 7 + .../patterns/targeted-odcr/fixture.json | 37 + .../patterns/targeted-odcr/input/eks.tf | 162 + .../patterns/targeted-odcr/input/helm.tf | 33 + .../patterns/targeted-odcr/input/main.tf | 102 + .../patterns/tls-with-aws-pca-issuer/LICENSE | 201 + .../patterns/tls-with-aws-pca-issuer/NOTICE | 7 + .../tls-with-aws-pca-issuer/fixture.json | 37 + .../tls-with-aws-pca-issuer/input/main.tf | 264 + .../tls-with-aws-pca-issuer/input/outputs.tf | 4 + .../input/variables.tf | 11 + .../tls-with-aws-pca-issuer/input/versions.tf | 25 + .../client-server-communication/LICENSE | 201 + .../client-server-communication/NOTICE | 7 + .../client-server-communication/fixture.json | 37 + .../input/client.tf | 101 + .../client-server-communication/input/eks.tf | 200 + .../input/lattice.tf | 42 + .../client-server-communication/input/main.tf | 39 + .../input/outputs.tf | 4 + .../input/variables.tf | 0 .../input/versions.tf | 18 + .../cluster/LICENSE | 201 + .../cluster/NOTICE | 7 + .../cluster/fixture.json | 37 + .../cluster/input/eks.tf | 260 + .../cluster/input/main.tf | 47 + .../cluster/input/outputs.tf | 4 + .../cluster/input/remote_state.tf | 9 + .../cluster/input/variables.tf | 0 .../cluster/input/versions.tf | 14 + .../cluster/input/vpc.tf | 37 + .../environment/LICENSE | 201 + .../environment/NOTICE | 7 + .../environment/fixture.json | 32 + .../environment/input/main.tf | 75 + .../environment/input/outputs.tf | 35 + .../environment/input/pca.tf | 67 + .../environment/input/variables.tf | 11 + .../environment/input/versions.tf | 10 + .../patterns/wireguard-with-cilium/LICENSE | 201 + .../patterns/wireguard-with-cilium/NOTICE | 7 + .../wireguard-with-cilium/fixture.json | 34 + .../wireguard-with-cilium/input/eks.tf | 102 + .../wireguard-with-cilium/input/main.tf | 93 + .../1f74a966/modules/account-map/LICENSE | 201 + .../1f74a966/modules/account-map/fixture.json | 41 + .../modules/account-map/input/context.tf | 279 + .../account-map/input/dynamic-roles.tf | 116 + .../modules/account-map/input/main.tf | 92 + .../modules/account-map/input/outputs.tf | 158 + .../modules/account-map/input/providers.tf | 9 + .../modules/account-map/input/remote-state.tf | 9 + .../modules/account-map/input/variables.tf | 104 + .../modules/account-map/input/versions.tf | 18 + .../account-map/modules/iam-roles/LICENSE | 201 + .../modules/iam-roles/fixture.json | 36 + .../modules/iam-roles/input/context.tf | 279 + .../modules/iam-roles/input/main.tf | 84 + .../modules/iam-roles/input/outputs.tf | 87 + .../modules/iam-roles/input/providers.tf | 11 + .../modules/iam-roles/input/variables.tf | 34 + .../modules/iam-roles/input/versions.tf | 10 + .../modules/roles-to-principals/LICENSE | 201 + .../modules/roles-to-principals/fixture.json | 30 + .../roles-to-principals/input/context.tf | 279 + .../modules/roles-to-principals/input/main.tf | 58 + .../roles-to-principals/input/outputs.tf | 29 + .../roles-to-principals/input/variables.tf | 62 + .../1f74a966/modules/account/LICENSE | 201 + .../1f74a966/modules/account/fixture.json | 39 + .../1f74a966/modules/account/input/context.tf | 279 + .../1f74a966/modules/account/input/main.tf | 294 + .../1f74a966/modules/account/input/outputs.tf | 115 + .../modules/account/input/providers.tf | 3 + .../modules/account/input/variables.tf | 41 + .../modules/account/input/versions.tf | 10 + .../modules/mysql-user/LICENSE | 201 + .../modules/mysql-user/fixture.json | 39 + .../modules/mysql-user/input/context.tf | 279 + .../modules/mysql-user/input/main.tf | 84 + .../modules/mysql-user/input/outputs.tf | 14 + .../modules/mysql-user/input/variables.tf | 48 + .../modules/mysql-user/input/versions.tf | 18 + .../modules/postgresql-user/LICENSE | 201 + .../modules/postgresql-user/fixture.json | 38 + .../modules/postgresql-user/input/context.tf | 279 + .../modules/postgresql-user/input/main.tf | 69 + .../modules/postgresql-user/input/outputs.tf | 20 + .../postgresql-user/input/variables.tf | 47 + .../modules/postgresql-user/input/versions.tf | 18 + .../modules/org-conformance-pack/LICENSE | 201 + .../modules/org-conformance-pack/fixture.json | 36 + .../org-conformance-pack/input/context.tf | 279 + .../org-conformance-pack/input/main.tf | 17 + .../org-conformance-pack/input/outputs.tf | 4 + .../org-conformance-pack/input/variables.tf | 10 + .../org-conformance-pack/input/versions.tf | 15 + .../aws-saml/modules/okta-user/LICENSE | 201 + .../aws-saml/modules/okta-user/fixture.json | 35 + .../modules/okta-user/input/context.tf | 279 + .../aws-saml/modules/okta-user/input/main.tf | 60 + .../modules/okta-user/input/outputs.tf | 14 + .../modules/okta-user/input/variables.tf | 5 + .../cluster/modules/node_group_by_az/LICENSE | 201 + .../modules/node_group_by_az/fixture.json | 33 + .../modules/node_group_by_az/input/context.tf | 279 + .../modules/node_group_by_az/input/main.tf | 81 + .../modules/node_group_by_az/input/outputs.tf | 4 + .../node_group_by_az/input/variables.tf | 64 + .../modules/redis_cluster/LICENSE | 201 + .../modules/redis_cluster/fixture.json | 35 + .../modules/redis_cluster/input/context.tf | 279 + .../modules/redis_cluster/input/main.tf | 91 + .../modules/redis_cluster/input/outputs.tf | 29 + .../modules/redis_cluster/input/variables.tf | 93 + .../modules/redis_cluster/input/versions.tf | 14 + .../modules/graceful_scale_in/LICENSE | 201 + .../modules/graceful_scale_in/fixture.json | 35 + .../graceful_scale_in/input/context.tf | 279 + .../graceful_scale_in/input/eventbridge.tf | 118 + .../modules/graceful_scale_in/input/main.tf | 77 + .../graceful_scale_in/input/outputs.tf | 19 + .../modules/graceful_scale_in/input/ssm.tf | 88 + .../graceful_scale_in/input/variables.tf | 9 + .../opsgenie-team/modules/escalation/LICENSE | 201 + .../modules/escalation/fixture.json | 39 + .../modules/escalation/input/context.tf | 279 + .../modules/escalation/input/main.tf | 69 + .../escalation/input/opsgenie.context.tf | 11 + .../modules/escalation/input/outputs.tf | 9 + .../modules/escalation/input/variables.tf | 5 + .../modules/escalation/input/versions.tf | 10 + .../opsgenie-team/modules/integration/LICENSE | 201 + .../modules/integration/fixture.json | 37 + .../modules/integration/input/context.tf | 279 + .../modules/integration/input/main.tf | 245 + .../modules/integration/input/outputs.tf | 9 + .../modules/integration/input/variables.tf | 27 + .../modules/integration/input/versions.tf | 10 + .../opsgenie-team/modules/routing/LICENSE | 201 + .../modules/routing/fixture.json | 38 + .../modules/routing/input/context.tf | 279 + .../modules/routing/input/main.tf | 139 + .../modules/routing/input/opsgenie.context.tf | 11 + .../modules/routing/input/outputs.tf | 9 + .../modules/routing/input/variables.tf | 72 + .../modules/routing/input/versions.tf | 10 + .../modules/spacelift/admin-stack/LICENSE | 201 + .../spacelift/admin-stack/fixture.json | 42 + .../admin-stack/input/child-stacks.tf | 167 + .../spacelift/admin-stack/input/context.tf | 279 + .../spacelift/admin-stack/input/main.tf | 11 + .../spacelift/admin-stack/input/outputs.tf | 16 + .../spacelift/admin-stack/input/providers.tf | 1 + .../admin-stack/input/remote-state.tf | 11 + .../admin-stack/input/root-admin-stack.tf | 110 + .../spacelift/admin-stack/input/spaces.tf | 53 + .../spacelift/admin-stack/input/variables.tf | 351 + .../spacelift/admin-stack/input/versions.tf | 22 + .../spacelift/admin-stack/input/workers.tf | 49 + .../1f74a966/modules/spacelift/spaces/LICENSE | 201 + .../modules/spacelift/spaces/fixture.json | 35 + .../modules/spacelift/spaces/input/context.tf | 279 + .../modules/spacelift/spaces/input/main.tf | 69 + .../modules/spacelift/spaces/input/outputs.tf | 9 + .../spacelift/spaces/input/providers.tf | 1 + .../spacelift/spaces/input/variables.tf | 17 + .../spacelift/spaces/input/versions.tf | 14 + .../modules/standard_vpc_attachment/LICENSE | 201 + .../standard_vpc_attachment/fixture.json | 37 + .../standard_vpc_attachment/input/context.tf | 279 + .../standard_vpc_attachment/input/main.tf | 188 + .../standard_vpc_attachment/input/outputs.tf | 14 + .../input/variables.tf | 86 + .../standard_vpc_attachment/input/versions.tf | 10 + .../cloud-registration/0.7.13/LICENSE | 21 + .../cloud-registration/0.7.13/fixture.json | 44 + .../cloud-registration/0.7.13/input/main.tf | 237 + .../agentless-scanning-environments/kms.tf | 227 + .../agentless-scanning-environments/locals.tf | 21 + .../agentless-scanning-environments/main.tf | 555 ++ .../outputs.tf | 4 + .../variables.tf | 96 + .../versions.tf | 9 + .../agentless-scanning-roles/client_secret.tf | 22 + .../integration_role.tf | 924 ++ .../agentless-scanning-roles/locals.tf | 24 + .../modules/agentless-scanning-roles/main.tf | 280 + .../agentless-scanning-roles/outputs.tf | 19 + .../agentless-scanning-roles/variables.tf | 177 + .../agentless-scanning-roles/versions.tf | 9 + .../input/modules/asset-inventory/main.tf | 234 + .../input/modules/asset-inventory/outputs.tf | 4 + .../modules/asset-inventory/variables.tf | 32 + .../input/modules/asset-inventory/versions.tf | 9 + .../modules/realtime-visibility/govcom.tf | 261 + .../input/modules/realtime-visibility/main.tf | 258 + .../modules/realtime-visibility/outputs.tf | 25 + .../modules/realtime-visibility/rules.tf | 153 + .../modules/realtime-visibility/variables.tf | 149 + .../modules/realtime-visibility/versions.tf | 13 + .../0.7.13/input/modules/region-map/main.tf | 45 + .../input/modules/region-map/outputs.tf | 9 + .../input/modules/region-map/variables.tf | 4 + .../input/modules/region-map/versions.tf | 3 + .../input/modules/sensor-management/main.tf | 178 + .../modules/sensor-management/outputs.tf | 0 .../modules/sensor-management/variables.tf | 67 + .../modules/sensor-management/versions.tf | 9 + .../0.7.13/input/outputs.tf | 9 + .../0.7.13/input/variables.tf | 479 + .../0.7.13/input/version.tf | 13 + .../agentless-scanning-environments/LICENSE | 21 + .../fixture.json | 36 + .../input/kms.tf | 227 + .../input/locals.tf | 21 + .../input/main.tf | 555 ++ .../input/outputs.tf | 4 + .../input/variables.tf | 96 + .../input/versions.tf | 9 + .../modules/agentless-scanning-roles/LICENSE | 21 + .../agentless-scanning-roles/fixture.json | 37 + .../input/client_secret.tf | 22 + .../input/integration_role.tf | 924 ++ .../agentless-scanning-roles/input/locals.tf | 24 + .../agentless-scanning-roles/input/main.tf | 280 + .../agentless-scanning-roles/input/outputs.tf | 19 + .../input/variables.tf | 177 + .../input/versions.tf | 9 + .../0.7.13/modules/asset-inventory/LICENSE | 21 + .../modules/asset-inventory/fixture.json | 35 + .../modules/asset-inventory/input/main.tf | 234 + .../modules/asset-inventory/input/outputs.tf | 4 + .../asset-inventory/input/variables.tf | 32 + .../modules/asset-inventory/input/versions.tf | 9 + .../DNXLabs/eks-lb-controller/0.11.0/LICENSE | 201 + .../eks-lb-controller/0.11.0/fixture.json | 40 + .../0.11.0/input/_variables.tf | 108 + .../eks-lb-controller/0.11.0/input/helm.tf | 38 + .../eks-lb-controller/0.11.0/input/iam.tf | 415 + .../0.11.0/input/namespace.tf | 8 + .../eks-lb-controller/0.11.0/input/role.tf | 20 + .../0.11.0/input/versions.tf | 22 + .../1.2.2/examples/ecs_fargate/LICENSE | 200 + .../1.2.2/examples/ecs_fargate/NOTICE | 4 + .../1.2.2/examples/ecs_fargate/fixture.json | 28 + .../1.2.2/examples/ecs_fargate/input/main.tf | 84 + .../examples/ecs_fargate/input/outputs.tf | 8 + .../examples/ecs_fargate/input/variables.tf | 46 + .../examples/ecs_fargate/input/versions.tf | 15 + .../ecs-datadog/1.2.2/modules/ecs_ec2/LICENSE | 200 + .../ecs-datadog/1.2.2/modules/ecs_ec2/NOTICE | 4 + .../1.2.2/modules/ecs_ec2/fixture.json | 40 + .../1.2.2/modules/ecs_ec2/input/datadog.tf | 308 + .../1.2.2/modules/ecs_ec2/input/iam.tf | 172 + .../1.2.2/modules/ecs_ec2/input/main.tf | 152 + .../1.2.2/modules/ecs_ec2/input/outputs.tf | 188 + .../1.2.2/modules/ecs_ec2/input/service.tf | 59 + .../1.2.2/modules/ecs_ec2/input/variables.tf | 432 + .../1.2.2/modules/ecs_ec2/input/versions.tf | 15 + .../1.2.2/modules/ecs_fargate/LICENSE | 200 + .../1.2.2/modules/ecs_fargate/NOTICE | 4 + .../1.2.2/modules/ecs_fargate/fixture.json | 39 + .../modules/ecs_fargate/input/datadog.tf | 497 + .../1.2.2/modules/ecs_fargate/input/iam.tf | 158 + .../1.2.2/modules/ecs_fargate/input/main.tf | 190 + .../modules/ecs_fargate/input/outputs.tf | 126 + .../modules/ecs_fargate/input/variables.tf | 528 ++ .../modules/ecs_fargate/input/versions.tf | 15 + .../modules/ecs_managed_instances/LICENSE | 200 + .../modules/ecs_managed_instances/NOTICE | 4 + .../ecs_managed_instances/fixture.json | 40 + .../ecs_managed_instances/input/daemon.tf | 63 + .../input/daemon_task_definition.tf | 168 + .../ecs_managed_instances/input/datadog.tf | 339 + .../ecs_managed_instances/input/iam.tf | 176 + .../ecs_managed_instances/input/outputs.tf | 155 + .../ecs_managed_instances/input/variables.tf | 425 + .../ecs_managed_instances/input/versions.tf | 23 + .../DataDog/lambda-datadog/4.9.0/LICENSE | 201 + .../DataDog/lambda-datadog/4.9.0/NOTICE | 4 + .../DataDog/lambda-datadog/4.9.0/fixture.json | 37 + .../lambda-datadog/4.9.0/input/main.tf | 263 + .../lambda-datadog/4.9.0/input/outputs.tf | 189 + .../lambda-datadog/4.9.0/input/variables.tf | 260 + .../lambda-datadog/4.9.0/input/versions.tf | 10 + .../registry/Guimove/bastion/3.0.6/LICENSE | 201 + .../Guimove/bastion/3.0.6/fixture.json | 38 + .../Guimove/bastion/3.0.6/input/buckets.tf | 65 + .../Guimove/bastion/3.0.6/input/data.tf | 16 + .../Guimove/bastion/3.0.6/input/locals.tf | 10 + .../Guimove/bastion/3.0.6/input/main.tf | 324 + .../Guimove/bastion/3.0.6/input/outputs.tf | 54 + .../Guimove/bastion/3.0.6/input/providers.tf | 10 + .../Guimove/bastion/3.0.6/input/variables.tf | 255 + .../HENNGE/cloudwatch-dashboard/1.0.2/LICENSE | 201 + .../cloudwatch-dashboard/1.0.2/fixture.json | 30 + .../cloudwatch-dashboard/1.0.2/input/main.tf | 18 + .../1.0.2/input/output.tf | 4 + .../1.0.2/input/variables.tf | 27 + .../registry/HENNGE/ecs/5.6.0/LICENSE | 201 + .../registry/HENNGE/ecs/5.6.0/fixture.json | 35 + .../registry/HENNGE/ecs/5.6.0/input/main.tf | 73 + .../HENNGE/ecs/5.6.0/input/outputs.tf | 9 + .../HENNGE/ecs/5.6.0/input/variables.tf | 46 + .../HENNGE/ecs/5.6.0/input/versions.tf | 10 + .../target-requests-count/LICENSE | 201 + .../target-requests-count/fixture.json | 30 + .../target-requests-count/input/main.tf | 19 + .../target-requests-count/input/outputs.tf | 14 + .../target-requests-count/input/variables.tf | 42 + .../target-requests-count/input/versions.tf | 10 + .../target-response-time/LICENSE | 201 + .../target-response-time/fixture.json | 29 + .../target-response-time/input/main.tf | 31 + .../target-response-time/input/outputs.tf | 14 + .../target-response-time/input/variables.tf | 54 + .../target-response-time/input/versions.tf | 10 + .../ecs-reservation/LICENSE | 201 + .../ecs-reservation/fixture.json | 33 + .../ecs-reservation/input/main.tf | 45 + .../ecs-reservation/input/outputs.tf | 39 + .../ecs-reservation/input/variables.tf | 56 + .../ecs-reservation/input/versions.tf | 10 + .../modules/autoscaling/ecs-scheduled/LICENSE | 201 + .../autoscaling/ecs-scheduled/fixture.json | 29 + .../autoscaling/ecs-scheduled/input/main.tf | 14 + .../ecs-scheduled/input/outputs.tf | 4 + .../ecs-scheduled/input/variables.tf | 32 + .../ecs-scheduled/input/versions.tf | 10 + .../service-utilization/LICENSE | 201 + .../service-utilization/fixture.json | 32 + .../service-utilization/input/main.tf | 39 + .../service-utilization/input/outputs.tf | 29 + .../service-utilization/input/variables.tf | 51 + .../service-utilization/input/versions.tf | 10 + .../core/ecs-autoscaling-target/LICENSE | 201 + .../core/ecs-autoscaling-target/fixture.json | 35 + .../core/ecs-autoscaling-target/input/main.tf | 45 + .../ecs-autoscaling-target/input/outputs.tf | 32 + .../ecs-autoscaling-target/input/variables.tf | 41 + .../ecs-autoscaling-target/input/versions.tf | 10 + .../ecs/5.6.0/modules/core/task/LICENSE | 201 + .../ecs/5.6.0/modules/core/task/fixture.json | 34 + .../ecs/5.6.0/modules/core/task/input/main.tf | 94 + .../5.6.0/modules/core/task/input/outputs.tf | 14 + .../modules/core/task/input/variables.tf | 133 + .../5.6.0/modules/core/task/input/versions.tf | 10 + .../modules/iam/ecs-instance-profile/LICENSE | 201 + .../iam/ecs-instance-profile/fixture.json | 31 + .../iam/ecs-instance-profile/input/main.tf | 33 + .../iam/ecs-instance-profile/input/outputs.tf | 4 + .../ecs-instance-profile/input/variables.tf | 4 + .../ecs-instance-profile/input/versions.tf | 10 + .../5.6.0/modules/scheduled-actions/LICENSE | 201 + .../modules/scheduled-actions/fixture.json | 34 + .../modules/scheduled-actions/input/main.tf | 50 + .../scheduled-actions/input/outputs.tf | 4 + .../scheduled-actions/input/variables.tf | 93 + .../scheduled-actions/input/versions.tf | 10 + .../1.1.6/modules/alb/LICENSE | 21 + .../1.1.6/modules/alb/fixture.json | 40 + .../1.1.6/modules/alb/input/main.tf | 394 + .../1.1.6/modules/alb/input/outputs.tf | 8 + .../1.1.6/modules/alb/input/variables.tf | 266 + .../1.1.6/modules/alb/input/versions.tf | 9 + .../1.1.6/modules/bootstrap/LICENSE | 21 + .../1.1.6/modules/bootstrap/fixture.json | 38 + .../1.1.6/modules/bootstrap/input/main.tf | 152 + .../1.1.6/modules/bootstrap/input/outputs.tf | 34 + .../modules/bootstrap/input/variables.tf | 96 + .../1.1.6/modules/bootstrap/input/versions.tf | 13 + .../1.1.6/modules/crosszone_failover/LICENSE | 21 + .../modules/crosszone_failover/fixture.json | 33 + .../modules/crosszone_failover/input/main.tf | 294 + .../crosszone_failover/input/variables.tf | 51 + .../crosszone_failover/input/versions.tf | 9 + .../1.1.6/modules/gwlb/LICENSE | 21 + .../1.1.6/modules/gwlb/fixture.json | 36 + .../1.1.6/modules/gwlb/input/main.tf | 88 + .../1.1.6/modules/gwlb/input/outputs.tf | 7 + .../1.1.6/modules/gwlb/input/variables.tf | 172 + .../1.1.6/modules/gwlb/input/versions.tf | 9 + .../1.1.6/modules/gwlb_endpoint_set/LICENSE | 21 + .../modules/gwlb_endpoint_set/fixture.json | 35 + .../modules/gwlb_endpoint_set/input/main.tf | 46 + .../gwlb_endpoint_set/input/outputs.tf | 28 + .../gwlb_endpoint_set/input/variables.tf | 80 + .../gwlb_endpoint_set/input/versions.tf | 9 + .../1.1.6/modules/nat_gateway_set/LICENSE | 21 + .../modules/nat_gateway_set/fixture.json | 37 + .../modules/nat_gateway_set/input/main.tf | 58 + .../modules/nat_gateway_set/input/outputs.tf | 31 + .../nat_gateway_set/input/variables.tf | 95 + .../modules/nat_gateway_set/input/versions.tf | 9 + .../1.1.6/modules/nlb/LICENSE | 21 + .../1.1.6/modules/nlb/fixture.json | 39 + .../1.1.6/modules/nlb/input/main.tf | 216 + .../1.1.6/modules/nlb/input/outputs.tf | 8 + .../1.1.6/modules/nlb/input/variables.tf | 202 + .../1.1.6/modules/nlb/input/versions.tf | 9 + .../1.1.6/modules/panorama/LICENSE | 21 + .../1.1.6/modules/panorama/fixture.json | 38 + .../1.1.6/modules/panorama/input/main.tf | 91 + .../1.1.6/modules/panorama/input/outputs.tf | 9 + .../1.1.6/modules/panorama/input/variables.tf | 159 + .../1.1.6/modules/panorama/input/versions.tf | 9 + .../1.1.6/modules/subnet_set/LICENSE | 21 + .../1.1.6/modules/subnet_set/fixture.json | 37 + .../1.1.6/modules/subnet_set/input/main.tf | 86 + .../1.1.6/modules/subnet_set/input/outputs.tf | 23 + .../modules/subnet_set/input/variables.tf | 61 + .../modules/subnet_set/input/versions.tf | 9 + .../1.1.6/modules/transit_gateway/LICENSE | 21 + .../modules/transit_gateway/fixture.json | 37 + .../modules/transit_gateway/input/main.tf | 94 + .../modules/transit_gateway/input/outputs.tf | 15 + .../transit_gateway/input/variables.tf | 68 + .../modules/transit_gateway/input/versions.tf | 9 + .../transit_gateway_attachment/LICENSE | 21 + .../transit_gateway_attachment/fixture.json | 33 + .../transit_gateway_attachment/input/main.tf | 23 + .../input/outputs.tf | 29 + .../input/variables.tf | 78 + .../input/versions.tf | 9 + .../modules/transit_gateway_peering/LICENSE | 21 + .../transit_gateway_peering/fixture.json | 33 + .../transit_gateway_peering/input/main.tf | 59 + .../transit_gateway_peering/input/outputs.tf | 19 + .../input/variables.tf | 37 + .../transit_gateway_peering/input/versions.tf | 14 + .../1.1.6/modules/vmseries/LICENSE | 21 + .../1.1.6/modules/vmseries/fixture.json | 39 + .../1.1.6/modules/vmseries/input/main.tf | 124 + .../1.1.6/modules/vmseries/input/outputs.tf | 13 + .../1.1.6/modules/vmseries/input/variables.tf | 156 + .../1.1.6/modules/vmseries/input/versions.tf | 9 + .../1.1.6/modules/vpc/LICENSE | 21 + .../1.1.6/modules/vpc/fixture.json | 39 + .../1.1.6/modules/vpc/input/main.tf | 212 + .../1.1.6/modules/vpc/input/outputs.tf | 72 + .../1.1.6/modules/vpc/input/variables.tf | 227 + .../1.1.6/modules/vpc/input/versions.tf | 9 + .../1.1.6/modules/vpc_endpoint/LICENSE | 21 + .../1.1.6/modules/vpc_endpoint/fixture.json | 36 + .../1.1.6/modules/vpc_endpoint/input/main.tf | 53 + .../modules/vpc_endpoint/input/outputs.tf | 4 + .../modules/vpc_endpoint/input/variables.tf | 93 + .../modules/vpc_endpoint/input/versions.tf | 9 + .../1.1.6/modules/vpc_route/LICENSE | 21 + .../1.1.6/modules/vpc_route/fixture.json | 32 + .../1.1.6/modules/vpc_route/input/main.tf | 18 + .../1.1.6/modules/vpc_route/input/outputs.tf | 16 + .../modules/vpc_route/input/variables.tf | 90 + .../1.1.6/modules/vpc_route/input/versions.tf | 9 + .../1.1.6/modules/vpn/LICENSE | 21 + .../1.1.6/modules/vpn/fixture.json | 37 + .../1.1.6/modules/vpn/input/main.tf | 213 + .../1.1.6/modules/vpn/input/outputs.tf | 45 + .../1.1.6/modules/vpn/input/variables.tf | 120 + .../1.1.6/modules/vpn/input/versions.tf | 9 + .../registry/QuiNovas/lambda/4.0.2/LICENSE | 201 + .../QuiNovas/lambda/4.0.2/fixture.json | 36 + .../lambda/4.0.2/input/destinations.tf | 71 + .../QuiNovas/lambda/4.0.2/input/locals.tf | 0 .../QuiNovas/lambda/4.0.2/input/main.tf | 170 + .../QuiNovas/lambda/4.0.2/input/outputs.tf | 45 + .../QuiNovas/lambda/4.0.2/input/variables.tf | 133 + .../QuiNovas/lambda/4.0.2/input/versions.tf | 10 + .../registry/RaJiska/fck-nat/1.6.1/LICENSE | 21 + .../RaJiska/fck-nat/1.6.1/fixture.json | 38 + .../RaJiska/fck-nat/1.6.1/input/asg.tf | 87 + .../RaJiska/fck-nat/1.6.1/input/ec2.tf | 147 + .../RaJiska/fck-nat/1.6.1/input/iam.tf | 145 + .../RaJiska/fck-nat/1.6.1/input/main.tf | 111 + .../RaJiska/fck-nat/1.6.1/input/output.tf | 104 + .../RaJiska/fck-nat/1.6.1/input/provider.tf | 9 + .../RaJiska/fck-nat/1.6.1/input/variables.tf | 216 + .../SPHTech-Platform/apigw/0.5.8/LICENSE | 21 + .../SPHTech-Platform/apigw/0.5.8/fixture.json | 39 + .../apigw/0.5.8/input/data.tf | 49 + .../SPHTech-Platform/apigw/0.5.8/input/iam.tf | 24 + .../apigw/0.5.8/input/main.tf | 139 + .../apigw/0.5.8/input/outputs.tf | 54 + .../apigw/0.5.8/input/resource_policy.tf | 11 + .../apigw/0.5.8/input/variables.tf | 182 + .../apigw/0.5.8/input/versions.tf | 9 + .../apigw/0.5.8/modules/custom_domain/LICENSE | 21 + .../0.5.8/modules/custom_domain/fixture.json | 34 + .../0.5.8/modules/custom_domain/input/main.tf | 54 + .../modules/custom_domain/input/outputs.tf | 14 + .../modules/custom_domain/input/variables.tf | 64 + .../modules/custom_domain/input/versions.tf | 9 + .../0.5.8/modules/gateway_response/LICENSE | 21 + .../modules/gateway_response/fixture.json | 28 + .../modules/gateway_response/input/main.tf | 8 + .../gateway_response/input/variables.tf | 29 + .../gateway_response/input/versions.tf | 9 + .../apigw/0.5.8/modules/usage_plan/LICENSE | 21 + .../0.5.8/modules/usage_plan/fixture.json | 33 + .../0.5.8/modules/usage_plan/input/main.tf | 56 + .../0.5.8/modules/usage_plan/input/outputs.tf | 6 + .../modules/usage_plan/input/variables.tf | 78 + .../modules/usage_plan/input/versions.tf | 9 + .../1.0.0/modules/cache/LICENSE | 21 + .../1.0.0/modules/cache/fixture.json | 33 + .../1.0.0/modules/cache/input/main.tf | 51 + .../1.0.0/modules/cache/input/outputs.tf | 9 + .../1.0.0/modules/cache/input/variables.tf | 96 + .../1.0.0/modules/cache/input/versions.tf | 10 + .../1.0.0/modules/origin-request/LICENSE | 21 + .../1.0.0/modules/origin-request/fixture.json | 32 + .../modules/origin-request/input/main.tf | 42 + .../modules/origin-request/input/outputs.tf | 9 + .../modules/origin-request/input/variables.tf | 64 + .../modules/origin-request/input/versions.tf | 10 + .../1.0.0/modules/response-headers/LICENSE | 21 + .../modules/response-headers/fixture.json | 34 + .../modules/response-headers/input/main.tf | 143 + .../modules/response-headers/input/outputs.tf | 21 + .../response-headers/input/variables.tf | 237 + .../response-headers/input/versions.tf | 10 + .../SPHTech-Platform/ecs/0.2.24/LICENSE | 21 + .../SPHTech-Platform/ecs/0.2.24/fixture.json | 40 + .../SPHTech-Platform/ecs/0.2.24/input/main.tf | 101 + .../input/modules/autoscaling-group/main.tf | 70 + .../input/modules/autoscaling-group/output.tf | 14 + .../modules/autoscaling-group/variables.tf | 191 + .../modules/autoscaling-group/versions.tf | 3 + .../input/modules/autoscaling-policy/main.tf | 99 + .../modules/autoscaling-policy/outputs.tf | 69 + .../modules/autoscaling-policy/variables.tf | 119 + .../modules/autoscaling-policy/versions.tf | 9 + .../ecs/0.2.24/input/modules/cluster/data.tf | 50 + .../ecs/0.2.24/input/modules/cluster/main.tf | 85 + .../0.2.24/input/modules/cluster/outputs.tf | 29 + .../0.2.24/input/modules/cluster/variables.tf | 134 + .../0.2.24/input/modules/cluster/versions.tf | 9 + .../ecs/0.2.24/input/modules/service/main.tf | 183 + .../0.2.24/input/modules/service/outputs.tf | 13 + .../0.2.24/input/modules/service/variables.tf | 210 + .../0.2.24/input/modules/service/versions.tf | 9 + .../ecs/0.2.24/input/outputs.tf | 50 + .../ecs/0.2.24/input/variables.tf | 315 + .../ecs/0.2.24/input/versions.tf | 3 + .../0.2.24/modules/autoscaling-group/LICENSE | 21 + .../modules/autoscaling-group/fixture.json | 27 + .../modules/autoscaling-group/input/main.tf | 70 + .../modules/autoscaling-group/input/output.tf | 14 + .../autoscaling-group/input/variables.tf | 191 + .../autoscaling-group/input/versions.tf | 3 + .../0.2.24/modules/autoscaling-policy/LICENSE | 21 + .../modules/autoscaling-policy/fixture.json | 33 + .../modules/autoscaling-policy/input/main.tf | 99 + .../autoscaling-policy/input/outputs.tf | 69 + .../autoscaling-policy/input/variables.tf | 119 + .../autoscaling-policy/input/versions.tf | 9 + .../ecs/0.2.24/modules/cluster/LICENSE | 21 + .../ecs/0.2.24/modules/cluster/fixture.json | 37 + .../ecs/0.2.24/modules/cluster/input/data.tf | 50 + .../ecs/0.2.24/modules/cluster/input/main.tf | 85 + .../0.2.24/modules/cluster/input/outputs.tf | 29 + .../0.2.24/modules/cluster/input/variables.tf | 134 + .../0.2.24/modules/cluster/input/versions.tf | 9 + .../ecs/0.2.24/modules/iam/LICENSE | 21 + .../ecs/0.2.24/modules/iam/fixture.json | 32 + .../ecs/0.2.24/modules/iam/input/main.tf | 35 + .../ecs/0.2.24/modules/iam/input/outputs.tf | 29 + .../ecs/0.2.24/modules/iam/input/variables.tf | 62 + .../ecs/0.2.24/modules/iam/input/versions.tf | 8 + .../0.2.24/modules/service-discovery/LICENSE | 21 + .../modules/service-discovery/fixture.json | 33 + .../modules/service-discovery/input/main.tf | 28 + .../service-discovery/input/outputs.tf | 19 + .../service-discovery/input/variables.tf | 54 + .../service-discovery/input/versions.tf | 9 + .../ecs/0.2.24/modules/service/LICENSE | 21 + .../ecs/0.2.24/modules/service/fixture.json | 39 + .../ecs/0.2.24/modules/service/input/main.tf | 183 + .../0.2.24/modules/service/input/outputs.tf | 13 + .../0.2.24/modules/service/input/variables.tf | 210 + .../0.2.24/modules/service/input/versions.tf | 9 + .../SPHTech-Platform/eks/0.22.26/LICENSE | 21 + .../SPHTech-Platform/eks/0.22.26/fixture.json | 45 + .../eks/0.22.26/input/data.tf | 21 + .../eks/0.22.26/input/fargate_profile.tf | 103 + .../SPHTech-Platform/eks/0.22.26/input/iam.tf | 176 + .../eks/0.22.26/input/karpenter.tf | 150 + .../SPHTech-Platform/eks/0.22.26/input/kms.tf | 26 + .../eks/0.22.26/input/main.tf | 257 + .../modules/eks_managed_nodes/asg_tags.tf | 67 + .../input/modules/eks_managed_nodes/data.tf | 23 + .../input/modules/eks_managed_nodes/main.tf | 156 + .../modules/eks_managed_nodes/outputs.tf | 44 + .../modules/eks_managed_nodes/variables.tf | 99 + .../modules/eks_managed_nodes/versions.tf | 9 + .../input/modules/fargate_profile/data.tf | 1 + .../modules/fargate_profile/fargate_logger.tf | 117 + .../input/modules/fargate_profile/main.tf | 56 + .../input/modules/fargate_profile/outputs.tf | 55 + .../modules/fargate_profile/variables.tf | 116 + .../input/modules/fargate_profile/versions.tf | 13 + .../modules/karpenter/fargate-profile.tf | 22 + .../0.22.26/input/modules/karpenter/irsa.tf | 753 ++ .../input/modules/karpenter/karpenter.tf | 163 + .../input/modules/karpenter/outputs.tf | 4 + .../input/modules/karpenter/variables.tf | 493 + .../input/modules/karpenter/versions.tf | 19 + .../eks/0.22.26/input/node_groups.tf | 133 + .../eks/0.22.26/input/outputs.tf | 89 + .../eks/0.22.26/input/policies.tf | 98 + .../eks/0.22.26/input/variables.tf | 681 ++ .../eks/0.22.26/input/versions.tf | 24 + .../0.22.26/modules/eks_managed_nodes/LICENSE | 21 + .../modules/eks_managed_nodes/fixture.json | 38 + .../eks_managed_nodes/input/asg_tags.tf | 67 + .../modules/eks_managed_nodes/input/data.tf | 23 + .../modules/eks_managed_nodes/input/main.tf | 156 + .../eks_managed_nodes/input/outputs.tf | 44 + .../eks_managed_nodes/input/variables.tf | 99 + .../eks_managed_nodes/input/versions.tf | 9 + .../0.22.26/modules/fargate_profile/LICENSE | 21 + .../modules/fargate_profile/fixture.json | 39 + .../modules/fargate_profile/input/data.tf | 1 + .../fargate_profile/input/fargate_logger.tf | 117 + .../modules/fargate_profile/input/main.tf | 56 + .../modules/fargate_profile/input/outputs.tf | 55 + .../fargate_profile/input/variables.tf | 116 + .../modules/fargate_profile/input/versions.tf | 13 + .../modules/self_managed_nodes/LICENSE | 21 + .../modules/self_managed_nodes/fixture.json | 37 + .../modules/self_managed_nodes/input/data.tf | 13 + .../input/instance_refresh.tf | 36 + .../modules/self_managed_nodes/input/main.tf | 177 + .../self_managed_nodes/input/variables.tf | 111 + .../self_managed_nodes/input/versions.tf | 13 + .../elasticache-redis/1.0.3/LICENSE | 21 + .../elasticache-redis/1.0.3/fixture.json | 38 + .../elasticache-redis/1.0.3/input/alarms.tf | 292 + .../elasticache-redis/1.0.3/input/main.tf | 130 + .../elasticache-redis/1.0.3/input/outputs.tf | 59 + .../1.0.3/input/variables.tf | 370 + .../elasticache-redis/1.0.3/input/versions.tf | 9 + .../SPHTech-Platform/kms/1.0.4/LICENSE | 21 + .../SPHTech-Platform/kms/1.0.4/fixture.json | 34 + .../SPHTech-Platform/kms/1.0.4/input/data.tf | 32 + .../SPHTech-Platform/kms/1.0.4/input/main.tf | 22 + .../kms/1.0.4/input/outputs.tf | 14 + .../kms/1.0.4/input/variables.tf | 41 + .../kms/1.0.4/input/versions.tf | 10 + .../lambda-github-actions/0.3.5/LICENSE | 22 + .../lambda-github-actions/0.3.5/fixture.json | 40 + .../lambda-github-actions/0.3.5/input/data.tf | 192 + .../0.3.5/input/github_action.tf | 57 + .../lambda-github-actions/0.3.5/input/main.tf | 95 + .../0.3.5/input/outputs.tf | 72 + .../0.3.5/input/variables.tf | 528 ++ .../0.3.5/input/versions.tf | 15 + .../lb-controller/2.0.1/LICENSE | 201 + .../lb-controller/2.0.1/fixture.json | 38 + .../lb-controller/2.0.1/input/iam.tf | 25 + .../lb-controller/2.0.1/input/main.tf | 130 + .../lb-controller/2.0.1/input/output.tf | 19 + .../lb-controller/2.0.1/input/variables.tf | 383 + .../lb-controller/2.0.1/input/versions.tf | 13 + .../SweetOps/secretsmanager/0.6.0/LICENSE | 201 + .../secretsmanager/0.6.0/fixture.json | 38 + .../secretsmanager/0.6.0/input/context.tf | 279 + .../secretsmanager/0.6.0/input/main.tf | 87 + .../secretsmanager/0.6.0/input/outputs.tf | 39 + .../secretsmanager/0.6.0/input/variables.tf | 130 + .../secretsmanager/0.6.0/input/versions.tf | 10 + .../registry/ViktorUJ/vpc/1.1.0/LICENSE | 201 + .../vpc/1.1.0/examples/custom/LICENSE | 201 + .../vpc/1.1.0/examples/custom/fixture.json | 26 + .../vpc/1.1.0/examples/custom/input/main.tf | 207 + .../vpc/1.1.0/examples/custom/input/output.tf | 132 + .../vpc/1.1.0/examples/nacl_default/LICENSE | 201 + .../1.1.0/examples/nacl_default/fixture.json | 26 + .../1.1.0/examples/nacl_default/input/main.tf | 43 + .../examples/nacl_default/input/output.tf | 7 + .../vpc/1.1.0/examples/nacl_subnet/LICENSE | 201 + .../1.1.0/examples/nacl_subnet/fixture.json | 26 + .../1.1.0/examples/nacl_subnet/input/main.tf | 122 + .../examples/nacl_subnet/input/output.tf | 7 + .../vpc/1.1.0/examples/nat_gateway_az/LICENSE | 201 + .../examples/nat_gateway_az/fixture.json | 26 + .../examples/nat_gateway_az/input/main.tf | 63 + .../examples/nat_gateway_az/input/output.tf | 3 + .../nat_gateway_az_existing_eip/LICENSE | 201 + .../nat_gateway_az_existing_eip/fixture.json | 26 + .../nat_gateway_az_existing_eip/input/main.tf | 193 + .../input/output.tf | 3 + .../1.1.0/examples/nat_gateway_single/LICENSE | 201 + .../examples/nat_gateway_single/fixture.json | 26 + .../examples/nat_gateway_single/input/main.tf | 64 + .../nat_gateway_single/input/output.tf | 3 + .../1.1.0/examples/nat_gateway_subnet/LICENSE | 201 + .../examples/nat_gateway_subnet/fixture.json | 26 + .../examples/nat_gateway_subnet/input/main.tf | 63 + .../nat_gateway_subnet/input/output.tf | 3 + .../output_private_subnet_by_type/LICENSE | 201 + .../fixture.json | 26 + .../input/main.tf | 76 + .../input/output.tf | 15 + .../vpc/1.1.0/examples/simple/LICENSE | 201 + .../vpc/1.1.0/examples/simple/fixture.json | 26 + .../vpc/1.1.0/examples/simple/input/main.tf | 47 + .../vpc/1.1.0/examples/simple/input/output.tf | 15 + .../registry/ViktorUJ/vpc/1.1.0/fixture.json | 36 + .../registry/ViktorUJ/vpc/1.1.0/input/data.tf | 1 + .../ViktorUJ/vpc/1.1.0/input/locals.tf | 64 + .../registry/ViktorUJ/vpc/1.1.0/input/main.tf | 0 .../ViktorUJ/vpc/1.1.0/input/outputs.tf | 109 + .../vpc/1.1.0/input/subnets_private.tf | 267 + .../ViktorUJ/vpc/1.1.0/input/subnets_pub.tf | 109 + .../ViktorUJ/vpc/1.1.0/input/variables.tf | 201 + .../ViktorUJ/vpc/1.1.0/input/versions.tf | 10 + .../registry/ViktorUJ/vpc/1.1.0/input/vpc.tf | 60 + .../registry/Young-ook/eks/2.1.0/LICENSE | 21 + .../eks/2.1.0/examples/blueprint/LICENSE | 21 + .../eks/2.1.0/examples/blueprint/fixture.json | 39 + .../2.1.0/examples/blueprint/input/cicd.tf | 136 + .../2.1.0/examples/blueprint/input/main.tf | 118 + .../modules/kubernetes-addons/defaults.tf | 12 + .../input/modules/kubernetes-addons/labels.tf | 5 + .../input/modules/kubernetes-addons/main.tf | 327 + .../modules/kubernetes-addons/outputs.tf | 20 + .../modules/kubernetes-addons/variables.tf | 24 + .../2.1.0/examples/blueprint/input/outputs.tf | 14 + .../2.1.0/examples/blueprint/input/toggles.tf | 8 + .../examples/blueprint/input/variables.tf | 73 + .../modules/kubernetes-addons/LICENSE | 21 + .../modules/kubernetes-addons/fixture.json | 35 + .../kubernetes-addons/input/defaults.tf | 12 + .../modules/kubernetes-addons/input/labels.tf | 5 + .../modules/kubernetes-addons/input/main.tf | 327 + .../kubernetes-addons/input/outputs.tf | 20 + .../kubernetes-addons/input/variables.tf | 24 + .../examples/data-ai/modules/kubeflow/LICENSE | 21 + .../data-ai/modules/kubeflow/fixture.json | 27 + .../data-ai/modules/kubeflow/input/labels.tf | 5 + .../data-ai/modules/kubeflow/input/main.tf | 190 + .../modules/kubeflow/input/variables.tf | 13 + .../registry/Young-ook/eks/2.1.0/fixture.json | 45 + .../Young-ook/eks/2.1.0/input/defaults.tf | 20 + .../Young-ook/eks/2.1.0/input/labels.tf | 42 + .../Young-ook/eks/2.1.0/input/main.tf | 473 + .../Young-ook/eks/2.1.0/input/outputs.tf | 87 + .../Young-ook/eks/2.1.0/input/variables.tf | 71 + .../Young-ook/eks/2.1.0/input/versions.tf | 7 + .../Young-ook/eks/2.1.0/modules/ecr/LICENSE | 21 + .../eks/2.1.0/modules/ecr/fixture.json | 34 + .../eks/2.1.0/modules/ecr/input/default.tf | 18 + .../eks/2.1.0/modules/ecr/input/labels.tf | 16 + .../eks/2.1.0/modules/ecr/input/main.tf | 88 + .../eks/2.1.0/modules/ecr/input/outputs.tf | 19 + .../eks/2.1.0/modules/ecr/input/variables.tf | 44 + .../eks/2.1.0/modules/ecr/input/versions.tf | 5 + .../eks/2.1.0/modules/eks-addons/LICENSE | 21 + .../eks/2.1.0/modules/eks-addons/fixture.json | 33 + .../modules/eks-addons/input/defaults.tf | 22 + .../2.1.0/modules/eks-addons/input/labels.tf | 5 + .../2.1.0/modules/eks-addons/input/main.tf | 25 + .../2.1.0/modules/eks-addons/input/outputs.tf | 6 + .../modules/eks-addons/input/variables.tf | 15 + .../eks/2.1.0/modules/helm-addons/LICENSE | 21 + .../2.1.0/modules/helm-addons/fixture.json | 36 + .../modules/helm-addons/input/defaults.tf | 25 + .../2.1.0/modules/helm-addons/input/labels.tf | 5 + .../2.1.0/modules/helm-addons/input/main.tf | 42 + .../modules/helm-addons/input/outputs.tf | 10 + .../modules/helm-addons/input/variables.tf | 15 + .../modules/helm-addons/input/versions.tf | 11 + .../Young-ook/eks/2.1.0/modules/irsa/LICENSE | 21 + .../eks/2.1.0/modules/irsa/fixture.json | 32 + .../eks/2.1.0/modules/irsa/input/labels.tf | 16 + .../eks/2.1.0/modules/irsa/input/main.tf | 33 + .../eks/2.1.0/modules/irsa/input/outputs.tf | 22 + .../eks/2.1.0/modules/irsa/input/variables.tf | 48 + .../eks/2.1.0/modules/irsa/input/versions.tf | 5 + .../eks/2.1.0/modules/pod-identity/LICENSE | 21 + .../2.1.0/modules/pod-identity/fixture.json | 34 + .../modules/pod-identity/input/defaults.tf | 12 + .../modules/pod-identity/input/labels.tf | 15 + .../2.1.0/modules/pod-identity/input/main.tf | 49 + .../modules/pod-identity/input/outputs.tf | 7 + .../modules/pod-identity/input/variables.tf | 15 + .../modules/pod-identity/input/versions.tf | 5 + .../avlcloudtechnologies/sso/0.5.0/LICENSE | 201 + .../sso/0.5.0/examples/complete/LICENSE | 201 + .../sso/0.5.0/examples/complete/fixture.json | 33 + .../sso/0.5.0/examples/complete/input/main.tf | 89 + .../0.5.0/examples/complete/input/outputs.tf | 9 + .../examples/complete/input/variables.tf | 10 + .../0.5.0/examples/complete/input/versions.tf | 9 + .../sso/0.5.0/examples/simple/LICENSE | 201 + .../sso/0.5.0/examples/simple/fixture.json | 32 + .../sso/0.5.0/examples/simple/input/main.tf | 32 + .../0.5.0/examples/simple/input/outputs.tf | 4 + .../0.5.0/examples/simple/input/variables.tf | 0 .../0.5.0/examples/simple/input/versions.tf | 9 + .../0.5.0/examples/with-dependencies/LICENSE | 201 + .../examples/with-dependencies/fixture.json | 32 + .../examples/with-dependencies/input/main.tf | 81 + .../with-dependencies/input/outputs.tf | 4 + .../with-dependencies/input/variables.tf | 0 .../with-dependencies/input/versions.tf | 9 + .../sso/0.5.0/fixture.json | 37 + .../sso/0.5.0/input/main.tf | 123 + .../sso/0.5.0/input/outputs.tf | 8 + .../sso/0.5.0/input/variables.tf | 35 + .../sso/0.5.0/input/versions.tf | 9 + .../aws-ia/cloudwatch-log-group/1.0.1/LICENSE | 201 + .../aws-ia/cloudwatch-log-group/1.0.1/NOTICE | 7 + .../cloudwatch-log-group/1.0.1/fixture.json | 34 + .../cloudwatch-log-group/1.0.1/input/main.tf | 73 + .../1.0.1/input/outputs.tf | 14 + .../1.0.1/input/provider.tf | 10 + .../1.0.1/input/variables.tf | 34 + .../1.23.0/LICENSE | 201 + .../1.23.0/NOTICE | 2 + .../examples/azuredevops+tf_cloud/LICENSE | 201 + .../examples/azuredevops+tf_cloud/NOTICE | 2 + .../azuredevops+tf_cloud/fixture.json | 23 + .../azuredevops+tf_cloud/input/main.tf | 23 + .../examples/bitbucket+tf_enterprise/LICENSE | 201 + .../examples/bitbucket+tf_enterprise/NOTICE | 2 + .../bitbucket+tf_enterprise/fixture.json | 23 + .../bitbucket+tf_enterprise/input/main.tf | 26 + .../1.23.0/examples/codecommit+tf_oss/LICENSE | 201 + .../1.23.0/examples/codecommit+tf_oss/NOTICE | 2 + .../examples/codecommit+tf_oss/fixture.json | 23 + .../examples/codecommit+tf_oss/input/main.tf | 13 + .../1.23.0/examples/github+tf_oss/LICENSE | 201 + .../1.23.0/examples/github+tf_oss/NOTICE | 2 + .../examples/github+tf_oss/fixture.json | 23 + .../examples/github+tf_oss/input/main.tf | 19 + .../githubenterprise+tf_cloud/LICENSE | 201 + .../examples/githubenterprise+tf_cloud/NOTICE | 2 + .../githubenterprise+tf_cloud/fixture.json | 23 + .../githubenterprise+tf_cloud/input/main.tf | 26 + .../1.23.0/examples/gitlab+tf_oss/LICENSE | 201 + .../1.23.0/examples/gitlab+tf_oss/NOTICE | 2 + .../examples/gitlab+tf_oss/fixture.json | 23 + .../examples/gitlab+tf_oss/input/main.tf | 19 + .../gitlabselfmanaged+tf_cloud/LICENSE | 201 + .../gitlabselfmanaged+tf_cloud/NOTICE | 2 + .../gitlabselfmanaged+tf_cloud/fixture.json | 23 + .../gitlabselfmanaged+tf_cloud/input/main.tf | 26 + .../modules/development/LICENSE | 201 + .../modules/development/NOTICE | 2 + .../modules/development/fixture.json | 25 + .../modules/development/input/main.tf | 9 + .../modules/production/LICENSE | 201 + .../modules/production/NOTICE | 2 + .../modules/production/fixture.json | 25 + .../modules/production/input/main.tf | 8 + .../modules/security/LICENSE | 201 + .../modules/security/NOTICE | 2 + .../modules/security/fixture.json | 25 + .../modules/security/input/main.tf | 8 + .../multiple-regions/LICENSE | 201 + .../multiple-regions/NOTICE | 2 + .../multiple-regions/fixture.json | 25 + .../multiple-regions/input/main.tf | 21 + .../1.23.0/fixture.json | 48 + .../1.23.0/input/data.tf | 23 + .../1.23.0/input/locals.tf | 73 + .../1.23.0/input/main.tf | 313 + .../cloudwatch.tf | 44 + .../data.tf | 13 + .../aft-account-provisioning-framework/iam.tf | 99 + .../lambda.tf | 122 + .../locals.tf | 6 + .../outputs.tf | 16 + .../states.tf | 24 + .../variables.tf | 104 + .../versions.tf | 13 + .../aft-account-request-framework/backup.tf | 40 + .../aft-account-request-framework/data.tf | 436 + .../aft-account-request-framework/ddb.tf | 155 + .../eventbridge.tf | 74 + .../aft-account-request-framework/iam.tf | 204 + .../aft-account-request-framework/kms.tf | 51 + .../aft-account-request-framework/lambda.tf | 257 + .../aft-account-request-framework/locals.tf | 19 + .../aft-account-request-framework/outputs.tf | 116 + .../aft-account-request-framework/sns.tf | 14 + .../aft-account-request-framework/sqs.tf | 21 + .../variables.tf | 91 + .../aft-account-request-framework/versions.tf | 14 + .../aft-account-request-framework/vpc.tf | 474 + .../1.23.0/input/modules/aft-archives/main.tf | 56 + .../input/modules/aft-archives/outputs.tf | 42 + .../1.23.0/input/modules/aft-backend/main.tf | 471 + .../input/modules/aft-backend/outputs.tf | 42 + .../input/modules/aft-backend/variables.tf | 18 + .../input/modules/aft-backend/versions.tf | 14 + .../aft-code-repositories/codebuild.tf | 133 + .../aft-code-repositories/codecommit.tf | 30 + .../aft-code-repositories/codepipeline.tf | 355 + .../modules/aft-code-repositories/codestar.tf | 72 + .../modules/aft-code-repositories/data.tf | 8 + .../modules/aft-code-repositories/iam.tf | 137 + .../modules/aft-code-repositories/locals.tf | 23 + .../modules/aft-code-repositories/outputs.tf | 6 + .../input/modules/aft-code-repositories/s3.tf | 3 + .../aft-code-repositories/variables.tf | 111 + .../modules/aft-code-repositories/versions.tf | 13 + .../modules/aft-customizations/codebuild.tf | 264 + .../input/modules/aft-customizations/data.tf | 31 + .../input/modules/aft-customizations/iam.tf | 214 + .../modules/aft-customizations/lambda.tf | 137 + .../modules/aft-customizations/locals.tf | 6 + .../modules/aft-customizations/outputs.tf | 34 + .../input/modules/aft-customizations/s3.tf | 128 + .../modules/aft-customizations/states.tf | 28 + .../modules/aft-customizations/variables.tf | 150 + .../modules/aft-customizations/versions.tf | 13 + .../input/modules/aft-feature-options/data.tf | 38 + .../input/modules/aft-feature-options/iam.tf | 128 + .../input/modules/aft-feature-options/kms.tf | 25 + .../modules/aft-feature-options/lambda.tf | 102 + .../modules/aft-feature-options/locals.tf | 6 + .../modules/aft-feature-options/outputs.tf | 42 + .../input/modules/aft-feature-options/s3.tf | 140 + .../modules/aft-feature-options/states.tf | 21 + .../modules/aft-feature-options/variables.tf | 96 + .../modules/aft-feature-options/versions.tf | 14 + .../modules/aft-iam-roles/admin-role/data.tf | 5 + .../modules/aft-iam-roles/admin-role/iam.tf | 39 + .../modules/aft-iam-roles/admin-role/main.tf | 11 + .../input/modules/aft-iam-roles/data.tf | 8 + .../1.23.0/input/modules/aft-iam-roles/iam.tf | 107 + .../input/modules/aft-iam-roles/locals.tf | 8 + .../input/modules/aft-iam-roles/oidc.tf | 19 + .../input/modules/aft-iam-roles/outputs.tf | 18 + .../aft-iam-roles/service-role/data.tf | 5 + .../aft-iam-roles/service-role/main.tf | 48 + .../input/modules/aft-iam-roles/variables.tf | 26 + .../input/modules/aft-iam-roles/versions.tf | 14 + .../modules/aft-lambda-layer/codebuild.tf | 84 + .../input/modules/aft-lambda-layer/data.tf | 10 + .../input/modules/aft-lambda-layer/iam.tf | 40 + .../input/modules/aft-lambda-layer/lambda.tf | 43 + .../input/modules/aft-lambda-layer/locals.tf | 8 + .../input/modules/aft-lambda-layer/main.tf | 23 + .../input/modules/aft-lambda-layer/outputs.tf | 6 + .../modules/aft-lambda-layer/variables.tf | 89 + .../modules/aft-lambda-layer/versions.tf | 13 + .../input/modules/aft-ssm-parameters/ssm.tf | 444 + .../modules/aft-ssm-parameters/variables.tf | 294 + .../modules/aft-ssm-parameters/versions.tf | 13 + .../1.23.0/input/outputs.tf | 285 + .../1.23.0/input/providers.tf | 56 + .../1.23.0/input/variables.tf | 569 ++ .../1.23.0/input/versions.tf | 14 + .../LICENSE | 201 + .../aft-account-provisioning-framework/NOTICE | 2 + .../fixture.json | 38 + .../input/cloudwatch.tf | 44 + .../input/data.tf | 13 + .../input/iam.tf | 99 + .../input/lambda.tf | 122 + .../input/locals.tf | 6 + .../input/outputs.tf | 16 + .../input/states.tf | 24 + .../input/variables.tf | 104 + .../input/versions.tf | 13 + .../aft-account-request-framework/LICENSE | 201 + .../aft-account-request-framework/NOTICE | 2 + .../fixture.json | 40 + .../input/backup.tf | 40 + .../input/data.tf | 436 + .../input/ddb.tf | 155 + .../input/eventbridge.tf | 74 + .../input/iam.tf | 204 + .../input/kms.tf | 51 + .../input/lambda.tf | 257 + .../input/locals.tf | 19 + .../input/outputs.tf | 116 + .../input/sns.tf | 14 + .../input/sqs.tf | 21 + .../input/variables.tf | 91 + .../input/versions.tf | 14 + .../input/vpc.tf | 474 + .../1.23.0/modules/aft-backend/LICENSE | 201 + .../1.23.0/modules/aft-backend/NOTICE | 2 + .../1.23.0/modules/aft-backend/fixture.json | 38 + .../1.23.0/modules/aft-backend/input/main.tf | 471 + .../modules/aft-backend/input/outputs.tf | 42 + .../modules/aft-backend/input/variables.tf | 18 + .../modules/aft-backend/input/versions.tf | 14 + .../modules/aft-code-repositories/LICENSE | 201 + .../modules/aft-code-repositories/NOTICE | 2 + .../aft-code-repositories/fixture.json | 42 + .../aft-code-repositories/input/codebuild.tf | 133 + .../aft-code-repositories/input/codecommit.tf | 30 + .../input/codepipeline.tf | 355 + .../aft-code-repositories/input/codestar.tf | 72 + .../aft-code-repositories/input/data.tf | 8 + .../aft-code-repositories/input/iam.tf | 137 + .../aft-code-repositories/input/locals.tf | 23 + .../aft-code-repositories/input/outputs.tf | 6 + .../modules/aft-code-repositories/input/s3.tf | 3 + .../aft-code-repositories/input/variables.tf | 111 + .../aft-code-repositories/input/versions.tf | 13 + .../1.23.0/modules/aft-customizations/LICENSE | 201 + .../1.23.0/modules/aft-customizations/NOTICE | 2 + .../modules/aft-customizations/fixture.json | 41 + .../aft-customizations/input/codebuild.tf | 264 + .../modules/aft-customizations/input/data.tf | 31 + .../modules/aft-customizations/input/iam.tf | 214 + .../aft-customizations/input/lambda.tf | 137 + .../aft-customizations/input/locals.tf | 6 + .../aft-customizations/input/outputs.tf | 34 + .../modules/aft-customizations/input/s3.tf | 128 + .../aft-customizations/input/states.tf | 28 + .../aft-customizations/input/variables.tf | 150 + .../aft-customizations/input/versions.tf | 13 + .../modules/aft-feature-options/LICENSE | 201 + .../1.23.0/modules/aft-feature-options/NOTICE | 2 + .../modules/aft-feature-options/fixture.json | 39 + .../modules/aft-feature-options/input/data.tf | 38 + .../modules/aft-feature-options/input/iam.tf | 128 + .../modules/aft-feature-options/input/kms.tf | 25 + .../aft-feature-options/input/lambda.tf | 102 + .../aft-feature-options/input/locals.tf | 6 + .../aft-feature-options/input/outputs.tf | 42 + .../modules/aft-feature-options/input/s3.tf | 140 + .../aft-feature-options/input/states.tf | 21 + .../aft-feature-options/input/variables.tf | 96 + .../aft-feature-options/input/versions.tf | 14 + .../1.23.0/modules/aft-iam-roles/LICENSE | 201 + .../1.23.0/modules/aft-iam-roles/NOTICE | 2 + .../modules/aft-iam-roles/admin-role/LICENSE | 201 + .../modules/aft-iam-roles/admin-role/NOTICE | 2 + .../aft-iam-roles/admin-role/fixture.json | 32 + .../aft-iam-roles/admin-role/input/data.tf | 5 + .../aft-iam-roles/admin-role/input/iam.tf | 39 + .../aft-iam-roles/admin-role/input/main.tf | 11 + .../1.23.0/modules/aft-iam-roles/fixture.json | 37 + .../aft-iam-roles/input/admin-role/data.tf | 5 + .../aft-iam-roles/input/admin-role/iam.tf | 39 + .../aft-iam-roles/input/admin-role/main.tf | 11 + .../modules/aft-iam-roles/input/data.tf | 8 + .../1.23.0/modules/aft-iam-roles/input/iam.tf | 107 + .../modules/aft-iam-roles/input/locals.tf | 8 + .../modules/aft-iam-roles/input/oidc.tf | 19 + .../modules/aft-iam-roles/input/outputs.tf | 18 + .../aft-iam-roles/input/service-role/data.tf | 5 + .../aft-iam-roles/input/service-role/main.tf | 48 + .../modules/aft-iam-roles/input/variables.tf | 26 + .../modules/aft-iam-roles/input/versions.tf | 14 + .../aft-iam-roles/service-role/LICENSE | 201 + .../modules/aft-iam-roles/service-role/NOTICE | 2 + .../aft-iam-roles/service-role/fixture.json | 32 + .../aft-iam-roles/service-role/input/data.tf | 5 + .../aft-iam-roles/service-role/input/main.tf | 48 + .../1.23.0/modules/aft-lambda-layer/LICENSE | 201 + .../1.23.0/modules/aft-lambda-layer/NOTICE | 2 + .../modules/aft-lambda-layer/fixture.json | 40 + .../aft-lambda-layer/input/codebuild.tf | 84 + .../modules/aft-lambda-layer/input/data.tf | 10 + .../modules/aft-lambda-layer/input/iam.tf | 40 + .../modules/aft-lambda-layer/input/lambda.tf | 43 + .../modules/aft-lambda-layer/input/locals.tf | 8 + .../modules/aft-lambda-layer/input/main.tf | 23 + .../modules/aft-lambda-layer/input/outputs.tf | 6 + .../aft-lambda-layer/input/variables.tf | 89 + .../aft-lambda-layer/input/versions.tf | 13 + .../1.23.0/modules/aft-ssm-parameters/LICENSE | 201 + .../1.23.0/modules/aft-ssm-parameters/NOTICE | 2 + .../modules/aft-ssm-parameters/fixture.json | 32 + .../modules/aft-ssm-parameters/input/ssm.tf | 444 + .../aft-ssm-parameters/input/variables.tf | 294 + .../aft-ssm-parameters/input/versions.tf | 13 + .../templates/customizations_pipeline/LICENSE | 201 + .../templates/customizations_pipeline/NOTICE | 2 + .../customizations_pipeline/fixture.json | 35 + .../input/codepipeline.tf | 258 + .../customizations_pipeline/input/data.tf | 47 + .../input/variables.tf | 90 + .../customizations_pipeline/input/versions.tf | 13 + .../terraform/LICENSE | 201 + .../terraform/NOTICE | 2 + .../terraform/fixture.json | 29 + .../terraform/input/iam.tf | 16 + .../terraform/input/states.tf | 8 + .../terraform/input/versions.tf | 13 + .../modules/aft-account-request/LICENSE | 201 + .../modules/aft-account-request/NOTICE | 2 + .../modules/aft-account-request/fixture.json | 29 + .../modules/aft-account-request/input/ddb.tf | 28 + .../aft-account-request/input/variables.tf | 50 + .../aft-account-request/input/versions.tf | 13 + .../aws-ia/eks-blueprints-addon/1.3.0/LICENSE | 201 + .../aws-ia/eks-blueprints-addon/1.3.0/NOTICE | 7 + .../eks-blueprints-addon/1.3.0/fixture.json | 39 + .../eks-blueprints-addon/1.3.0/input/main.tf | 275 + .../1.3.0/input/outputs.tf | 76 + .../1.3.0/input/variables.tf | 391 + .../1.3.0/input/versions.tf | 14 + .../eks-blueprints-addons/1.24.3/LICENSE | 201 + .../eks-blueprints-addons/1.24.3/NOTICE | 7 + .../eks-blueprints-addons/1.24.3/fixture.json | 45 + .../1.24.3/input/helm.tf | 50 + .../1.24.3/input/main.tf | 4114 +++++++++ .../1.24.3/input/outputs.tf | 291 + .../1.24.3/input/variables.tf | 633 ++ .../1.24.3/input/versions.tf | 26 + .../aws-ia/eks-blueprints-teams/1.1.0/LICENSE | 201 + .../aws-ia/eks-blueprints-teams/1.1.0/NOTICE | 7 + .../eks-blueprints-teams/1.1.0/fixture.json | 38 + .../eks-blueprints-teams/1.1.0/input/main.tf | 537 ++ .../1.1.0/input/outputs.tf | 45 + .../1.1.0/input/variables.tf | 164 + .../1.1.0/input/versions.tf | 14 + .../aws-ia/eks-data-addons/1.38.0/LICENSE | 201 + .../aws-ia/eks-data-addons/1.38.0/NOTICE | 7 + .../eks-data-addons/1.38.0/fixture.json | 40 + .../eks-data-addons/1.38.0/input/airflow.tf | 68 + .../1.38.0/input/aws-efa-k8s-device-plugin.tf | 77 + .../1.38.0/input/aws-neuron-device-plugin.tf | 62 + .../1.38.0/input/cnpg-operator.tf | 68 + .../eks-data-addons/1.38.0/input/dask-hub.tf | 69 + .../1.38.0/input/dask-operator.tf | 69 + .../1.38.0/input/emr-flink-operator.tf | 84 + .../1.38.0/input/emr-spark-operator.tf | 77 + .../1.38.0/input/flink-operator.tf | 66 + .../eks-data-addons/1.38.0/input/irsa/main.tf | 92 + .../1.38.0/input/irsa/outputs.tf | 19 + .../1.38.0/input/irsa/variables.tf | 89 + .../1.38.0/input/irsa/versions.tf | 10 + .../1.38.0/input/jupyterhub.tf | 65 + .../1.38.0/input/karpenter-resources.tf | 61 + .../eks-data-addons/1.38.0/input/kubecost.tf | 66 + .../1.38.0/input/kuberay-operator.tf | 61 + .../eks-data-addons/1.38.0/input/main.tf | 26 + .../1.38.0/input/mlflow-tracking.tf | 62 + .../1.38.0/input/nvidia-device-plugin.tf | 82 + .../1.38.0/input/nvidia-gpu-operator.tf | 62 + .../1.38.0/input/nvidia-triton-server.tf | 62 + .../eks-data-addons/1.38.0/input/outputs.tf | 84 + .../eks-data-addons/1.38.0/input/pinot.tf | 68 + .../eks-data-addons/1.38.0/input/qdrant.tf | 105 + .../1.38.0/input/spark-history-server.tf | 124 + .../1.38.0/input/spark-operator.tf | 68 + .../1.38.0/input/strimzi-kafka-operator.tf | 62 + .../eks-data-addons/1.38.0/input/superset.tf | 68 + .../eks-data-addons/1.38.0/input/trino.tf | 68 + .../eks-data-addons/1.38.0/input/variables.tf | 393 + .../eks-data-addons/1.38.0/input/versions.tf | 14 + .../eks-data-addons/1.38.0/input/volcano.tf | 71 + .../eks-data-addons/1.38.0/input/yunikorn.tf | 66 + .../eks-data-addons/1.38.0/irsa/LICENSE | 201 + .../aws-ia/eks-data-addons/1.38.0/irsa/NOTICE | 7 + .../eks-data-addons/1.38.0/irsa/fixture.json | 37 + .../eks-data-addons/1.38.0/irsa/input/main.tf | 92 + .../1.38.0/irsa/input/outputs.tf | 19 + .../1.38.0/irsa/input/variables.tf | 89 + .../1.38.0/irsa/input/versions.tf | 10 + .../aws-ia/iam-identity-center/1.0.4/LICENSE | 201 + .../aws-ia/iam-identity-center/1.0.4/NOTICE | 7 + .../iam-identity-center/1.0.4/fixture.json | 39 + .../iam-identity-center/1.0.4/input/data.tf | 100 + .../iam-identity-center/1.0.4/input/locals.tf | 220 + .../iam-identity-center/1.0.4/input/main.tf | 334 + .../1.0.4/input/outputs.tf | 31 + .../1.0.4/input/providers.tf | 13 + .../1.0.4/input/variables.tf | 174 + .../registry/aws-ia/ipam/2.1.2/LICENSE | 201 + .../registry/aws-ia/ipam/2.1.2/NOTICE | 7 + .../registry/aws-ia/ipam/2.1.2/fixture.json | 40 + .../registry/aws-ia/ipam/2.1.2/input/main.tf | 124 + .../ipam/2.1.2/input/modules/sub_pool/main.tf | 75 + .../2.1.2/input/modules/sub_pool/outputs.tf | 9 + .../2.1.2/input/modules/sub_pool/providers.tf | 9 + .../2.1.2/input/modules/sub_pool/variables.tf | 76 + .../aws-ia/ipam/2.1.2/input/outputs.tf | 34 + .../aws-ia/ipam/2.1.2/input/providers.tf | 9 + .../aws-ia/ipam/2.1.2/input/variables.tf | 137 + .../ipam/2.1.2/modules/sub_pool/LICENSE | 201 + .../aws-ia/ipam/2.1.2/modules/sub_pool/NOTICE | 7 + .../ipam/2.1.2/modules/sub_pool/fixture.json | 36 + .../ipam/2.1.2/modules/sub_pool/input/main.tf | 75 + .../2.1.2/modules/sub_pool/input/outputs.tf | 9 + .../2.1.2/modules/sub_pool/input/providers.tf | 9 + .../2.1.2/modules/sub_pool/input/variables.tf | 76 + .../label/0.0.6/internal/modules/aws/LICENSE | 202 + .../label/0.0.6/internal/modules/aws/NOTICE | 7 + .../0.0.6/internal/modules/aws/fixture.json | 27 + .../0.0.6/internal/modules/aws/input/main.tf | 29 + .../registry/aws-ia/mwaa/0.0.8/LICENSE | 201 + .../registry/aws-ia/mwaa/0.0.8/NOTICE | 7 + .../registry/aws-ia/mwaa/0.0.8/fixture.json | 38 + .../registry/aws-ia/mwaa/0.0.8/input/data.tf | 204 + .../aws-ia/mwaa/0.0.8/input/locals.tf | 19 + .../registry/aws-ia/mwaa/0.0.8/input/main.tf | 196 + .../aws-ia/mwaa/0.0.8/input/outputs.tf | 44 + .../aws-ia/mwaa/0.0.8/input/variables.tf | 298 + .../aws-ia/mwaa/0.0.8/input/versions.tf | 10 + .../aws-ia/networkfirewall/1.0.2/LICENSE | 201 + .../aws-ia/networkfirewall/1.0.2/NOTICE | 7 + .../central_inspection_with_egress/LICENSE | 201 + .../central_inspection_with_egress/NOTICE | 7 + .../fixture.json | 33 + .../input/main.tf | 67 + .../input/outputs.tf | 16 + .../input/policy.tf | 127 + .../input/providers.tf | 16 + .../input/variables.tf | 37 + .../central_inspection_without_egress/LICENSE | 201 + .../central_inspection_without_egress/NOTICE | 7 + .../fixture.json | 33 + .../input/main.tf | 57 + .../input/outputs.tf | 16 + .../input/policy.tf | 146 + .../input/providers.tf | 16 + .../input/variables.tf | 26 + .../examples/intra_vpc_inspection/LICENSE | 201 + .../examples/intra_vpc_inspection/NOTICE | 7 + .../intra_vpc_inspection/fixture.json | 34 + .../intra_vpc_inspection/input/main.tf | 79 + .../intra_vpc_inspection/input/outputs.tf | 11 + .../intra_vpc_inspection/input/policy.tf | 146 + .../intra_vpc_inspection/input/providers.tf | 16 + .../intra_vpc_inspection/input/variables.tf | 29 + .../aws-ia/networkfirewall/1.0.2/fixture.json | 39 + .../networkfirewall/1.0.2/input/main.tf | 124 + .../main.tf | 9 + .../outputs.tf | 1 + .../providers.tf | 11 + .../variables.tf | 18 + .../input/modules/intra_vpc_routing/main.tf | 9 + .../modules/intra_vpc_routing/outputs.tf | 1 + .../modules/intra_vpc_routing/providers.tf | 11 + .../modules/intra_vpc_routing/variables.tf | 28 + .../1.0.2/input/modules/logging/main.tf | 56 + .../1.0.2/input/modules/logging/outputs.tf | 1 + .../1.0.2/input/modules/logging/providers.tf | 11 + .../1.0.2/input/modules/logging/variables.tf | 11 + .../networkfirewall/1.0.2/input/moved.tf | 67 + .../networkfirewall/1.0.2/input/outputs.tf | 6 + .../networkfirewall/1.0.2/input/providers.tf | 11 + .../networkfirewall/1.0.2/input/variables.tf | 219 + .../LICENSE | 201 + .../NOTICE | 7 + .../fixture.json | 29 + .../input/main.tf | 9 + .../input/outputs.tf | 1 + .../input/providers.tf | 11 + .../input/variables.tf | 18 + .../1.0.2/modules/intra_vpc_routing/LICENSE | 201 + .../1.0.2/modules/intra_vpc_routing/NOTICE | 7 + .../modules/intra_vpc_routing/fixture.json | 29 + .../modules/intra_vpc_routing/input/main.tf | 9 + .../intra_vpc_routing/input/outputs.tf | 1 + .../intra_vpc_routing/input/providers.tf | 11 + .../intra_vpc_routing/input/variables.tf | 28 + .../1.0.2/modules/logging/LICENSE | 201 + .../1.0.2/modules/logging/NOTICE | 7 + .../1.0.2/modules/logging/fixture.json | 32 + .../1.0.2/modules/logging/input/main.tf | 56 + .../1.0.2/modules/logging/input/outputs.tf | 1 + .../1.0.2/modules/logging/input/providers.tf | 11 + .../1.0.2/modules/logging/input/variables.tf | 11 + .../registry/aws-ia/vpc/4.9.0/LICENSE | 201 + .../fixtures/registry/aws-ia/vpc/4.9.0/NOTICE | 7 + .../registry/aws-ia/vpc/4.9.0/fixture.json | 41 + .../registry/aws-ia/vpc/4.9.0/input/data.tf | 196 + .../registry/aws-ia/vpc/4.9.0/input/main.tf | 578 ++ .../input/modules/calculate_subnets/main.tf | 55 + .../modules/calculate_subnets/outputs.tf | 9 + .../modules/calculate_subnets/providers.tf | 9 + .../modules/calculate_subnets/variables.tf | 20 + .../modules/calculate_subnets_ipv6/main.tf | 28 + .../modules/calculate_subnets_ipv6/outputs.tf | 4 + .../calculate_subnets_ipv6/providers.tf | 13 + .../calculate_subnets_ipv6/variables.tf | 14 + .../vpc/4.9.0/input/modules/flow_logs/main.tf | 109 + .../flow_logs/modules/s3_log_bucket/main.tf | 48 + .../modules/s3_log_bucket/outputs.tf | 4 + .../modules/s3_log_bucket/providers.tf | 9 + .../modules/s3_log_bucket/variables.tf | 10 + .../4.9.0/input/modules/flow_logs/outputs.tf | 4 + .../input/modules/flow_logs/providers.tf | 9 + .../input/modules/flow_logs/variables.tf | 26 + .../aws-ia/vpc/4.9.0/input/outputs.tf | 348 + .../aws-ia/vpc/4.9.0/input/providers.tf | 9 + .../aws-ia/vpc/4.9.0/input/variables.tf | 489 + .../4.9.0/modules/calculate_subnets/LICENSE | 201 + .../4.9.0/modules/calculate_subnets/NOTICE | 7 + .../modules/calculate_subnets/fixture.json | 33 + .../modules/calculate_subnets/input/main.tf | 55 + .../calculate_subnets/input/outputs.tf | 9 + .../calculate_subnets/input/providers.tf | 9 + .../calculate_subnets/input/variables.tf | 20 + .../modules/calculate_subnets_ipv6/LICENSE | 201 + .../modules/calculate_subnets_ipv6/NOTICE | 7 + .../calculate_subnets_ipv6/fixture.json | 31 + .../calculate_subnets_ipv6/input/main.tf | 28 + .../calculate_subnets_ipv6/input/outputs.tf | 4 + .../calculate_subnets_ipv6/input/providers.tf | 13 + .../calculate_subnets_ipv6/input/variables.tf | 14 + .../vpc/4.9.0/modules/flow_logs/LICENSE | 201 + .../aws-ia/vpc/4.9.0/modules/flow_logs/NOTICE | 7 + .../vpc/4.9.0/modules/flow_logs/fixture.json | 37 + .../vpc/4.9.0/modules/flow_logs/input/main.tf | 109 + .../input/modules/s3_log_bucket/main.tf | 48 + .../input/modules/s3_log_bucket/outputs.tf | 4 + .../input/modules/s3_log_bucket/providers.tf | 9 + .../input/modules/s3_log_bucket/variables.tf | 10 + .../4.9.0/modules/flow_logs/input/outputs.tf | 4 + .../modules/flow_logs/input/providers.tf | 9 + .../modules/flow_logs/input/variables.tf | 26 + .../flow_logs/modules/s3_log_bucket/LICENSE | 201 + .../flow_logs/modules/s3_log_bucket/NOTICE | 7 + .../modules/s3_log_bucket/fixture.json | 30 + .../modules/s3_log_bucket/input/main.tf | 48 + .../modules/s3_log_bucket/input/outputs.tf | 4 + .../modules/s3_log_bucket/input/providers.tf | 9 + .../modules/s3_log_bucket/input/variables.tf | 10 + .../aws-ss/wafv2/4.4.0/modules/ip-set/LICENSE | 201 + .../wafv2/4.4.0/modules/ip-set/fixture.json | 29 + .../wafv2/4.4.0/modules/ip-set/input/main.tf | 9 + .../4.4.0/modules/ip-set/input/outputs.tf | 14 + .../4.4.0/modules/ip-set/input/variables.tf | 37 + .../4.4.0/modules/ip-set/input/versions.tf | 10 + .../wafv2/4.4.0/modules/rule-group/LICENSE | 201 + .../4.4.0/modules/rule-group/fixture.json | 33 + .../4.4.0/modules/rule-group/input/main.tf | 8103 +++++++++++++++++ .../4.4.0/modules/rule-group/input/outputs.tf | 14 + .../modules/rule-group/input/variables.tf | 42 + .../modules/rule-group/input/versions.tf | 10 + .../acm-global-and-regional/2.0.1/LICENSE | 7 + .../2.0.1/fixture.json | 33 + .../2.0.1/input/main.tf | 62 + .../2.0.1/input/outputs.tf | 9 + .../2.0.1/input/variables.tf | 42 + .../2.0.1/input/versions.tf | 11 + .../registry/babbel/acm/2.0.2/LICENSE | 7 + .../registry/babbel/acm/2.0.2/fixture.json | 33 + .../registry/babbel/acm/2.0.2/input/main.tf | 34 + .../babbel/acm/2.0.2/input/outputs.tf | 4 + .../babbel/acm/2.0.2/input/variables.tf | 33 + .../babbel/acm/2.0.2/input/versions.tf | 10 + .../4.0.1/LICENSE | 7 + .../4.0.1/fixture.json | 32 + .../4.0.1/input/main.tf | 58 + .../4.0.1/input/outputs.tf | 9 + .../4.0.1/input/variables.tf | 84 + .../4.0.1/input/versions.tf | 10 + .../registry/babbel/athena/4.1.1/LICENSE | 7 + .../registry/babbel/athena/4.1.1/fixture.json | 35 + .../babbel/athena/4.1.1/input/main.tf | 75 + .../babbel/athena/4.1.1/input/outputs.tf | 11 + .../babbel/athena/4.1.1/input/variables.tf | 78 + .../babbel/athena/4.1.1/input/versions.tf | 10 + .../babbel/cloudfront-bucket/2.2.0/LICENSE | 7 + .../cloudfront-bucket/2.2.0/fixture.json | 38 + .../cloudfront-bucket/2.2.0/input/bucket.tf | 42 + .../2.2.0/input/cloudfront.tf | 144 + .../cloudfront-bucket/2.2.0/input/outputs.tf | 11 + .../2.2.0/input/variables.tf | 259 + .../cloudfront-bucket/2.2.0/input/versions.tf | 10 + .../5.0.0/LICENSE | 7 + .../5.0.0/fixture.json | 36 + .../5.0.0/input/main.tf | 75 + .../5.0.0/input/outputs.tf | 7 + .../5.0.0/input/variables.tf | 168 + .../5.0.0/input/versions.tf | 10 + .../2.1.2/LICENSE | 7 + .../2.1.2/fixture.json | 35 + .../2.1.2/input/main.tf | 42 + .../2.1.2/input/outputs.tf | 11 + .../2.1.2/input/variables.tf | 68 + .../2.1.2/input/versions.tf | 10 + .../3.0.1/LICENSE | 7 + .../3.0.1/fixture.json | 33 + .../3.0.1/input/main.tf | 15 + .../3.0.1/input/outputs.tf | 5 + .../3.0.1/input/variables.tf | 36 + .../3.0.1/input/versions.tf | 14 + .../babbel/ses-sending-domain/2.2.0/LICENSE | 7 + .../ses-sending-domain/2.2.0/fixture.json | 35 + .../ses-sending-domain/2.2.0/input/dkim.tf | 16 + .../2.2.0/input/notifications.tf | 20 + .../ses-sending-domain/2.2.0/input/outputs.tf | 15 + .../ses-sending-domain/2.2.0/input/ses.tf | 9 + .../ses-sending-domain/2.2.0/input/spf.tf | 12 + .../2.2.0/input/variables.tf | 54 + .../2.2.0/input/versions.tf | 10 + .../babbel/sns-to-rollbar/2.0.1/LICENSE | 7 + .../babbel/sns-to-rollbar/2.0.1/fixture.json | 34 + .../babbel/sns-to-rollbar/2.0.1/input/main.tf | 371 + .../sns-to-rollbar/2.0.1/input/outputs.tf | 7 + .../sns-to-rollbar/2.0.1/input/variables.tf | 106 + .../sns-to-rollbar/2.0.1/input/versions.tf | 10 + .../babbel/wafv2-dashboard/1.2.0/LICENSE | 7 + .../babbel/wafv2-dashboard/1.2.0/fixture.json | 33 + .../wafv2-dashboard/1.2.0/input/main.tf | 187 + .../wafv2-dashboard/1.2.0/input/variables.tf | 43 + .../wafv2-dashboard/1.2.0/input/versions.tf | 10 + .../fargate-scheduled-task/2.0.3/LICENSE | 21 + .../fargate-scheduled-task/2.0.3/fixture.json | 31 + .../2.0.3/input/main.tf | 67 + .../2.0.3/input/variables.tf | 58 + .../2.0.3/input/versions.tf | 3 + .../baikonur-oss/iam-nofile/2.0.0/LICENSE | 21 + .../iam-nofile/2.0.0/fixture.json | 30 + .../iam-nofile/2.0.0/input/main.tf | 29 + .../iam-nofile/2.0.0/input/output.tf | 9 + .../iam-nofile/2.0.0/input/variables.tf | 14 + .../iam-nofile/2.0.0/input/versions.tf | 3 + .../bbeesley/lambda-do-it-all/4.1.4/LICENSE | 11 + .../lambda-do-it-all/4.1.4/fixture.json | 39 + .../lambda-do-it-all/4.1.4/input/locals.tf | 102 + .../lambda-do-it-all/4.1.4/input/main.tf | 125 + .../lambda-do-it-all/4.1.4/input/outputs.tf | 34 + .../lambda-do-it-all/4.1.4/input/variables.tf | 183 + .../lambda-do-it-all/4.1.4/input/versions.tf | 10 + .../registry/boldlink/acm/1.0.1/LICENSE | 201 + .../registry/boldlink/acm/1.0.1/fixture.json | 35 + .../registry/boldlink/acm/1.0.1/input/data.tf | 3 + .../boldlink/acm/1.0.1/input/locals.tf | 1 + .../registry/boldlink/acm/1.0.1/input/main.tf | 42 + .../boldlink/acm/1.0.1/input/outputs.tf | 69 + .../boldlink/acm/1.0.1/input/variables.tf | 51 + .../boldlink/acm/1.0.1/input/versions.tf | 10 + .../boldlink/autoscaling/2.2.0/LICENSE | 201 + .../boldlink/autoscaling/2.2.0/fixture.json | 38 + .../boldlink/autoscaling/2.2.0/input/data.tf | 104 + .../autoscaling/2.2.0/input/locals.tf | 41 + .../boldlink/autoscaling/2.2.0/input/main.tf | 750 ++ .../autoscaling/2.2.0/input/outputs.tf | 73 + .../autoscaling/2.2.0/input/variables.tf | 552 ++ .../autoscaling/2.2.0/input/versions.tf | 25 + .../2.2.0/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 28 + .../tests/supportingResources/input/data.tf | 1 + .../tests/supportingResources/input/locals.tf | 4 + .../tests/supportingResources/input/main.tf | 26 + .../supportingResources/input/outputs.tf | 1 + .../supportingResources/input/variables.tf | 61 + .../supportingResources/input/versions.tf | 9 + .../registry/boldlink/budget/1.0.2/LICENSE | 201 + .../boldlink/budget/1.0.2/fixture.json | 33 + .../boldlink/budget/1.0.2/input/locals.tf | 1 + .../boldlink/budget/1.0.2/input/main.tf | 73 + .../boldlink/budget/1.0.2/input/outputs.tf | 9 + .../boldlink/budget/1.0.2/input/variables.tf | 81 + .../boldlink/budget/1.0.2/input/versions.tf | 10 + .../boldlink/client-vpn/1.0.3/LICENSE | 201 + .../boldlink/client-vpn/1.0.3/fixture.json | 40 + .../client-vpn/1.0.3/input/certificates.tf | 194 + .../boldlink/client-vpn/1.0.3/input/data.tf | 3 + .../boldlink/client-vpn/1.0.3/input/locals.tf | 41 + .../boldlink/client-vpn/1.0.3/input/main.tf | 116 + .../client-vpn/1.0.3/input/outputs.tf | 39 + .../client-vpn/1.0.3/input/variables.tf | 227 + .../client-vpn/1.0.3/input/versions.tf | 14 + .../1.0.3/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 28 + .../tests/supportingResources/input/locals.tf | 4 + .../tests/supportingResources/input/main.tf | 26 + .../supportingResources/input/outputs.tf | 1 + .../supportingResources/input/variables.tf | 61 + .../supportingResources/input/versions.tf | 10 + .../boldlink/cloudformation/1.1.2/LICENSE | 201 + .../cloudformation/1.1.2/fixture.json | 34 + .../cloudformation/1.1.2/input/data.tf | 1 + .../cloudformation/1.1.2/input/main.tf | 94 + .../cloudformation/1.1.2/input/outputs.tf | 108 + .../cloudformation/1.1.2/input/variables.tf | 238 + .../cloudformation/1.1.2/input/versions.tf | 10 + .../boldlink/cloudtrail/1.4.0/LICENSE | 201 + .../boldlink/cloudtrail/1.4.0/fixture.json | 37 + .../boldlink/cloudtrail/1.4.0/input/data.tf | 30 + .../boldlink/cloudtrail/1.4.0/input/locals.tf | 6 + .../boldlink/cloudtrail/1.4.0/input/main.tf | 95 + .../cloudtrail/1.4.0/input/outputs.tf | 19 + .../cloudtrail/1.4.0/input/variables.tf | 93 + .../cloudtrail/1.4.0/input/versions.tf | 10 + .../registry/boldlink/docdb/1.3.2/LICENSE | 201 + .../boldlink/docdb/1.3.2/fixture.json | 36 + .../boldlink/docdb/1.3.2/input/main.tf | 121 + .../boldlink/docdb/1.3.2/input/outputs.tf | 75 + .../boldlink/docdb/1.3.2/input/variables.tf | 251 + .../boldlink/docdb/1.3.2/input/versions.tf | 10 + .../1.3.2/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 28 + .../tests/supportingResources/input/locals.tf | 4 + .../tests/supportingResources/input/main.tf | 26 + .../supportingResources/input/outputs.tf | 1 + .../supportingResources/input/variables.tf | 62 + .../supportingResources/input/versions.tf | 9 + .../registry/boldlink/dynamodb/1.2.0/LICENSE | 201 + .../boldlink/dynamodb/1.2.0/fixture.json | 37 + .../boldlink/dynamodb/1.2.0/input/data.tf | 77 + .../boldlink/dynamodb/1.2.0/input/locals.tf | 7 + .../boldlink/dynamodb/1.2.0/input/main.tf | 232 + .../boldlink/dynamodb/1.2.0/input/outputs.tf | 29 + .../dynamodb/1.2.0/input/variables.tf | 203 + .../boldlink/dynamodb/1.2.0/input/versions.tf | 10 + .../registry/boldlink/ec2/2.0.7/LICENSE | 201 + .../registry/boldlink/ec2/2.0.7/fixture.json | 38 + .../registry/boldlink/ec2/2.0.7/input/data.tf | 48 + .../boldlink/ec2/2.0.7/input/locals.tf | 39 + .../registry/boldlink/ec2/2.0.7/input/main.tf | 259 + .../boldlink/ec2/2.0.7/input/outputs.tf | 106 + .../boldlink/ec2/2.0.7/input/variables.tf | 295 + .../boldlink/ec2/2.0.7/input/versions.tf | 25 + .../2.0.7/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 28 + .../tests/supportingResources/input/data.tf | 1 + .../tests/supportingResources/input/locals.tf | 4 + .../tests/supportingResources/input/main.tf | 26 + .../supportingResources/input/outputs.tf | 1 + .../supportingResources/input/variables.tf | 61 + .../supportingResources/input/versions.tf | 9 + .../boldlink/ecr-registry/1.1.0/LICENSE | 201 + .../boldlink/ecr-registry/1.1.0/fixture.json | 34 + .../boldlink/ecr-registry/1.1.0/input/data.tf | 1 + .../ecr-registry/1.1.0/input/locals.tf | 1 + .../boldlink/ecr-registry/1.1.0/input/main.tf | 73 + .../ecr-registry/1.1.0/input/outputs.tf | 43 + .../ecr-registry/1.1.0/input/variables.tf | 66 + .../ecr-registry/1.1.0/input/versions.tf | 9 + .../registry/boldlink/ecr/2.0.0/LICENSE | 201 + .../registry/boldlink/ecr/2.0.0/fixture.json | 36 + .../registry/boldlink/ecr/2.0.0/input/main.tf | 21 + .../ecr/2.0.0/input/modules/private/main.tf | 36 + .../2.0.0/input/modules/private/outputs.tf | 19 + .../2.0.0/input/modules/private/variables.tf | 53 + .../2.0.0/input/modules/private/versions.tf | 11 + .../ecr/2.0.0/input/modules/public/main.tf | 26 + .../ecr/2.0.0/input/modules/public/outputs.tf | 19 + .../2.0.0/input/modules/public/variables.tf | 35 + .../2.0.0/input/modules/public/versions.tf | 11 + .../boldlink/ecr/2.0.0/input/outputs.tf | 39 + .../boldlink/ecr/2.0.0/input/variables.tf | 84 + .../boldlink/ecr/2.0.0/input/versions.tf | 11 + .../ecr/2.0.0/modules/private/LICENSE | 201 + .../ecr/2.0.0/modules/private/fixture.json | 35 + .../ecr/2.0.0/modules/private/input/main.tf | 36 + .../2.0.0/modules/private/input/outputs.tf | 19 + .../2.0.0/modules/private/input/variables.tf | 53 + .../2.0.0/modules/private/input/versions.tf | 11 + .../boldlink/ecr/2.0.0/modules/public/LICENSE | 201 + .../ecr/2.0.0/modules/public/fixture.json | 34 + .../ecr/2.0.0/modules/public/input/main.tf | 26 + .../ecr/2.0.0/modules/public/input/outputs.tf | 19 + .../2.0.0/modules/public/input/variables.tf | 35 + .../2.0.0/modules/public/input/versions.tf | 11 + .../boldlink/ecs-cluster/3.0.0/LICENSE | 201 + .../boldlink/ecs-cluster/3.0.0/fixture.json | 38 + .../boldlink/ecs-cluster/3.0.0/input/data.tf | 29 + .../boldlink/ecs-cluster/3.0.0/input/ec2.tf | 175 + .../ecs-cluster/3.0.0/input/locals.tf | 72 + .../boldlink/ecs-cluster/3.0.0/input/main.tf | 63 + .../ecs-cluster/3.0.0/input/outputs.tf | 35 + .../ecs-cluster/3.0.0/input/variables.tf | 392 + .../ecs-cluster/3.0.0/input/versions.tf | 10 + .../3.0.0/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 32 + .../tests/supportingResources/input/data.tf | 1 + .../tests/supportingResources/input/locals.tf | 4 + .../tests/supportingResources/input/main.tf | 30 + .../supportingResources/input/outputs.tf | 1 + .../supportingResources/input/variables.tf | 61 + .../supportingResources/input/versions.tf | 13 + .../boldlink/ecs-service/1.13.0/LICENSE | 201 + .../boldlink/ecs-service/1.13.0/fixture.json | 41 + .../boldlink/ecs-service/1.13.0/input/data.tf | 3 + .../ecs-service/1.13.0/input/locals.tf | 41 + .../boldlink/ecs-service/1.13.0/input/main.tf | 456 + .../ecs-service/1.13.0/input/outputs.tf | 82 + .../ecs-service/1.13.0/input/variables.tf | 542 ++ .../ecs-service/1.13.0/input/versions.tf | 14 + .../1.13.0/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 33 + .../tests/supportingResources/input/data.tf | 3 + .../tests/supportingResources/input/locals.tf | 42 + .../tests/supportingResources/input/main.tf | 64 + .../supportingResources/input/outputs.tf | 1 + .../supportingResources/input/variables.tf | 110 + .../supportingResources/input/versions.tf | 9 + .../registry/boldlink/efs/1.2.1/LICENSE | 201 + .../registry/boldlink/efs/1.2.1/fixture.json | 35 + .../boldlink/efs/1.2.1/input/locals.tf | 1 + .../registry/boldlink/efs/1.2.1/input/main.tf | 92 + .../boldlink/efs/1.2.1/input/outputs.tf | 74 + .../boldlink/efs/1.2.1/input/variables.tf | 123 + .../boldlink/efs/1.2.1/input/versions.tf | 10 + .../1.2.1/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 28 + .../tests/supportingResources/input/locals.tf | 3 + .../tests/supportingResources/input/main.tf | 19 + .../supportingResources/input/outputs.tf | 1 + .../supportingResources/input/variables.tf | 55 + .../supportingResources/input/versions.tf | 9 + .../registry/boldlink/eks/3.3.6/LICENSE | 201 + .../registry/boldlink/eks/3.3.6/fixture.json | 43 + .../registry/boldlink/eks/3.3.6/input/data.tf | 18 + .../boldlink/eks/3.3.6/input/locals.tf | 49 + .../registry/boldlink/eks/3.3.6/input/main.tf | 187 + .../input/modules/fargate-profile/data.tf | 1 + .../input/modules/fargate-profile/local.tf | 3 + .../input/modules/fargate-profile/main.tf | 39 + .../input/modules/fargate-profile/outputs.tf | 32 + .../modules/fargate-profile/variables.tf | 34 + .../input/modules/fargate-profile/versions.tf | 10 + .../input/modules/managed-node-group/data.tf | 16 + .../modules/managed-node-group/locals.tf | 4 + .../input/modules/managed-node-group/main.tf | 260 + .../modules/managed-node-group/outputs.tf | 37 + .../modules/managed-node-group/variables.tf | 278 + .../modules/managed-node-group/versions.tf | 19 + .../boldlink/eks/3.3.6/input/node_groups.tf | 64 + .../boldlink/eks/3.3.6/input/outputs.tf | 146 + .../boldlink/eks/3.3.6/input/variables.tf | 189 + .../boldlink/eks/3.3.6/input/versions.tf | 18 + .../eks/3.3.6/modules/fargate-profile/LICENSE | 201 + .../modules/fargate-profile/fixture.json | 35 + .../modules/fargate-profile/input/data.tf | 1 + .../modules/fargate-profile/input/local.tf | 3 + .../modules/fargate-profile/input/main.tf | 39 + .../modules/fargate-profile/input/outputs.tf | 32 + .../fargate-profile/input/variables.tf | 34 + .../modules/fargate-profile/input/versions.tf | 10 + .../3.3.6/modules/managed-node-group/LICENSE | 201 + .../modules/managed-node-group/fixture.json | 39 + .../modules/managed-node-group/input/data.tf | 16 + .../managed-node-group/input/locals.tf | 4 + .../modules/managed-node-group/input/main.tf | 260 + .../managed-node-group/input/outputs.tf | 37 + .../managed-node-group/input/variables.tf | 278 + .../managed-node-group/input/versions.tf | 19 + .../3.3.6/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 32 + .../tests/supportingResources/input/data.tf | 5 + .../tests/supportingResources/input/locals.tf | 102 + .../tests/supportingResources/input/main.tf | 60 + .../supportingResources/input/outputs.tf | 1 + .../supportingResources/input/settings.tf | 9 + .../supportingResources/input/variables.tf | 38 + .../registry/boldlink/elb/1.3.1/LICENSE | 201 + .../registry/boldlink/elb/1.3.1/fixture.json | 33 + .../registry/boldlink/elb/1.3.1/input/main.tf | 64 + .../boldlink/elb/1.3.1/input/outputs.tf | 44 + .../boldlink/elb/1.3.1/input/variables.tf | 101 + .../boldlink/elb/1.3.1/input/versions.tf | 10 + .../1.3.1/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 28 + .../tests/supportingResources/input/locals.tf | 4 + .../tests/supportingResources/input/main.tf | 25 + .../supportingResources/input/outputs.tf | 0 .../supportingResources/input/variables.tf | 55 + .../supportingResources/input/versions.tf | 9 + .../boldlink/event-bridge/1.0.1/LICENSE | 201 + .../boldlink/event-bridge/1.0.1/fixture.json | 33 + .../boldlink/event-bridge/1.0.1/input/main.tf | 156 + .../event-bridge/1.0.1/input/outputs.tf | 14 + .../event-bridge/1.0.1/input/variables.tf | 150 + .../event-bridge/1.0.1/input/versions.tf | 10 + .../1.0.1/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 35 + .../tests/supportingResources/input/data.tf | 14 + .../tests/supportingResources/input/locals.tf | 90 + .../tests/supportingResources/input/main.tf | 87 + .../supportingResources/input/outputs.tf | 4 + .../supportingResources/input/variables.tf | 166 + .../supportingResources/input/versions.tf | 10 + .../registry/boldlink/iam-group/1.1.0/LICENSE | 201 + .../boldlink/iam-group/1.1.0/fixture.json | 32 + .../boldlink/iam-group/1.1.0/input/main.tf | 25 + .../boldlink/iam-group/1.1.0/input/outputs.tf | 48 + .../iam-group/1.1.0/input/variables.tf | 34 + .../iam-group/1.1.0/input/versions.tf | 10 + .../boldlink/iam-policy/1.1.0/LICENSE | 201 + .../boldlink/iam-policy/1.1.0/fixture.json | 33 + .../boldlink/iam-policy/1.1.0/input/locals.tf | 3 + .../boldlink/iam-policy/1.1.0/input/main.tf | 20 + .../iam-policy/1.1.0/input/outputs.tf | 44 + .../iam-policy/1.1.0/input/variables.tf | 59 + .../iam-policy/1.1.0/input/versions.tf | 10 + .../registry/boldlink/iam-role/2.0.0/LICENSE | 201 + .../boldlink/iam-role/2.0.0/fixture.json | 33 + .../boldlink/iam-role/2.0.0/input/main.tf | 34 + .../boldlink/iam-role/2.0.0/input/outputs.tf | 59 + .../iam-role/2.0.0/input/variables.tf | 65 + .../boldlink/iam-role/2.0.0/input/versions.tf | 10 + .../registry/boldlink/iam-user/1.0.3/LICENSE | 201 + .../boldlink/iam-user/1.0.3/fixture.json | 31 + .../boldlink/iam-user/1.0.3/input/main.tf | 38 + .../boldlink/iam-user/1.0.3/input/outputs.tf | 40 + .../iam-user/1.0.3/input/variables.tf | 69 + .../boldlink/iam-user/1.0.3/input/versions.tf | 10 + .../registry/boldlink/kms/1.2.0/LICENSE | 201 + .../registry/boldlink/kms/1.2.0/fixture.json | 31 + .../registry/boldlink/kms/1.2.0/input/main.tf | 19 + .../boldlink/kms/1.2.0/input/outputs.tf | 20 + .../boldlink/kms/1.2.0/input/variables.tf | 73 + .../boldlink/kms/1.2.0/input/versions.tf | 9 + .../registry/boldlink/lambda/1.1.3/LICENSE | 201 + .../boldlink/lambda/1.1.3/fixture.json | 39 + .../boldlink/lambda/1.1.3/input/data.tf | 51 + .../boldlink/lambda/1.1.3/input/locals.tf | 38 + .../boldlink/lambda/1.1.3/input/main.tf | 230 + .../boldlink/lambda/1.1.3/input/outputs.tf | 155 + .../boldlink/lambda/1.1.3/input/variables.tf | 290 + .../boldlink/lambda/1.1.3/input/versions.tf | 10 + .../1.1.3/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 28 + .../tests/supportingResources/input/data.tf | 0 .../tests/supportingResources/input/locals.tf | 4 + .../tests/supportingResources/input/main.tf | 25 + .../supportingResources/input/outputs.tf | 1 + .../supportingResources/input/variables.tf | 56 + .../supportingResources/input/versions.tf | 9 + .../registry/boldlink/lb/1.1.6/LICENSE | 201 + .../registry/boldlink/lb/1.1.6/fixture.json | 37 + .../registry/boldlink/lb/1.1.6/input/main.tf | 264 + .../boldlink/lb/1.1.6/input/outputs.tf | 83 + .../boldlink/lb/1.1.6/input/variables.tf | 172 + .../boldlink/lb/1.1.6/input/versions.tf | 14 + .../1.1.6/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 28 + .../tests/supportingResources/input/locals.tf | 4 + .../tests/supportingResources/input/main.tf | 25 + .../supportingResources/input/outputs.tf | 0 .../supportingResources/input/variables.tf | 55 + .../supportingResources/input/versions.tf | 9 + .../boldlink/organizations/1.0.1/LICENSE | 201 + .../boldlink/organizations/1.0.1/fixture.json | 33 + .../organizations/1.0.1/input/data.tf | 1 + .../organizations/1.0.1/input/locals.tf | 1 + .../organizations/1.0.1/input/main.tf | 40 + .../organizations/1.0.1/input/outputs.tf | 194 + .../organizations/1.0.1/input/variables.tf | 109 + .../organizations/1.0.1/input/versions.tf | 10 + .../boldlink/rds-aurora/1.2.0/LICENSE | 201 + .../boldlink/rds-aurora/1.2.0/fixture.json | 38 + .../boldlink/rds-aurora/1.2.0/input/locals.tf | 3 + .../boldlink/rds-aurora/1.2.0/input/main.tf | 239 + .../rds-aurora/1.2.0/input/outputs.tf | 94 + .../rds-aurora/1.2.0/input/variables.tf | 499 + .../rds-aurora/1.2.0/input/versions.tf | 10 + .../1.2.0/modules/global-cluster/LICENSE | 201 + .../1.2.0/modules/global-cluster/fixture.json | 31 + .../modules/global-cluster/input/main.tf | 12 + .../modules/global-cluster/input/outputs.tf | 19 + .../modules/global-cluster/input/variables.tf | 54 + .../modules/global-cluster/input/versions.tf | 10 + .../1.2.0/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 28 + .../tests/supportingResources/input/data.tf | 0 .../tests/supportingResources/input/locals.tf | 15 + .../tests/supportingResources/input/main.tf | 23 + .../supportingResources/input/outputs.tf | 1 + .../supportingResources/input/variables.tf | 0 .../supportingResources/input/versions.tf | 9 + .../registry/boldlink/rds/1.4.1/LICENSE | 201 + .../registry/boldlink/rds/1.4.1/fixture.json | 36 + .../boldlink/rds/1.4.1/input/locals.tf | 3 + .../registry/boldlink/rds/1.4.1/input/main.tf | 192 + .../boldlink/rds/1.4.1/input/outputs.tf | 142 + .../boldlink/rds/1.4.1/input/variables.tf | 427 + .../boldlink/rds/1.4.1/input/versions.tf | 10 + .../1.4.1/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 28 + .../tests/supportingResources/input/locals.tf | 4 + .../tests/supportingResources/input/main.tf | 25 + .../supportingResources/input/outputs.tf | 1 + .../supportingResources/input/variables.tf | 61 + .../supportingResources/input/versions.tf | 9 + .../boldlink/route53-records/1.0.2/LICENSE | 201 + .../route53-records/1.0.2/fixture.json | 33 + .../route53-records/1.0.2/input/main.tf | 59 + .../route53-records/1.0.2/input/outputs.tf | 24 + .../route53-records/1.0.2/input/variables.tf | 89 + .../route53-records/1.0.2/input/versions.tf | 10 + .../1.0.2/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 28 + .../tests/supportingResources/input/locals.tf | 3 + .../tests/supportingResources/input/main.tf | 25 + .../supportingResources/input/outputs.tf | 1 + .../supportingResources/input/variables.tf | 61 + .../supportingResources/input/versions.tf | 9 + .../registry/boldlink/route53/1.1.3/LICENSE | 201 + .../boldlink/route53/1.1.3/fixture.json | 38 + .../boldlink/route53/1.1.3/input/data.tf | 19 + .../boldlink/route53/1.1.3/input/locals.tf | 5 + .../boldlink/route53/1.1.3/input/main.tf | 92 + .../boldlink/route53/1.1.3/input/outputs.tf | 19 + .../boldlink/route53/1.1.3/input/variables.tf | 54 + .../boldlink/route53/1.1.3/input/versions.tf | 15 + .../registry/boldlink/s3/2.6.0/LICENSE | 201 + .../registry/boldlink/s3/2.6.0/fixture.json | 38 + .../registry/boldlink/s3/2.6.0/input/data.tf | 137 + .../boldlink/s3/2.6.0/input/locals.tf | 7 + .../registry/boldlink/s3/2.6.0/input/main.tf | 382 + .../boldlink/s3/2.6.0/input/outputs.tf | 39 + .../boldlink/s3/2.6.0/input/variables.tf | 170 + .../boldlink/s3/2.6.0/input/versions.tf | 10 + .../registry/boldlink/scp/1.1.0/LICENSE | 201 + .../registry/boldlink/scp/1.1.0/fixture.json | 30 + .../registry/boldlink/scp/1.1.0/input/data.tf | 1 + .../boldlink/scp/1.1.0/input/locals.tf | 1 + .../registry/boldlink/scp/1.1.0/input/main.tf | 14 + .../boldlink/scp/1.1.0/input/outputs.tf | 14 + .../boldlink/scp/1.1.0/input/variables.tf | 32 + .../boldlink/scp/1.1.0/input/versions.tf | 9 + .../boldlink/secretsmanager/1.0.9/LICENSE | 201 + .../secretsmanager/1.0.9/fixture.json | 33 + .../secretsmanager/1.0.9/input/main.tf | 36 + .../secretsmanager/1.0.9/input/outputs.tf | 19 + .../secretsmanager/1.0.9/input/variables.tf | 89 + .../secretsmanager/1.0.9/input/versions.tf | 9 + .../registry/boldlink/sns/1.1.2/LICENSE | 201 + .../registry/boldlink/sns/1.1.2/fixture.json | 37 + .../registry/boldlink/sns/1.1.2/input/data.tf | 6 + .../boldlink/sns/1.1.2/input/locals.tf | 39 + .../registry/boldlink/sns/1.1.2/input/main.tf | 69 + .../boldlink/sns/1.1.2/input/outputs.tf | 62 + .../boldlink/sns/1.1.2/input/variables.tf | 184 + .../boldlink/sns/1.1.2/input/versions.tf | 10 + .../registry/boldlink/ssm/1.0.2/LICENSE | 201 + .../registry/boldlink/ssm/1.0.2/fixture.json | 35 + .../registry/boldlink/ssm/1.0.2/input/main.tf | 62 + .../boldlink/ssm/1.0.2/input/outputs.tf | 9 + .../boldlink/ssm/1.0.2/input/variables.tf | 142 + .../boldlink/ssm/1.0.2/input/versions.tf | 10 + .../1.0.2/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 28 + .../tests/supportingResources/input/data.tf | 1 + .../tests/supportingResources/input/locals.tf | 4 + .../tests/supportingResources/input/main.tf | 26 + .../supportingResources/input/outputs.tf | 1 + .../supportingResources/input/variables.tf | 61 + .../supportingResources/input/versions.tf | 9 + .../boldlink/vpc-endpoints/1.0.3/LICENSE | 201 + .../boldlink/vpc-endpoints/1.0.3/fixture.json | 37 + .../vpc-endpoints/1.0.3/input/data.tf | 3 + .../vpc-endpoints/1.0.3/input/locals.tf | 6 + .../vpc-endpoints/1.0.3/input/main.tf | 56 + .../vpc-endpoints/1.0.3/input/outputs.tf | 49 + .../vpc-endpoints/1.0.3/input/variables.tf | 28 + .../vpc-endpoints/1.0.3/input/versions.tf | 10 + .../1.0.3/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 28 + .../tests/supportingResources/input/locals.tf | 3 + .../tests/supportingResources/input/main.tf | 17 + .../supportingResources/input/outputs.tf | 1 + .../supportingResources/input/variables.tf | 44 + .../supportingResources/input/versions.tf | 9 + .../registry/boldlink/vpc/3.3.0/LICENSE | 201 + .../registry/boldlink/vpc/3.3.0/fixture.json | 40 + .../registry/boldlink/vpc/3.3.0/input/data.tf | 121 + .../boldlink/vpc/3.3.0/input/locals.tf | 16 + .../registry/boldlink/vpc/3.3.0/input/main.tf | 123 + .../boldlink/vpc/3.3.0/input/main_subnets.tf | 58 + .../vpc/3.3.0/input/modules/internal/main.tf | 43 + .../3.3.0/input/modules/internal/outputs.tf | 11 + .../3.3.0/input/modules/internal/variables.tf | 56 + .../3.3.0/input/modules/internal/versions.tf | 9 + .../vpc/3.3.0/input/modules/private/locals.tf | 3 + .../vpc/3.3.0/input/modules/private/main.tf | 55 + .../3.3.0/input/modules/private/outputs.tf | 11 + .../3.3.0/input/modules/private/variables.tf | 61 + .../3.3.0/input/modules/private/versions.tf | 9 + .../vpc/3.3.0/input/modules/public/locals.tf | 4 + .../vpc/3.3.0/input/modules/public/main.tf | 120 + .../vpc/3.3.0/input/modules/public/outputs.tf | 11 + .../3.3.0/input/modules/public/variables.tf | 88 + .../3.3.0/input/modules/public/versions.tf | 9 + .../boldlink/vpc/3.3.0/input/outputs.tf | 118 + .../boldlink/vpc/3.3.0/input/variables.tf | 217 + .../boldlink/vpc/3.3.0/input/versions.tf | 9 + .../vpc/3.3.0/modules/internal/LICENSE | 201 + .../vpc/3.3.0/modules/internal/fixture.json | 32 + .../vpc/3.3.0/modules/internal/input/main.tf | 43 + .../3.3.0/modules/internal/input/outputs.tf | 11 + .../3.3.0/modules/internal/input/variables.tf | 56 + .../3.3.0/modules/internal/input/versions.tf | 9 + .../vpc/3.3.0/modules/private/LICENSE | 201 + .../vpc/3.3.0/modules/private/fixture.json | 34 + .../vpc/3.3.0/modules/private/input/locals.tf | 3 + .../vpc/3.3.0/modules/private/input/main.tf | 55 + .../3.3.0/modules/private/input/outputs.tf | 11 + .../3.3.0/modules/private/input/variables.tf | 61 + .../3.3.0/modules/private/input/versions.tf | 9 + .../boldlink/vpc/3.3.0/modules/public/LICENSE | 201 + .../vpc/3.3.0/modules/public/fixture.json | 34 + .../vpc/3.3.0/modules/public/input/locals.tf | 4 + .../vpc/3.3.0/modules/public/input/main.tf | 120 + .../vpc/3.3.0/modules/public/input/outputs.tf | 11 + .../3.3.0/modules/public/input/variables.tf | 88 + .../3.3.0/modules/public/input/versions.tf | 9 + .../registry/boldlink/waf/1.2.0/LICENSE | 201 + .../registry/boldlink/waf/1.2.0/fixture.json | 35 + .../registry/boldlink/waf/1.2.0/input/data.tf | 1 + .../boldlink/waf/1.2.0/input/locals.tf | 1 + .../registry/boldlink/waf/1.2.0/input/main.tf | 482 + .../boldlink/waf/1.2.0/input/outputs.tf | 44 + .../boldlink/waf/1.2.0/input/settings.tf | 9 + .../boldlink/waf/1.2.0/input/variables.tf | 124 + .../1.2.0/tests/supportingResources/LICENSE | 201 + .../tests/supportingResources/fixture.json | 28 + .../tests/supportingResources/input/locals.tf | 3 + .../tests/supportingResources/input/main.tf | 18 + .../supportingResources/input/outputs.tf | 0 .../supportingResources/input/variables.tf | 55 + .../supportingResources/input/versions.tf | 9 + .../cattle-ops/gitlab-runner/9.6.0/LICENSE | 21 + .../gitlab-runner/9.6.0/fixture.json | 46 + .../gitlab-runner/9.6.0/input/data.tf | 61 + .../9.6.0/input/docker_autoscaler.tf | 217 + .../9.6.0/input/docker_autoscaler_policy.tf | 48 + .../input/docker_autoscaler_security_group.tf | 69 + .../9.6.0/input/docker_machine.tf | 44 + .../9.6.0/input/docker_machine_fleet.tf | 80 + .../9.6.0/input/docker_machine_policy.tf | 54 + .../input/docker_machine_security_group.tf | 190 + .../gitlab-runner/9.6.0/input/kms.tf | 21 + .../gitlab-runner/9.6.0/input/locals.tf | 118 + .../gitlab-runner/9.6.0/input/logging.tf | 29 + .../gitlab-runner/9.6.0/input/main.tf | 408 + .../9.6.0/input/modules/cache/main.tf | 150 + .../9.6.0/input/modules/cache/outputs.tf | 15 + .../input/modules/cache/state_migration.tf | 4 + .../9.6.0/input/modules/cache/variables.tf | 105 + .../9.6.0/input/modules/cache/versions.tf | 10 + .../terminate-agent-hook/cloudwatch.tf | 43 + .../input/modules/terminate-agent-hook/iam.tf | 193 + .../modules/terminate-agent-hook/locals.tf | 6 + .../modules/terminate-agent-hook/main.tf | 117 + .../modules/terminate-agent-hook/outputs.tf | 23 + .../modules/terminate-agent-hook/variables.tf | 123 + .../modules/terminate-agent-hook/versions.tf | 10 + .../gitlab-runner/9.6.0/input/outputs.tf | 54 + .../9.6.0/input/runner_policy.tf | 174 + .../9.6.0/input/runner_security_group.tf | 104 + .../gitlab-runner/9.6.0/input/tags.tf | 44 + .../gitlab-runner/9.6.0/input/variables.tf | 1213 +++ .../gitlab-runner/9.6.0/input/versions.tf | 18 + .../gitlab-runner/9.6.0/modules/cache/LICENSE | 21 + .../9.6.0/modules/cache/fixture.json | 37 + .../9.6.0/modules/cache/input/main.tf | 150 + .../9.6.0/modules/cache/input/outputs.tf | 15 + .../modules/cache/input/state_migration.tf | 4 + .../9.6.0/modules/cache/input/variables.tf | 105 + .../9.6.0/modules/cache/input/versions.tf | 10 + .../modules/terminate-agent-hook/LICENSE | 21 + .../modules/terminate-agent-hook/fixture.json | 40 + .../terminate-agent-hook/input/cloudwatch.tf | 43 + .../modules/terminate-agent-hook/input/iam.tf | 193 + .../terminate-agent-hook/input/locals.tf | 6 + .../terminate-agent-hook/input/main.tf | 117 + .../terminate-agent-hook/input/outputs.tf | 23 + .../terminate-agent-hook/input/variables.tf | 123 + .../terminate-agent-hook/input/versions.tf | 10 + .../registry/chime/alternat/0.10.4/LICENSE | 21 + .../chime/alternat/0.10.4/fixture.json | 42 + .../chime/alternat/0.10.4/input/lambda.tf | 269 + .../chime/alternat/0.10.4/input/main.tf | 556 ++ .../chime/alternat/0.10.4/input/outputs.tf | 29 + .../chime/alternat/0.10.4/input/variables.tf | 313 + .../chime/alternat/0.10.4/input/versions.tf | 14 + .../registry/clouddrove/kms/1.3.4/LICENSE | 201 + .../clouddrove/kms/1.3.4/fixture.json | 34 + .../clouddrove/kms/1.3.4/input/main.tf | 90 + .../clouddrove/kms/1.3.4/input/outputs.tf | 29 + .../clouddrove/kms/1.3.4/input/variables.tf | 155 + .../clouddrove/kms/1.3.4/input/versions.tf | 15 + .../acm-request-certificate/0.18.1/LICENSE | 201 + .../0.18.1/fixture.json | 39 + .../0.18.1/input/context.tf | 279 + .../0.18.1/input/main.tf | 58 + .../0.18.1/input/outputs.tf | 24 + .../0.18.1/input/variables.tf | 80 + .../0.18.1/input/versions.tf | 10 + .../cloudposse/alb-ingress/0.31.0/LICENSE | 201 + .../alb-ingress/0.31.0/fixture.json | 38 + .../alb-ingress/0.31.0/input/context.tf | 279 + .../alb-ingress/0.31.0/input/main.tf | 475 + .../alb-ingress/0.31.0/input/outputs.tf | 14 + .../alb-ingress/0.31.0/input/variables.tf | 310 + .../alb-ingress/0.31.0/input/versions.tf | 10 + .../0.17.0/LICENSE | 201 + .../0.17.0/fixture.json | 35 + .../0.17.0/input/context.tf | 279 + .../0.17.0/input/main.tf | 164 + .../0.17.0/input/outputs.tf | 49 + .../0.17.0/input/variables.tf | 93 + .../0.17.0/input/versions.tf | 11 + .../registry/cloudposse/alb/2.5.0/LICENSE | 201 + .../cloudposse/alb/2.5.0/fixture.json | 38 + .../cloudposse/alb/2.5.0/input/context.tf | 279 + .../cloudposse/alb/2.5.0/input/main.tf | 285 + .../cloudposse/alb/2.5.0/input/outputs.tf | 66 + .../alb/2.5.0/input/variables-deprecated.tf | 44 + .../cloudposse/alb/2.5.0/input/variables.tf | 451 + .../cloudposse/alb/2.5.0/input/versions.tf | 10 + .../cloudposse/api-gateway/0.9.1/LICENSE | 201 + .../cloudposse/api-gateway/0.9.1/fixture.json | 39 + .../api-gateway/0.9.1/input/context.tf | 279 + .../api-gateway/0.9.1/input/main.tf | 100 + .../api-gateway/0.9.1/input/outputs.tf | 43 + .../api-gateway/0.9.1/input/variables.tf | 159 + .../api-gateway/0.9.1/input/versions.tf | 10 + .../0.9.1/modules/account-settings/LICENSE | 201 + .../modules/account-settings/fixture.json | 36 + .../modules/account-settings/input/context.tf | 279 + .../modules/account-settings/input/main.tf | 53 + .../modules/account-settings/input/outputs.tf | 4 + .../account-settings/input/variables.tf | 17 + .../account-settings/input/versions.tf | 10 + .../registry/cloudposse/backup/1.3.0/LICENSE | 202 + .../cloudposse/backup/1.3.0/fixture.json | 40 + .../cloudposse/backup/1.3.0/input/context.tf | 279 + .../cloudposse/backup/1.3.0/input/main.tf | 188 + .../cloudposse/backup/1.3.0/input/outputs.tf | 34 + .../backup/1.3.0/input/variables.tf | 165 + .../cloudposse/backup/1.3.0/input/versions.tf | 10 + .../registry/cloudposse/budgets/0.8.1/LICENSE | 201 + .../cloudposse/budgets/0.8.1/fixture.json | 38 + .../cloudposse/budgets/0.8.1/input/context.tf | 279 + .../cloudposse/budgets/0.8.1/input/main.tf | 187 + .../cloudposse/budgets/0.8.1/input/outputs.tf | 49 + .../budgets/0.8.1/input/variables.tf | 75 + .../budgets/0.8.1/input/versions.tf | 10 + .../cloudposse/cloudfront-cdn/1.8.1/LICENSE | 201 + .../cloudfront-cdn/1.8.1/fixture.json | 37 + .../cloudfront-cdn/1.8.1/input/context.tf | 279 + .../cloudfront-cdn/1.8.1/input/main.tf | 355 + .../cloudfront-cdn/1.8.1/input/outputs.tf | 44 + .../cloudfront-cdn/1.8.1/input/variables.tf | 489 + .../cloudfront-cdn/1.8.1/input/versions.tf | 14 + .../cloudfront-s3-cdn/2.1.1/LICENSE | 201 + .../cloudfront-s3-cdn/2.1.1/fixture.json | 42 + .../cloudfront-s3-cdn/2.1.1/input/context.tf | 279 + .../2.1.1/input/deprecated.tf | 13 + .../cloudfront-s3-cdn/2.1.1/input/main.tf | 798 ++ .../cloudfront-s3-cdn/2.1.1/input/outputs.tf | 89 + .../2.1.1/input/variables.tf | 764 ++ .../cloudfront-s3-cdn/2.1.1/input/versions.tf | 18 + .../2.1.1/modules/lambda@edge/LICENSE | 201 + .../2.1.1/modules/lambda@edge/fixture.json | 42 + .../modules/lambda@edge/input/context.tf | 279 + .../2.1.1/modules/lambda@edge/input/main.tf | 99 + .../modules/lambda@edge/input/outputs.tf | 21 + .../modules/lambda@edge/input/package.tf | 23 + .../modules/lambda@edge/input/variables.tf | 69 + .../modules/lambda@edge/input/versions.tf | 22 + .../0.14.3/LICENSE | 226 + .../0.14.3/fixture.json | 39 + .../0.14.3/input/alarms.tf | 111 + .../0.14.3/input/context.tf | 279 + .../0.14.3/input/main.tf | 137 + .../0.14.3/input/outputs.tf | 14 + .../0.14.3/input/variables.tf | 70 + .../0.14.3/input/versions.tf | 10 + .../cloudtrail-s3-bucket/0.33.0/LICENSE | 201 + .../cloudtrail-s3-bucket/0.33.0/fixture.json | 37 + .../0.33.0/input/context.tf | 279 + .../cloudtrail-s3-bucket/0.33.0/input/main.tf | 147 + .../0.33.0/input/outputs.tf | 39 + .../0.33.0/input/variables.tf | 166 + .../0.33.0/input/versions.tf | 10 + .../cloudposse/cloudtrail/0.24.0/LICENSE | 201 + .../cloudposse/cloudtrail/0.24.0/fixture.json | 36 + .../cloudtrail/0.24.0/input/context.tf | 279 + .../cloudtrail/0.24.0/input/main.tf | 60 + .../cloudtrail/0.24.0/input/outputs.tf | 14 + .../cloudtrail/0.24.0/input/variables.tf | 106 + .../cloudtrail/0.24.0/input/versions.tf | 10 + .../cloudwatch-events/0.10.0/LICENSE | 201 + .../cloudwatch-events/0.10.0/fixture.json | 38 + .../cloudwatch-events/0.10.0/input/context.tf | 279 + .../cloudwatch-events/0.10.0/input/main.tf | 93 + .../cloudwatch-events/0.10.0/input/outputs.tf | 19 + .../0.10.0/input/variables-deprecated.tf | 5 + .../0.10.0/input/variables.tf | 48 + .../0.10.0/input/versions.tf | 10 + .../cloudposse/cloudwatch-logs/0.6.9/LICENSE | 226 + .../cloudwatch-logs/0.6.9/fixture.json | 37 + .../cloudwatch-logs/0.6.9/input/context.tf | 279 + .../cloudwatch-logs/0.6.9/input/iam.tf | 58 + .../cloudwatch-logs/0.6.9/input/main.tf | 27 + .../cloudwatch-logs/0.6.9/input/outputs.tf | 24 + .../cloudwatch-logs/0.6.9/input/variables.tf | 58 + .../cloudwatch-logs/0.6.9/input/versions.tf | 10 + .../cloudposse/code-deploy/0.2.3/LICENSE | 201 + .../cloudposse/code-deploy/0.2.3/fixture.json | 39 + .../code-deploy/0.2.3/input/context.tf | 279 + .../code-deploy/0.2.3/input/main.tf | 296 + .../code-deploy/0.2.3/input/outputs.tf | 24 + .../code-deploy/0.2.3/input/variables.tf | 195 + .../code-deploy/0.2.3/input/versions.tf | 14 + .../cloudposse/codebuild/2.0.2/LICENSE | 201 + .../cloudposse/codebuild/2.0.2/fixture.json | 41 + .../codebuild/2.0.2/input/context.tf | 279 + .../cloudposse/codebuild/2.0.2/input/main.tf | 542 ++ .../codebuild/2.0.2/input/outputs.tf | 39 + .../codebuild/2.0.2/input/variables.tf | 338 + .../codebuild/2.0.2/input/versions.tf | 14 + .../cloudposse/config-storage/1.0.2/LICENSE | 201 + .../config-storage/1.0.2/fixture.json | 35 + .../config-storage/1.0.2/input/context.tf | 279 + .../config-storage/1.0.2/input/main.tf | 114 + .../config-storage/1.0.2/input/outputs.tf | 29 + .../config-storage/1.0.2/input/variables.tf | 113 + .../config-storage/1.0.2/input/versions.tf | 10 + .../registry/cloudposse/config/2.0.0/LICENSE | 201 + .../cloudposse/config/2.0.0/fixture.json | 40 + .../cloudposse/config/2.0.0/input/context.tf | 279 + .../cloudposse/config/2.0.0/input/main.tf | 384 + .../cloudposse/config/2.0.0/input/outputs.tf | 54 + .../config/2.0.0/input/variables.tf | 284 + .../cloudposse/config/2.0.0/input/versions.tf | 15 + .../2.0.0/modules/cis-1-2-rules/LICENSE | 201 + .../2.0.0/modules/cis-1-2-rules/fixture.json | 35 + .../modules/cis-1-2-rules/input/context.tf | 279 + .../2.0.0/modules/cis-1-2-rules/input/main.tf | 60 + .../modules/cis-1-2-rules/input/outputs.tf | 4 + .../modules/cis-1-2-rules/input/variables.tf | 74 + .../modules/cis-1-2-rules/input/versions.tf | 15 + .../2.0.0/modules/conformance-pack/LICENSE | 201 + .../modules/conformance-pack/fixture.json | 37 + .../modules/conformance-pack/input/context.tf | 279 + .../modules/conformance-pack/input/main.tf | 19 + .../modules/conformance-pack/input/outputs.tf | 4 + .../conformance-pack/input/variables.tf | 16 + .../conformance-pack/input/versions.tf | 15 + .../datadog-integration/3.2.0/LICENSE | 201 + .../datadog-integration/3.2.0/fixture.json | 41 + .../3.2.0/input/context.tf | 279 + .../input/iam-policy-core-integration.tf | 51 + .../input/iam-policy-full-integration.tf | 280 + .../input/iam-policy-resource-collection.tf | 60 + .../3.2.0/input/iam-policy-security-audit.tf | 9 + .../datadog-integration/3.2.0/input/main.tf | 150 + .../3.2.0/input/outputs.tf | 19 + .../3.2.0/input/variables-deprecated.tf | 27 + .../3.2.0/input/variables.tf | 146 + .../3.2.0/input/versions.tf | 14 + .../datadog-lambda-forwarder/1.10.1/LICENSE | 201 + .../1.10.1/fixture.json | 42 + .../1.10.1/input/context.tf | 279 + .../1.10.1/input/lambda-log.tf | 292 + .../1.10.1/input/lambda-rds.tf | 145 + .../1.10.1/input/lambda-vpc-logs.tf | 144 + .../1.10.1/input/main.tf | 115 + .../1.10.1/input/outputs.tf | 29 + .../1.10.1/input/variables.tf | 348 + .../1.10.1/input/versions.tf | 14 + .../documentdb-cluster/1.1.0/LICENSE | 201 + .../documentdb-cluster/1.1.0/fixture.json | 40 + .../documentdb-cluster/1.1.0/input/context.tf | 279 + .../documentdb-cluster/1.1.0/input/main.tf | 201 + .../documentdb-cluster/1.1.0/input/outputs.tf | 60 + .../1.1.0/input/variables.tf | 266 + .../1.1.0/input/versions.tf | 14 + .../cloudposse/dynamic-subnets/3.1.1/LICENSE | 201 + .../dynamic-subnets/3.1.1/fixture.json | 42 + .../dynamic-subnets/3.1.1/input/context.tf | 279 + .../dynamic-subnets/3.1.1/input/main.tf | 421 + .../dynamic-subnets/3.1.1/input/moved.tf | 16 + .../3.1.1/input/nat-gateway.tf | 82 + .../3.1.1/input/nat-instance.tf | 142 + .../3.1.1/input/outputs-deprecated.tf | 4 + .../dynamic-subnets/3.1.1/input/outputs.tf | 154 + .../dynamic-subnets/3.1.1/input/private.tf | 148 + .../dynamic-subnets/3.1.1/input/public.tf | 160 + .../3.1.1/input/variables-deprecated.tf | 45 + .../dynamic-subnets/3.1.1/input/variables.tf | 634 ++ .../dynamic-subnets/3.1.1/input/versions.tf | 10 + .../dynamodb-autoscaler/0.16.0/LICENSE | 201 + .../dynamodb-autoscaler/0.16.0/fixture.json | 36 + .../0.16.0/input/context.tf | 279 + .../dynamodb-autoscaler/0.16.0/input/main.tf | 125 + .../0.16.0/input/outputs.tf | 9 + .../0.16.0/input/variables.tf | 99 + .../0.16.0/input/versions.tf | 14 + .../cloudposse/dynamodb/0.37.0/LICENSE | 201 + .../cloudposse/dynamodb/0.37.0/fixture.json | 38 + .../dynamodb/0.37.0/input/context.tf | 279 + .../cloudposse/dynamodb/0.37.0/input/main.tf | 171 + .../dynamodb/0.37.0/input/outputs.tf | 34 + .../dynamodb/0.37.0/input/variables.tf | 210 + .../dynamodb/0.37.0/input/versions.tf | 14 + .../ec2-autoscale-group/0.43.1/LICENSE | 201 + .../ec2-autoscale-group/0.43.1/fixture.json | 40 + .../0.43.1/input/autoscaling.tf | 91 + .../0.43.1/input/context.tf | 279 + .../ec2-autoscale-group/0.43.1/input/main.tf | 299 + .../0.43.1/input/outputs.tf | 69 + .../0.43.1/input/variables.tf | 528 ++ .../0.43.1/input/versions.tf | 10 + .../ec2-bastion-server/0.31.2/LICENSE | 201 + .../ec2-bastion-server/0.31.2/fixture.json | 39 + .../0.31.2/input/context.tf | 279 + .../ec2-bastion-server/0.31.2/input/iam.tf | 103 + .../ec2-bastion-server/0.31.2/input/main.tf | 111 + .../0.31.2/input/outputs.tf | 79 + .../0.31.2/input/variables.tf | 225 + .../0.31.2/input/versions.tf | 10 + .../cloudposse/ec2-client-vpn/2.0.0/LICENSE | 201 + .../ec2-client-vpn/2.0.0/fixture.json | 42 + .../ec2-client-vpn/2.0.0/input/context.tf | 279 + .../ec2-client-vpn/2.0.0/input/main.tf | 288 + .../ec2-client-vpn/2.0.0/input/outputs.tf | 61 + .../2.0.0/input/security_group_inputs.tf | 119 + .../2.0.0/input/variables-deprecated.tf | 8 + .../ec2-client-vpn/2.0.0/input/variables.tf | 209 + .../ec2-client-vpn/2.0.0/input/versions.tf | 14 + .../cloudposse/ec2-instance/2.0.0/LICENSE | 201 + .../ec2-instance/2.0.0/fixture.json | 41 + .../2.0.0/input/cloudwatch-alarm.tf | 34 + .../ec2-instance/2.0.0/input/context.tf | 279 + .../ec2-instance/2.0.0/input/eni.tf | 31 + .../ec2-instance/2.0.0/input/main.tf | 208 + .../ec2-instance/2.0.0/input/outputs.tf | 102 + .../2.0.0/input/security_group.tf | 12 + .../ec2-instance/2.0.0/input/ssm_patch.tf | 54 + .../ec2-instance/2.0.0/input/variables.tf | 449 + .../ec2-instance/2.0.0/input/versions.tf | 14 + .../registry/cloudposse/ecr/1.0.2/LICENSE | 201 + .../cloudposse/ecr/1.0.2/fixture.json | 40 + .../cloudposse/ecr/1.0.2/input/context.tf | 279 + .../cloudposse/ecr/1.0.2/input/main.tf | 452 + .../cloudposse/ecr/1.0.2/input/outputs.tf | 40 + .../cloudposse/ecr/1.0.2/input/variables.tf | 292 + .../cloudposse/ecr/1.0.2/input/versions.tf | 10 + .../modules/scanning_configuration/LICENSE | 201 + .../scanning_configuration/fixture.json | 37 + .../scanning_configuration/input/context.tf | 279 + .../scanning_configuration/input/main.tf | 19 + .../scanning_configuration/input/outputs.tf | 4 + .../scanning_configuration/input/variables.tf | 24 + .../scanning_configuration/input/versions.tf | 10 + .../ecs-alb-service-task/1.0.0/LICENSE | 201 + .../ecs-alb-service-task/1.0.0/fixture.json | 41 + .../1.0.0/input/context.tf | 279 + .../ecs-alb-service-task/1.0.0/input/main.tf | 1174 +++ .../1.0.0/input/outputs.tf | 83 + .../1.0.0/input/variables.tf | 668 ++ .../1.0.0/input/versions.tf | 10 + .../ecs-cloudwatch-autoscaling/1.0.0/LICENSE | 201 + .../1.0.0/fixture.json | 38 + .../1.0.0/input/context.tf | 279 + .../1.0.0/input/main.tf | 73 + .../1.0.0/input/outputs.tf | 9 + .../1.0.0/input/variables.tf | 61 + .../1.0.0/input/versions.tf | 9 + .../ecs-cloudwatch-sns-alarms/0.13.2/LICENSE | 201 + .../0.13.2/fixture.json | 35 + .../0.13.2/input/context.tf | 279 + .../0.13.2/input/main.tf | 154 + .../0.13.2/input/outputs.tf | 39 + .../0.13.2/input/variables.tf | 136 + .../0.13.2/input/versions.tf | 9 + .../cloudposse/ecs-cluster/2.0.1/LICENSE | 201 + .../cloudposse/ecs-cluster/2.0.1/fixture.json | 40 + .../ecs-cluster/2.0.1/input/context.tf | 279 + .../cloudposse/ecs-cluster/2.0.1/input/ec2.tf | 154 + .../cloudposse/ecs-cluster/2.0.1/input/iam.tf | 47 + .../ecs-cluster/2.0.1/input/main.tf | 80 + .../ecs-cluster/2.0.1/input/outputs.tf | 19 + .../ecs-cluster/2.0.1/input/variables.tf | 225 + .../ecs-cluster/2.0.1/input/versions.tf | 10 + .../ecs-codepipeline/0.34.2/LICENSE | 201 + .../ecs-codepipeline/0.34.2/fixture.json | 41 + .../ecs-codepipeline/0.34.2/input/context.tf | 279 + .../ecs-codepipeline/0.34.2/input/main.tf | 463 + .../ecs-codepipeline/0.34.2/input/outputs.tf | 69 + .../0.34.2/input/variables.tf | 218 + .../ecs-codepipeline/0.34.2/input/versions.tf | 14 + .../cloudposse/ecs-web-app/2.5.0/LICENSE | 201 + .../cloudposse/ecs-web-app/2.5.0/fixture.json | 39 + .../ecs-web-app/2.5.0/input/context.tf | 279 + .../ecs-web-app/2.5.0/input/main.tf | 371 + .../ecs-web-app/2.5.0/input/outputs.tf | 329 + .../ecs-web-app/2.5.0/input/variables.tf | 1165 +++ .../ecs-web-app/2.5.0/input/versions.tf | 10 + .../registry/cloudposse/efs/1.5.0/LICENSE | 202 + .../cloudposse/efs/1.5.0/fixture.json | 39 + .../cloudposse/efs/1.5.0/input/context.tf | 279 + .../cloudposse/efs/1.5.0/input/main.tf | 163 + .../cloudposse/efs/1.5.0/input/outputs.tf | 69 + .../efs/1.5.0/input/security_group_inputs.tf | 103 + .../efs/1.5.0/input/variables-deprecated.tf | 8 + .../cloudposse/efs/1.5.0/input/variables.tf | 167 + .../cloudposse/efs/1.5.0/input/versions.tf | 10 + .../cloudposse/eks-cluster/4.15.0/LICENSE | 201 + .../4.15.0/examples/obsolete-version2/LICENSE | 201 + .../examples/obsolete-version2/fixture.json | 34 + .../obsolete-version2/input/context.tf | 279 + .../examples/obsolete-version2/input/main.tf | 127 + .../obsolete-version2/input/outputs.tf | 74 + .../obsolete-version2/input/variables.tf | 148 + .../obsolete-version2/input/versions.tf | 29 + .../eks-cluster/4.15.0/fixture.json | 43 + .../eks-cluster/4.15.0/input/auth.tf | 144 + .../eks-cluster/4.15.0/input/capabilities.tf | 126 + .../eks-cluster/4.15.0/input/context.tf | 279 + .../eks-cluster/4.15.0/input/iam.tf | 117 + .../eks-cluster/4.15.0/input/main.tf | 352 + .../eks-cluster/4.15.0/input/outputs.tf | 124 + .../4.15.0/input/security-group.tf | 37 + .../eks-cluster/4.15.0/input/variables.tf | 603 ++ .../eks-cluster/4.15.0/input/versions.tf | 14 + .../eks-fargate-profile/1.3.1/LICENSE | 201 + .../eks-fargate-profile/1.3.1/fixture.json | 37 + .../1.3.1/input/context.tf | 279 + .../eks-fargate-profile/1.3.1/input/main.tf | 97 + .../1.3.1/input/outputs.tf | 38 + .../1.3.1/input/variables.tf | 71 + .../1.3.1/input/versions.tf | 10 + .../cloudposse/eks-iam-role/2.2.1/LICENSE | 201 + .../eks-iam-role/2.2.1/fixture.json | 37 + .../eks-iam-role/2.2.1/input/context.tf | 279 + .../eks-iam-role/2.2.1/input/main.tf | 125 + .../eks-iam-role/2.2.1/input/outputs.tf | 39 + .../eks-iam-role/2.2.1/input/variables.tf | 65 + .../eks-iam-role/2.2.1/input/versions.tf | 14 + .../cloudposse/eks-node-group/3.4.0/LICENSE | 201 + .../eks-node-group/3.4.0/fixture.json | 43 + .../eks-node-group/3.4.0/input/ami.tf | 124 + .../eks-node-group/3.4.0/input/context.tf | 279 + .../eks-node-group/3.4.0/input/iam.tf | 102 + .../3.4.0/input/launch-template.tf | 207 + .../eks-node-group/3.4.0/input/main.tf | 351 + .../eks-node-group/3.4.0/input/outputs.tf | 59 + .../3.4.0/input/security-group.tf | 43 + .../eks-node-group/3.4.0/input/userdata.tf | 104 + .../3.4.0/input/variables-deprecated.tf | 52 + .../eks-node-group/3.4.0/input/variables.tf | 501 + .../eks-node-group/3.4.0/input/versions.tf | 22 + .../0.13.0/LICENSE | 201 + .../0.13.0/fixture.json | 40 + .../0.13.0/input/context.tf | 279 + .../0.13.0/input/main.tf | 72 + .../0.13.0/input/outputs.tf | 19 + .../0.13.0/input/variables.tf | 47 + .../0.13.0/input/versions.tf | 15 + .../0.56.0/LICENSE | 201 + .../0.56.0/fixture.json | 42 + .../0.56.0/input/context.tf | 279 + .../0.56.0/input/main.tf | 1197 +++ .../0.56.0/input/outputs.tf | 104 + .../0.56.0/input/security-group-variables.tf | 85 + .../0.56.0/input/security-group.tf | 21 + .../0.56.0/input/variables.tf | 583 ++ .../0.56.0/input/versions.tf | 14 + .../elasticache-memcached/0.20.0/LICENSE | 201 + .../elasticache-memcached/0.20.0/fixture.json | 38 + .../0.20.0/input/context.tf | 279 + .../0.20.0/input/main.tf | 189 + .../0.20.0/input/outputs.tf | 39 + .../0.20.0/input/security-group-inputs.tf | 136 + .../0.20.0/input/variables-deprecated.tf | 28 + .../0.20.0/input/variables.tf | 137 + .../0.20.0/input/versions.tf | 14 + .../elasticache-redis/2.1.0/LICENSE | 202 + .../elasticache-redis/2.1.0/fixture.json | 40 + .../elasticache-redis/2.1.0/input/context.tf | 279 + .../elasticache-redis/2.1.0/input/main.tf | 341 + .../elasticache-redis/2.1.0/input/outputs.tf | 65 + .../2.1.0/input/security_group_inputs.tf | 166 + .../2.1.0/input/variables-deprecated.tf | 60 + .../2.1.0/input/variables.tf | 341 + .../elasticache-redis/2.1.0/input/versions.tf | 10 + .../cloudposse/elasticsearch/2.1.0/LICENSE | 202 + .../elasticsearch/2.1.0/fixture.json | 41 + .../elasticsearch/2.1.0/input/context.tf | 279 + .../2.1.0/input/elasticsearch_domain.tf | 146 + .../elasticsearch/2.1.0/input/main.tf | 232 + .../2.1.0/input/opensearch_domain.tf | 139 + .../elasticsearch/2.1.0/input/outputs.tf | 49 + .../elasticsearch/2.1.0/input/variables.tf | 511 ++ .../elasticsearch/2.1.0/input/versions.tf | 10 + .../global-accelerator/0.6.1/LICENSE | 201 + .../0.6.1/examples/modules/ecs/LICENSE | 201 + .../0.6.1/examples/modules/ecs/fixture.json | 31 + .../examples/modules/ecs/input/context.tf | 279 + .../0.6.1/examples/modules/ecs/input/main.tf | 120 + .../examples/modules/ecs/input/outputs.tf | 14 + .../examples/modules/ecs/input/variables.tf | 52 + .../global-accelerator/0.6.1/fixture.json | 38 + .../global-accelerator/0.6.1/input/context.tf | 279 + .../global-accelerator/0.6.1/input/main.tf | 45 + .../global-accelerator/0.6.1/input/outputs.tf | 24 + .../0.6.1/input/variables.tf | 43 + .../0.6.1/input/versions.tf | 10 + .../0.6.1/modules/endpoint-group/LICENSE | 201 + .../0.6.1/modules/endpoint-group/fixture.json | 39 + .../modules/endpoint-group/input/context.tf | 279 + .../modules/endpoint-group/input/main.tf | 43 + .../modules/endpoint-group/input/outputs.tf | 4 + .../modules/endpoint-group/input/variables.tf | 19 + .../modules/endpoint-group/input/versions.tf | 10 + .../registry/cloudposse/glue/0.4.0/LICENSE | 201 + .../cloudposse/glue/0.4.0/fixture.json | 29 + .../cloudposse/glue/0.4.0/input/context.tf | 279 + .../cloudposse/glue/0.4.0/input/versions.tf | 14 + .../modules/glue-catalog-database/LICENSE | 201 + .../glue-catalog-database/fixture.json | 37 + .../glue-catalog-database/input/context.tf | 279 + .../glue-catalog-database/input/main.tf | 39 + .../glue-catalog-database/input/outputs.tf | 14 + .../glue-catalog-database/input/variables.tf | 52 + .../glue-catalog-database/input/versions.tf | 10 + .../0.4.0/modules/glue-catalog-table/LICENSE | 201 + .../modules/glue-catalog-table/fixture.json | 38 + .../glue-catalog-table/input/context.tf | 279 + .../modules/glue-catalog-table/input/main.tf | 122 + .../glue-catalog-table/input/outputs.tf | 14 + .../glue-catalog-table/input/variables.tf | 165 + .../glue-catalog-table/input/versions.tf | 10 + .../0.4.0/modules/glue-connection/LICENSE | 201 + .../modules/glue-connection/fixture.json | 37 + .../modules/glue-connection/input/context.tf | 279 + .../modules/glue-connection/input/main.tf | 27 + .../modules/glue-connection/input/outputs.tf | 14 + .../glue-connection/input/variables.tf | 55 + .../modules/glue-connection/input/versions.tf | 10 + .../glue/0.4.0/modules/glue-crawler/LICENSE | 201 + .../0.4.0/modules/glue-crawler/fixture.json | 37 + .../modules/glue-crawler/input/context.tf | 279 + .../0.4.0/modules/glue-crawler/input/main.tf | 107 + .../modules/glue-crawler/input/outputs.tf | 14 + .../modules/glue-crawler/input/variables.tf | 153 + .../modules/glue-crawler/input/versions.tf | 10 + .../glue/0.4.0/modules/glue-job/LICENSE | 201 + .../glue/0.4.0/modules/glue-job/fixture.json | 37 + .../0.4.0/modules/glue-job/input/context.tf | 279 + .../glue/0.4.0/modules/glue-job/input/main.tf | 44 + .../0.4.0/modules/glue-job/input/outputs.tf | 14 + .../0.4.0/modules/glue-job/input/variables.tf | 110 + .../0.4.0/modules/glue-job/input/versions.tf | 10 + .../glue/0.4.0/modules/glue-registry/LICENSE | 201 + .../0.4.0/modules/glue-registry/fixture.json | 35 + .../modules/glue-registry/input/context.tf | 279 + .../0.4.0/modules/glue-registry/input/main.tf | 13 + .../modules/glue-registry/input/outputs.tf | 14 + .../modules/glue-registry/input/variables.tf | 11 + .../modules/glue-registry/input/versions.tf | 10 + .../glue/0.4.0/modules/glue-schema/LICENSE | 201 + .../0.4.0/modules/glue-schema/fixture.json | 35 + .../modules/glue-schema/input/context.tf | 279 + .../0.4.0/modules/glue-schema/input/main.tf | 17 + .../modules/glue-schema/input/outputs.tf | 34 + .../modules/glue-schema/input/variables.tf | 44 + .../modules/glue-schema/input/versions.tf | 10 + .../glue/0.4.0/modules/glue-trigger/LICENSE | 201 + .../0.4.0/modules/glue-trigger/fixture.json | 37 + .../modules/glue-trigger/input/context.tf | 279 + .../0.4.0/modules/glue-trigger/input/main.tf | 66 + .../modules/glue-trigger/input/outputs.tf | 14 + .../modules/glue-trigger/input/variables.tf | 95 + .../modules/glue-trigger/input/versions.tf | 10 + .../glue/0.4.0/modules/glue-workflow/LICENSE | 201 + .../0.4.0/modules/glue-workflow/fixture.json | 35 + .../modules/glue-workflow/input/context.tf | 279 + .../0.4.0/modules/glue-workflow/input/main.tf | 15 + .../modules/glue-workflow/input/outputs.tf | 14 + .../modules/glue-workflow/input/variables.tf | 23 + .../modules/glue-workflow/input/versions.tf | 10 + .../cloudposse/guardduty/1.0.0/LICENSE | 201 + .../cloudposse/guardduty/1.0.0/fixture.json | 38 + .../guardduty/1.0.0/input/context.tf | 279 + .../cloudposse/guardduty/1.0.0/input/main.tf | 205 + .../guardduty/1.0.0/input/outputs.tf | 14 + .../guardduty/1.0.0/input/variables.tf | 173 + .../guardduty/1.0.0/input/versions.tf | 10 + .../cloudposse/helm-release/0.10.1/LICENSE | 201 + .../helm-release/0.10.1/fixture.json | 39 + .../helm-release/0.10.1/input/context.tf | 279 + .../helm-release/0.10.1/input/main.tf | 151 + .../helm-release/0.10.1/input/outputs.tf | 48 + .../helm-release/0.10.1/input/variables.tf | 436 + .../helm-release/0.10.1/input/versions.tf | 15 + .../0.8.0/LICENSE | 201 + .../0.8.0/fixture.json | 30 + .../0.8.0/input/main.tf | 74 + .../0.8.0/input/outputs.tf | 4 + .../0.8.0/input/variables.tf | 5 + .../0.8.0/input/versions.tf | 10 + .../cloudposse/iam-policy/2.0.2/LICENSE | 201 + .../cloudposse/iam-policy/2.0.2/fixture.json | 39 + .../iam-policy/2.0.2/input/context.tf | 279 + .../cloudposse/iam-policy/2.0.2/input/main.tf | 109 + .../iam-policy/2.0.2/input/outputs.tf | 9 + .../2.0.2/input/variables-deprecated.tf | 65 + .../iam-policy/2.0.2/input/variables.tf | 89 + .../iam-policy/2.0.2/input/versions.tf | 15 + .../cloudposse/iam-role/1.0.0/LICENSE | 201 + .../cloudposse/iam-role/1.0.0/fixture.json | 38 + .../iam-role/1.0.0/input/context.tf | 279 + .../cloudposse/iam-role/1.0.0/input/main.tf | 92 + .../iam-role/1.0.0/input/outputs.tf | 24 + .../iam-role/1.0.0/input/variables.tf | 116 + .../iam-role/1.0.0/input/versions.tf | 10 + .../cloudposse/iam-s3-user/1.2.1/LICENSE | 201 + .../cloudposse/iam-s3-user/1.2.1/fixture.json | 37 + .../iam-s3-user/1.2.1/input/context.tf | 279 + .../iam-s3-user/1.2.1/input/main.tf | 36 + .../iam-s3-user/1.2.1/input/outputs.tf | 36 + .../iam-s3-user/1.2.1/input/variables.tf | 57 + .../iam-s3-user/1.2.1/input/versions.tf | 10 + .../cloudposse/iam-system-user/1.2.1/LICENSE | 201 + .../iam-system-user/1.2.1/fixture.json | 39 + .../iam-system-user/1.2.1/input/context.tf | 279 + .../iam-system-user/1.2.1/input/main.tf | 93 + .../iam-system-user/1.2.1/input/outputs.tf | 62 + .../iam-system-user/1.2.1/input/variables.tf | 70 + .../iam-system-user/1.2.1/input/versions.tf | 10 + .../cloudposse/inspector/0.4.0/LICENSE | 201 + .../cloudposse/inspector/0.4.0/fixture.json | 39 + .../inspector/0.4.0/input/context.tf | 279 + .../cloudposse/inspector/0.4.0/input/main.tf | 201 + .../inspector/0.4.0/input/outputs.tf | 19 + .../inspector/0.4.0/input/variables.tf | 58 + .../inspector/0.4.0/input/versions.tf | 10 + .../cloudposse/key-pair/0.20.0/LICENSE | 201 + .../cloudposse/key-pair/0.20.0/fixture.json | 39 + .../key-pair/0.20.0/input/context.tf | 279 + .../cloudposse/key-pair/0.20.0/input/main.tf | 58 + .../key-pair/0.20.0/input/outputs.tf | 29 + .../key-pair/0.20.0/input/variables.tf | 46 + .../key-pair/0.20.0/input/versions.tf | 22 + .../cloudposse/kinesis-stream/0.4.0/LICENSE | 201 + .../kinesis-stream/0.4.0/fixture.json | 37 + .../kinesis-stream/0.4.0/input/context.tf | 279 + .../kinesis-stream/0.4.0/input/main.tf | 31 + .../kinesis-stream/0.4.0/input/outputs.tf | 19 + .../kinesis-stream/0.4.0/input/variables.tf | 50 + .../kinesis-stream/0.4.0/input/versions.tf | 10 + .../cloudposse/kms-key/0.12.2/LICENSE | 201 + .../cloudposse/kms-key/0.12.2/fixture.json | 34 + .../kms-key/0.12.2/input/context.tf | 279 + .../cloudposse/kms-key/0.12.2/input/main.tf | 17 + .../kms-key/0.12.2/input/outputs.tf | 19 + .../kms-key/0.12.2/input/variables.tf | 47 + .../kms-key/0.12.2/input/versions.tf | 10 + .../cloudposse/lambda-function/0.6.1/LICENSE | 201 + .../lambda-function/0.6.1/fixture.json | 40 + .../lambda-function/0.6.1/input/context.tf | 279 + .../lambda-function/0.6.1/input/iam-role.tf | 100 + .../0.6.1/input/lambda-permissions.tf | 8 + .../lambda-function/0.6.1/input/main.tf | 109 + .../lambda-function/0.6.1/input/outputs.tf | 34 + .../lambda-function/0.6.1/input/variables.tf | 256 + .../lambda-function/0.6.1/input/versions.tf | 10 + .../cloudposse/lb-s3-bucket/0.20.0/LICENSE | 201 + .../lb-s3-bucket/0.20.0/fixture.json | 36 + .../lb-s3-bucket/0.20.0/input/context.tf | 279 + .../lb-s3-bucket/0.20.0/input/main.tf | 104 + .../lb-s3-bucket/0.20.0/input/outputs.tf | 24 + .../0.20.0/input/variables-deprecated.tf | 50 + .../lb-s3-bucket/0.20.0/input/variables.tf | 75 + .../lb-s3-bucket/0.20.0/input/versions.tf | 10 + .../cloudposse/mq-broker/3.6.0/LICENSE | 201 + .../cloudposse/mq-broker/3.6.0/fixture.json | 41 + .../mq-broker/3.6.0/input/context.tf | 279 + .../cloudposse/mq-broker/3.6.0/input/main.tf | 162 + .../mq-broker/3.6.0/input/outputs.tf | 110 + .../3.6.0/input/security-group-variables.tf | 142 + .../cloudposse/mq-broker/3.6.0/input/sg.tf | 72 + .../3.6.0/input/variables-deprecated.tf | 27 + .../mq-broker/3.6.0/input/variables.tf | 191 + .../mq-broker/3.6.0/input/versions.tf | 14 + .../msk-apache-kafka-cluster/2.6.0/LICENSE | 201 + .../2.6.0/fixture.json | 40 + .../2.6.0/input/context.tf | 279 + .../2.6.0/input/main.tf | 293 + .../2.6.0/input/outputs.tf | 114 + .../2.6.0/input/security-group-variables.tf | 192 + .../2.6.0/input/variables.tf | 277 + .../2.6.0/input/versions.tf | 10 + .../multi-az-subnets/0.15.0/LICENSE | 201 + .../multi-az-subnets/0.15.0/fixture.json | 40 + .../multi-az-subnets/0.15.0/input/context.tf | 279 + .../multi-az-subnets/0.15.0/input/main.tf | 18 + .../multi-az-subnets/0.15.0/input/outputs.tf | 35 + .../multi-az-subnets/0.15.0/input/private.tf | 99 + .../multi-az-subnets/0.15.0/input/public.tf | 145 + .../0.15.0/input/variables.tf | 134 + .../multi-az-subnets/0.15.0/input/versions.tf | 18 + .../registry/cloudposse/mwaa/0.16.0/LICENSE | 201 + .../cloudposse/mwaa/0.16.0/fixture.json | 37 + .../cloudposse/mwaa/0.16.0/input/context.tf | 279 + .../cloudposse/mwaa/0.16.0/input/main.tf | 274 + .../cloudposse/mwaa/0.16.0/input/outputs.tf | 59 + .../0.16.0/input/security-group-variables.tf | 105 + .../cloudposse/mwaa/0.16.0/input/variables.tf | 224 + .../cloudposse/mwaa/0.16.0/input/versions.tf | 10 + .../registry/cloudposse/nlb/0.18.3/LICENSE | 201 + .../cloudposse/nlb/0.18.3/fixture.json | 40 + .../cloudposse/nlb/0.18.3/input/context.tf | 279 + .../cloudposse/nlb/0.18.3/input/main.tf | 231 + .../cloudposse/nlb/0.18.3/input/outputs.tf | 56 + .../nlb/0.18.3/input/variables-deprecated.tf | 44 + .../cloudposse/nlb/0.18.3/input/variables.tf | 349 + .../cloudposse/nlb/0.18.3/input/versions.tf | 10 + .../cloudposse/rds-cluster/2.6.0/LICENSE | 201 + .../cloudposse/rds-cluster/2.6.0/fixture.json | 42 + .../rds-cluster/2.6.0/input/context.tf | 279 + .../2.6.0/input/enhanced-monitoring.tf | 45 + .../rds-cluster/2.6.0/input/main.tf | 528 ++ .../rds-cluster/2.6.0/input/outputs.tf | 106 + .../rds-cluster/2.6.0/input/variables.tf | 625 ++ .../rds-cluster/2.6.0/input/versions.tf | 18 + .../cloudposse/rds-db-proxy/1.1.1/LICENSE | 201 + .../rds-db-proxy/1.1.1/fixture.json | 39 + .../rds-db-proxy/1.1.1/input/context.tf | 279 + .../rds-db-proxy/1.1.1/input/iam.tf | 93 + .../rds-db-proxy/1.1.1/input/main.tf | 67 + .../rds-db-proxy/1.1.1/input/outputs.tf | 64 + .../rds-db-proxy/1.1.1/input/variables.tf | 135 + .../rds-db-proxy/1.1.1/input/versions.tf | 10 + .../registry/cloudposse/rds/1.3.0/LICENSE | 201 + .../cloudposse/rds/1.3.0/fixture.json | 39 + .../cloudposse/rds/1.3.0/input/context.tf | 279 + .../cloudposse/rds/1.3.0/input/main.tf | 260 + .../cloudposse/rds/1.3.0/input/outputs.tf | 54 + .../cloudposse/rds/1.3.0/input/variables.tf | 407 + .../cloudposse/rds/1.3.0/input/versions.tf | 10 + .../cloudposse/route53-alias/0.13.0/LICENSE | 201 + .../route53-alias/0.13.0/fixture.json | 37 + .../route53-alias/0.13.0/input/context.tf | 279 + .../route53-alias/0.13.0/input/main.tf | 36 + .../route53-alias/0.13.0/input/outputs.tf | 14 + .../route53-alias/0.13.0/input/variables.tf | 50 + .../route53-alias/0.13.0/input/versions.tf | 14 + .../route53-cluster-hostname/0.13.0/LICENSE | 201 + .../0.13.0/fixture.json | 36 + .../0.13.0/input/context.tf | 279 + .../0.13.0/input/main.tf | 22 + .../0.13.0/input/outputs.tf | 4 + .../0.13.0/input/variables.tf | 52 + .../0.13.0/input/versions.tf | 10 + .../route53-cluster-zone/0.16.1/LICENSE | 201 + .../route53-cluster-zone/0.16.1/fixture.json | 37 + .../0.16.1/input/context.tf | 279 + .../route53-cluster-zone/0.16.1/input/main.tf | 59 + .../0.16.1/input/outputs.tf | 29 + .../0.16.1/input/variables.tf | 46 + .../0.16.1/input/versions.tf | 10 + .../cloudposse/s3-bucket/4.15.0/LICENSE | 201 + .../cloudposse/s3-bucket/4.15.0/fixture.json | 44 + .../s3-bucket/4.15.0/input/context.tf | 279 + .../s3-bucket/4.15.0/input/lifecycle.tf | 248 + .../cloudposse/s3-bucket/4.15.0/input/main.tf | 671 ++ .../s3-bucket/4.15.0/input/outputs.tf | 98 + .../s3-bucket/4.15.0/input/replication.tf | 76 + .../4.15.0/input/variables-deprecated.tf | 37 + .../s3-bucket/4.15.0/input/variables.tf | 579 ++ .../s3-bucket/4.15.0/input/versions.tf | 14 + .../cloudposse/s3-log-storage/2.1.0/LICENSE | 201 + .../s3-log-storage/2.1.0/fixture.json | 38 + .../s3-log-storage/2.1.0/input/context.tf | 279 + .../s3-log-storage/2.1.0/input/main.tf | 58 + .../s3-log-storage/2.1.0/input/moved.tf | 27 + .../s3-log-storage/2.1.0/input/outputs.tf | 29 + .../2.1.0/input/sqs_notifications.tf | 58 + .../2.1.0/input/variables-deprecated.tf | 97 + .../s3-log-storage/2.1.0/input/variables.tf | 236 + .../s3-log-storage/2.1.0/input/versions.tf | 14 + .../cloudposse/security-group/2.2.0/LICENSE | 201 + .../security-group/2.2.0/fixture.json | 42 + .../security-group/2.2.0/input/context.tf | 279 + .../security-group/2.2.0/input/main.tf | 281 + .../security-group/2.2.0/input/normalize.tf | 165 + .../security-group/2.2.0/input/outputs.tf | 19 + .../security-group/2.2.0/input/variables.tf | 174 + .../security-group/2.2.0/input/versions.tf | 18 + .../cloudposse/security-hub/0.13.0/LICENSE | 201 + .../security-hub/0.13.0/fixture.json | 40 + .../security-hub/0.13.0/input/context.tf | 279 + .../security-hub/0.13.0/input/eventbridge.tf | 126 + .../security-hub/0.13.0/input/main.tf | 57 + .../security-hub/0.13.0/input/outputs.tf | 17 + .../security-hub/0.13.0/input/variables.tf | 128 + .../security-hub/0.13.0/input/versions.tf | 10 + .../modules/control-disablements/LICENSE | 201 + .../modules/control-disablements/fixture.json | 35 + .../control-disablements/input/context.tf | 202 + .../control-disablements/input/main.tf | 66 + .../control-disablements/input/outputs.tf | 4 + .../control-disablements/input/variables.tf | 9 + .../control-disablements/input/versions.tf | 10 + .../service-control-policies/0.16.0/LICENSE | 201 + .../0.16.0/fixture.json | 39 + .../0.16.0/input/context.tf | 279 + .../0.16.0/input/main.tf | 50 + .../0.16.0/input/outputs.tf | 9 + .../0.16.0/input/variables.tf | 15 + .../0.16.0/input/versions.tf | 14 + .../registry/cloudposse/ses/0.25.2/LICENSE | 201 + .../cloudposse/ses/0.25.2/fixture.json | 38 + .../cloudposse/ses/0.25.2/input/context.tf | 279 + .../cloudposse/ses/0.25.2/input/main.tf | 138 + .../cloudposse/ses/0.25.2/input/outputs.tf | 62 + .../cloudposse/ses/0.25.2/input/variables.tf | 111 + .../cloudposse/ses/0.25.2/input/versions.tf | 14 + .../sns-lambda-notify-slack/0.9.3/LICENSE | 201 + .../0.9.3/fixture.json | 30 + .../0.9.3/input/context.tf | 279 + .../0.9.3/input/main.tf | 24 + .../0.9.3/input/outputs.tf | 44 + .../0.9.3/input/variables.tf | 56 + .../0.9.3/input/versions.tf | 26 + .../0.2.0/LICENSE | 201 + .../0.2.0/fixture.json | 32 + .../0.2.0/input/main.tf | 14 + .../0.2.0/input/outputs.tf | 5 + .../0.2.0/input/variables.tf | 40 + .../0.2.0/input/versions.tf | 3 + .../ssm-parameter-store/0.13.0/LICENSE | 201 + .../ssm-parameter-store/0.13.0/fixture.json | 39 + .../0.13.0/input/context.tf | 279 + .../ssm-parameter-store/0.13.0/input/main.tf | 54 + .../0.13.0/input/outputs.tf | 39 + .../0.13.0/input/variables.tf | 36 + .../0.13.0/input/versions.tf | 10 + .../ssm-tls-self-signed-cert/1.3.0/LICENSE | 201 + .../1.3.0/fixture.json | 36 + .../1.3.0/input/acm.tf | 6 + .../1.3.0/input/asm.tf | 33 + .../1.3.0/input/context.tf | 279 + .../1.3.0/input/main.tf | 84 + .../1.3.0/input/outputs.tf | 19 + .../1.3.0/input/ssm.tf | 21 + .../1.3.0/input/variables.tf | 240 + .../1.3.0/input/versions.tf | 14 + .../ssm-tls-ssh-key-pair/0.10.2/LICENSE | 201 + .../ssm-tls-ssh-key-pair/0.10.2/fixture.json | 39 + .../0.10.2/input/context.tf | 279 + .../ssm-tls-ssh-key-pair/0.10.2/input/main.tf | 86 + .../0.10.2/input/outputs.tf | 19 + .../0.10.2/input/variables.tf | 53 + .../0.10.2/input/versions.tf | 22 + .../1.2.1/modules/account-assignments/LICENSE | 201 + .../modules/account-assignments/fixture.json | 39 + .../account-assignments/input/context.tf | 279 + .../modules/account-assignments/input/main.tf | 83 + .../account-assignments/input/outputs.tf | 5 + .../account-assignments/input/variables.tf | 33 + .../account-assignments/input/versions.tf | 14 + .../sso/1.2.1/modules/permission-sets/LICENSE | 201 + .../modules/permission-sets/fixture.json | 38 + .../modules/permission-sets/input/context.tf | 279 + .../modules/permission-sets/input/main.tf | 81 + .../modules/permission-sets/input/outputs.tf | 4 + .../permission-sets/input/variables.tf | 19 + .../modules/permission-sets/input/versions.tf | 10 + .../cloudposse/tfstate-backend/1.9.1/LICENSE | 201 + .../tfstate-backend/1.9.1/fixture.json | 42 + .../tfstate-backend/1.9.1/input/context.tf | 279 + .../tfstate-backend/1.9.1/input/main.tf | 310 + .../tfstate-backend/1.9.1/input/outputs.tf | 39 + .../1.9.1/input/replication.tf | 123 + .../tfstate-backend/1.9.1/input/variables.tf | 232 + .../tfstate-backend/1.9.1/input/versions.tf | 18 + .../cloudposse/transit-gateway/0.13.1/LICENSE | 201 + .../transit-gateway/0.13.1/fixture.json | 39 + .../transit-gateway/0.13.1/input/context.tf | 279 + .../transit-gateway/0.13.1/input/main.tf | 105 + .../0.13.1/input/modules/subnet_route/main.tf | 31 + .../input/modules/subnet_route/outputs.tf | 4 + .../input/modules/subnet_route/variables.tf | 30 + .../input/modules/subnet_route/versions.tf | 10 + .../modules/transit_gateway_route/main.tf | 10 + .../modules/transit_gateway_route/outputs.tf | 4 + .../transit_gateway_route/variables.tf | 17 + .../modules/transit_gateway_route/versions.tf | 10 + .../transit-gateway/0.13.1/input/outputs.tf | 44 + .../transit-gateway/0.13.1/input/ram.tf | 39 + .../transit-gateway/0.13.1/input/variables.tf | 202 + .../transit-gateway/0.13.1/input/versions.tf | 10 + .../0.13.1/modules/subnet_route/LICENSE | 201 + .../0.13.1/modules/subnet_route/fixture.json | 35 + .../0.13.1/modules/subnet_route/input/main.tf | 31 + .../modules/subnet_route/input/outputs.tf | 4 + .../modules/subnet_route/input/variables.tf | 30 + .../modules/subnet_route/input/versions.tf | 10 + .../modules/transit_gateway_route/LICENSE | 201 + .../transit_gateway_route/fixture.json | 34 + .../transit_gateway_route/input/main.tf | 10 + .../transit_gateway_route/input/outputs.tf | 4 + .../transit_gateway_route/input/variables.tf | 17 + .../transit_gateway_route/input/versions.tf | 10 + .../registry/cloudposse/utils/1.4.0/LICENSE | 201 + .../cloudposse/utils/1.4.0/fixture.json | 37 + .../cloudposse/utils/1.4.0/input/context.tf | 279 + .../cloudposse/utils/1.4.0/input/elb.tf | 76 + .../cloudposse/utils/1.4.0/input/main.tf | 826 ++ .../cloudposse/utils/1.4.0/input/outputs.tf | 57 + .../cloudposse/utils/1.4.0/input/variables.tf | 18 + .../cloudposse/utils/1.4.0/input/versions.tf | 10 + .../vpc-flow-logs-s3-bucket/1.4.0/LICENSE | 201 + .../1.4.0/fixture.json | 41 + .../1.4.0/input/context.tf | 279 + .../1.4.0/input/main.tf | 347 + .../1.4.0/input/outputs.tf | 54 + .../1.4.0/input/variables-deprecated.tf | 97 + .../1.4.0/input/variables.tf | 253 + .../1.4.0/input/versions.tf | 10 + .../vpc-peering-multi-account/2.0.1/LICENSE | 201 + .../2.0.1/examples/vpc-only/LICENSE | 201 + .../2.0.1/examples/vpc-only/fixture.json | 32 + .../2.0.1/examples/vpc-only/input/context.tf | 279 + .../2.0.1/examples/vpc-only/input/main.tf | 45 + .../2.0.1/examples/vpc-only/input/outputs.tf | 9 + .../examples/vpc-only/input/variables.tf | 10 + .../2.0.1/examples/vpc-only/input/versions.tf | 22 + .../2.0.1/fixture.json | 39 + .../2.0.1/input/accepter.tf | 159 + .../2.0.1/input/context.tf | 279 + .../2.0.1/input/main.tf | 7 + .../2.0.1/input/requester.tf | 171 + .../2.0.1/input/variables.tf | 53 + .../2.0.1/input/versions.tf | 11 + .../cloudposse/vpc-peering/1.0.1/LICENSE | 201 + .../cloudposse/vpc-peering/1.0.1/fixture.json | 37 + .../vpc-peering/1.0.1/input/context.tf | 279 + .../vpc-peering/1.0.1/input/main.tf | 76 + .../vpc-peering/1.0.1/input/outputs.tf | 9 + .../vpc-peering/1.0.1/input/variables.tf | 83 + .../vpc-peering/1.0.1/input/versions.tf | 10 + .../registry/cloudposse/vpc/3.0.0/LICENSE | 201 + .../cloudposse/vpc/3.0.0/fixture.json | 38 + .../cloudposse/vpc/3.0.0/input/context.tf | 279 + .../cloudposse/vpc/3.0.0/input/main.tf | 142 + .../cloudposse/vpc/3.0.0/input/outputs.tf | 91 + .../cloudposse/vpc/3.0.0/input/variables.tf | 163 + .../cloudposse/vpc/3.0.0/input/versions.tf | 10 + .../vpc/3.0.0/modules/vpc-endpoints/LICENSE | 201 + .../3.0.0/modules/vpc-endpoints/fixture.json | 41 + .../modules/vpc-endpoints/input/context.tf | 279 + .../3.0.0/modules/vpc-endpoints/input/main.tf | 126 + .../modules/vpc-endpoints/input/outputs.tf | 46 + .../modules/vpc-endpoints/input/variables.tf | 55 + .../modules/vpc-endpoints/input/versions.tf | 14 + .../registry/cloudposse/waf/1.18.1/LICENSE | 201 + .../cloudposse/waf/1.18.1/fixture.json | 38 + .../cloudposse/waf/1.18.1/input/context.tf | 279 + .../cloudposse/waf/1.18.1/input/ipset.tf | 34 + .../cloudposse/waf/1.18.1/input/main.tf | 91 + .../cloudposse/waf/1.18.1/input/outputs.tf | 19 + .../cloudposse/waf/1.18.1/input/rules.tf | 2463 +++++ .../cloudposse/waf/1.18.1/input/variables.tf | 1393 +++ .../cloudposse/waf/1.18.1/input/versions.tf | 10 + .../rds_enhanced_monitoring_forwarder/LICENSE | 176 + .../fixture.json | 37 + .../input/main.tf | 148 + .../input/outputs.tf | 67 + .../input/variables.tf | 206 + .../input/versions.tf | 10 + .../modules/vpc_flow_log_forwarder/LICENSE | 176 + .../vpc_flow_log_forwarder/fixture.json | 38 + .../vpc_flow_log_forwarder/input/main.tf | 185 + .../vpc_flow_log_forwarder/input/outputs.tf | 67 + .../vpc_flow_log_forwarder/input/variables.tf | 223 + .../vpc_flow_log_forwarder/input/versions.tf | 10 + .../msk-kafka-cluster/2.13.0/LICENSE | 176 + .../msk-kafka-cluster/2.13.0/fixture.json | 39 + .../2.13.0/input/kafka_connect.tf | 35 + .../msk-kafka-cluster/2.13.0/input/main.tf | 365 + .../msk-kafka-cluster/2.13.0/input/outputs.tf | 208 + .../2.13.0/input/variables.tf | 384 + .../2.13.0/input/versions.tf | 14 + .../2.13.0/modules/serverless/LICENSE | 176 + .../2.13.0/modules/serverless/fixture.json | 36 + .../2.13.0/modules/serverless/input/main.tf | 82 + .../modules/serverless/input/outputs.tf | 13 + .../modules/serverless/input/variables.tf | 60 + .../modules/serverless/input/versions.tf | 10 + .../clowdhaus/rds-proxy/3.2.1/LICENSE | 176 + .../clowdhaus/rds-proxy/3.2.1/fixture.json | 39 + .../clowdhaus/rds-proxy/3.2.1/input/main.tf | 192 + .../rds-proxy/3.2.1/input/outputs.tf | 100 + .../rds-proxy/3.2.1/input/variables.tf | 249 + .../rds-proxy/3.2.1/input/versions.tf | 10 + .../cloudwatch-logs/1.0.13/LICENSE | 201 + .../cloudwatch-logs/1.0.13/fixture.json | 34 + .../cloudwatch-logs/1.0.13/input/main.tf | 35 + .../cloudwatch-logs/1.0.13/input/outputs.tf | 53 + .../cloudwatch-logs/1.0.13/input/variables.tf | 33 + .../cloudwatch-logs/1.0.13/input/versions.tf | 9 + .../cn-terraform/ecs-alb/1.0.37/LICENSE | 201 + .../cn-terraform/ecs-alb/1.0.37/fixture.json | 42 + .../cn-terraform/ecs-alb/1.0.37/input/main.tf | 404 + .../ecs-alb/1.0.37/input/outputs.tf | 166 + .../ecs-alb/1.0.37/input/variables.tf | 424 + .../ecs-alb/1.0.37/input/versions.tf | 17 + .../cn-terraform/ecs-cluster/2.0.1/LICENSE | 201 + .../ecs-cluster/2.0.1/fixture.json | 33 + .../ecs-cluster/2.0.1/input/main.tf | 51 + .../ecs-cluster/2.0.1/input/outputs.tf | 7 + .../ecs-cluster/2.0.1/input/variables.tf | 55 + .../ecs-cluster/2.0.1/input/versions.tf | 9 + .../ecs-fargate-scheduled-task/2.1.0/LICENSE | 201 + .../2.1.0/fixture.json | 35 + .../2.1.0/input/iam.tf | 76 + .../2.1.0/input/main.tf | 72 + .../2.1.0/input/outputs.tf | 75 + .../2.1.0/input/variables.tf | 211 + .../2.1.0/input/versions.tf | 9 + .../ecs-fargate-service/2.0.50/LICENSE | 201 + .../ecs-fargate-service/2.0.50/fixture.json | 36 + .../ecs-fargate-service/2.0.50/input/main.tf | 223 + .../2.0.50/input/outputs.tf | 172 + .../2.0.50/input/variables.tf | 588 ++ .../2.0.50/input/versions.tf | 13 + .../1.0.38/LICENSE | 201 + .../1.0.38/fixture.json | 36 + .../1.0.38/input/main.tf | 170 + .../1.0.38/input/outputs.tf | 54 + .../1.0.38/input/variables.tf | 472 + .../1.0.38/input/versions.tf | 9 + .../ecs-service-autoscaling/1.0.12/LICENSE | 201 + .../1.0.12/fixture.json | 31 + .../1.0.12/input/main.tf | 96 + .../1.0.12/input/outputs.tf | 0 .../1.0.12/input/variables.tf | 87 + .../1.0.12/input/versions.tf | 9 + .../cn-terraform/logs-s3-bucket/2.0.1/LICENSE | 201 + .../logs-s3-bucket/2.0.1/fixture.json | 31 + .../logs-s3-bucket/2.0.1/input/main.tf | 114 + .../logs-s3-bucket/2.0.1/input/outputs.tf | 17 + .../logs-s3-bucket/2.0.1/input/variables.tf | 80 + .../logs-s3-bucket/2.0.1/input/versions.tf | 9 + .../alb-logs-to-s3-to-cloudwatch/LICENSE | 201 + .../alb-to-s3-to-cloudwatch-lambda/LICENSE | 201 + .../fixture.json | 33 + .../input/main.tf | 57 + .../input/outputs.tf | 7 + .../input/variables.tf | 39 + .../alb-logs-to-s3-to-cloudwatch/fixture.json | 37 + .../alb-to-s3-to-cloudwatch-lambda/main.tf | 57 + .../alb-to-s3-to-cloudwatch-lambda/outputs.tf | 7 + .../variables.tf | 39 + .../input/bucket.tf | 45 + .../input/logs-to-cloudwatch.tf | 45 + .../input/variables.tf | 36 + .../input/versions.tf | 10 + .../api-gateway-account-settings/LICENSE | 201 + .../api-gateway-account-settings/fixture.json | 30 + .../input/main.tf | 72 + .../input/variables.tf | 11 + .../modules/api-gateway/custom-domain/LICENSE | 201 + .../api-gateway/custom-domain/fixture.json | 34 + .../custom-domain/input/certificate.tf | 23 + .../api-gateway/custom-domain/input/data.tf | 5 + .../api-gateway/custom-domain/input/locals.tf | 20 + .../api-gateway/custom-domain/input/main.tf | 19 + .../api-gateway/custom-domain/input/r53.tf | 24 + .../custom-domain/input/variables.tf | 33 + .../modules/3.1.0/modules/appconfig/LICENSE | 201 + .../3.1.0/modules/appconfig/fixture.json | 37 + .../modules/appconfig/input/application.tf | 4 + .../3.1.0/modules/appconfig/input/configs.tf | 51 + .../appconfig/input/deployment-strategies.tf | 11 + .../modules/appconfig/input/environments.tf | 32 + .../3.1.0/modules/appconfig/input/locals.tf | 8 + .../3.1.0/modules/appconfig/input/outputs.tf | 3 + .../modules/appconfig/input/variables.tf | 72 + .../3.1.0/modules/appconfig/input/versions.tf | 10 + .../tests/changes/LICENSE | 201 + .../tests/changes/fixture.json | 27 + .../tests/changes/input/main.tf | 18 + .../aws-cloudfront-security-headers/LICENSE | 201 + .../fixture.json | 36 + .../input/main.tf | 99 + .../input/outputs.tf | 6 + .../input/requirements.tf | 8 + .../input/variables.tf | 41 + .../aws-cloudwatch-prometheus-metrics/LICENSE | 201 + .../fixture.json | 37 + .../input/main.tf | 33 + .../input/namespace.tf | 11 + .../input/role.tf | 40 + .../input/variables.tf | 25 + .../input/version.tf | 8 + .../3.1.0/modules/aws-rds-postgres/LICENSE | 201 + .../modules/aws-rds-postgres/fixture.json | 35 + .../modules/aws-rds-postgres/input/main.tf | 54 + .../modules/aws-rds-postgres/input/outputs.tf | 8 + .../aws-rds-postgres/input/security-group.tf | 23 + .../aws-rds-postgres/input/variables.tf | 82 + .../modules/aws-site-to-site-vpn/LICENSE | 201 + .../modules/aws-site-to-site-vpn/fixture.json | 37 + .../aws-site-to-site-vpn/input/main.tf | 109 + .../aws-site-to-site-vpn/input/outputs.tf | 45 + .../aws-site-to-site-vpn/input/variables.tf | 94 + .../aws-site-to-site-vpn/input/versions.tf | 10 + .../3.1.0/modules/aws-vpc-peering/LICENSE | 201 + .../modules/aws-vpc-peering/fixture.json | 37 + .../modules/aws-vpc-peering/input/data.tf | 58 + .../modules/aws-vpc-peering/input/locals.tf | 41 + .../modules/aws-vpc-peering/input/main.tf | 64 + .../modules/aws-vpc-peering/input/outputs.tf | 62 + .../modules/aws-vpc-peering/input/provider.tf | 9 + .../aws-vpc-peering/input/variables.tf | 86 + .../modules/aws-vpc-peering/input/version.tf | 3 + .../modules/3.1.0/modules/budgets/LICENSE | 201 + .../3.1.0/modules/budgets/fixture.json | 35 + .../3.1.0/modules/budgets/input/main.tf | 64 + .../3.1.0/modules/budgets/input/outputs.tf | 4 + .../3.1.0/modules/budgets/input/variables.tf | 58 + .../3.1.0/modules/budgets/input/versions.tf | 9 + .../3.1.0/modules/cloudfront-ssl-hsts/LICENSE | 201 + .../modules/cloudfront-ssl-hsts/fixture.json | 40 + .../input/bucket-origin.tf | 32 + .../input/lamda-security-headers.tf | 9 + .../modules/cloudfront-ssl-hsts/input/main.tf | 272 + .../cloudfront-ssl-hsts/input/outputs.tf | 69 + .../input/ssl-certificate.tf | 17 + .../cloudfront-ssl-hsts/input/variables.tf | 173 + .../cloudfront-ssl-hsts/input/versions.tf | 11 + .../cloudfront-to-s3-to-cloudwatch/LICENSE | 201 + .../cloudfront-to-s3-to-cloudwatch/LICENSE | 201 + .../fixture.json | 33 + .../input/main.tf | 64 + .../input/outputs.tf | 7 + .../input/variables.tf | 39 + .../fixture.json | 38 + .../input/bucket.tf | 42 + .../cloudfront-to-s3-to-cloudwatch/main.tf | 64 + .../cloudfront-to-s3-to-cloudwatch/outputs.tf | 7 + .../variables.tf | 39 + .../input/logs-to-cloudwatch.tf | 46 + .../input/variables.tf | 23 + .../input/versions.tf | 10 + .../modules/cloudfront_functions/LICENSE | 201 + .../modules/cloudfront_functions/fixture.json | 27 + .../cloudfront_functions/input/main.tf | 7 + .../cloudfront_functions/input/output.tf | 3 + .../cloudfront_functions/input/variables.tf | 27 + .../modules/response_headers/LICENSE | 201 + .../modules/response_headers/fixture.json | 30 + .../modules/response_headers/input/main.tf | 25 + .../modules/response_headers/input/output.tf | 3 + .../response_headers/input/variables.tf | 21 + .../cloudtrail-s3-to-cloudwatch/LICENSE | 201 + .../cloudtrail-log-to-cloudwatch/LICENSE | 201 + .../cloudtrail-log-to-cloudwatch/fixture.json | 33 + .../input/main.tf | 66 + .../input/outputs.tf | 7 + .../input/variables.tf | 39 + .../cloudtrail-s3-to-cloudwatch/fixture.json | 38 + .../input/bucket.tf | 53 + .../cloudtrail-log-to-cloudwatch/main.tf | 66 + .../cloudtrail-log-to-cloudwatch/outputs.tf | 7 + .../cloudtrail-log-to-cloudwatch/variables.tf | 39 + .../input/logs-to-cloudwatch.tf | 39 + .../cloudtrail-s3-to-cloudwatch/input/main.tf | 41 + .../input/variables.tf | 28 + .../input/versions.tf | 10 + .../modules/3.1.0/modules/cloudtrail/LICENSE | 201 + .../3.1.0/modules/cloudtrail/fixture.json | 39 + .../3.1.0/modules/cloudtrail/input/alerts.tf | 18 + .../modules/cloudtrail/input/cloudtrail.tf | 48 + .../modules/cloudtrail/input/cloudwatch.tf | 6 + .../modules/cloudtrail/input/cmdb-lambda.tf | 8 + .../modules/cloudtrail/input/log-metrics.tf | 98 + .../input/modules/cmdb-integration/main.tf | 12 + .../input/modules/cmdb-integration/outputs.tf | 7 + .../modules/cmdb-integration/subscription.tf | 57 + .../input/modules/cmdb-integration/topic.tf | 7 + .../modules/cmdb-integration/variables.tf | 20 + .../3.1.0/modules/cloudtrail/input/output.tf | 3 + .../3.1.0/modules/cloudtrail/input/role.tf | 44 + .../3.1.0/modules/cloudtrail/input/s3.tf | 56 + .../modules/cloudtrail/input/variables.tf | 155 + .../modules/cmdb-integration/LICENSE | 201 + .../modules/cmdb-integration/fixture.json | 31 + .../modules/cmdb-integration/input/main.tf | 12 + .../modules/cmdb-integration/input/outputs.tf | 7 + .../cmdb-integration/input/subscription.tf | 57 + .../modules/cmdb-integration/input/topic.tf | 7 + .../cmdb-integration/input/variables.tf | 20 + .../modules/cloudwatch-alarm-notify/LICENSE | 201 + .../cloudwatch-alarm-notify/fixture.json | 34 + .../cloudwatch-alarm-notify/input/main.tf | 107 + .../cloudwatch-alarm-notify/input/output.tf | 6 + .../input/sns_email_topic_subscription.tf | 35 + .../input/sns_lambda_slack_subscription.tf | 13 + .../input/sns_opesgenie_topic_subscription.tf | 35 + .../input/sns_sms_topic_subscription.tf | 36 + .../input/variables.tf | 154 + .../LICENSE | 201 + .../fixture.json | 30 + .../input/role.tf | 48 + .../input/variables.tf | 4 + .../modules/3.1.0/modules/cloudwatch/LICENSE | 201 + .../3.1.0/modules/cloudwatch/fixture.json | 27 + .../modules/cloudwatch/input/dashboard.tf | 4 + .../modules/cloudwatch/input/variables.tf | 9 + .../modules/3.1.0/modules/codecommit/LICENSE | 201 + .../3.1.0/modules/codecommit/fixture.json | 29 + .../3.1.0/modules/codecommit/input/main.tf | 7 + .../3.1.0/modules/codecommit/input/outputs.tf | 24 + .../modules/codecommit/input/variables.tf | 28 + .../modules/codecommit/input/versions.tf | 10 + .../modules/cognito-identitiy-pool/LICENSE | 201 + .../cognito-identitiy-pool/fixture.json | 27 + .../cognito-identitiy-pool/input/pool.tf | 30 + .../cognito-identitiy-pool/input/variables.tf | 4 + .../cognito-identity-pool-final/LICENSE | 201 + .../cognito-identity-pool-final/fixture.json | 28 + .../input/client.tf | 4 + .../input/iam-policy.tf | 23 + .../input/iam-role.tf | 26 + .../input/identity-pool.tf | 11 + .../input/roles-attachment.tf | 6 + .../input/user-pool.tf | 3 + .../input/variables.tf | 29 + .../3.1.0/modules/cognito-identity/LICENSE | 201 + .../modules/cognito-identity/fixture.json | 29 + .../cognito-identity/input/identity.tf | 17 + .../input/roles-attachment.tf | 15 + .../cognito-identity/input/variables.tf | 59 + .../3.1.0/modules/cognito-user-pool/LICENSE | 201 + .../modules/cognito-user-pool/fixture.json | 35 + .../cognito-user-pool/input/clients.tf | 27 + .../modules/cognito-user-pool/input/domain.tf | 21 + .../modules/cognito-user-pool/input/group.tf | 8 + .../modules/cognito-user-pool/input/output.tf | 8 + .../modules/cognito-user-pool/input/pool.tf | 131 + .../cognito-user-pool/input/variables.tf | 329 + .../cognito-user-pool/input/versions.tf | 10 + .../dasmeta/modules/3.1.0/modules/ec2/LICENSE | 201 + .../modules/3.1.0/modules/ec2/fixture.json | 31 + .../modules/3.1.0/modules/ec2/input/alarms.tf | 28 + .../3.1.0/modules/ec2/input/variables.tf | 14 + .../dasmeta/modules/3.1.0/modules/ecr/LICENSE | 201 + .../modules/3.1.0/modules/ecr/fixture.json | 29 + .../modules/3.1.0/modules/ecr/input/main.tf | 14 + .../3.1.0/modules/ecr/input/outputs.tf | 3 + .../3.1.0/modules/ecr/input/variables.tf | 34 + .../3.1.0/modules/ecr/input/versions.tf | 10 + .../dasmeta/modules/3.1.0/modules/efs/LICENSE | 201 + .../modules/3.1.0/modules/efs/fixture.json | 37 + .../modules/3.1.0/modules/efs/input/main.tf | 42 + .../3.1.0/modules/efs/input/outputs.tf | 11 + .../3.1.0/modules/efs/input/security-group.tf | 45 + .../3.1.0/modules/efs/input/variables.tf | 114 + .../3.1.0/modules/efs/input/versions.tf | 8 + .../tests/regular-with-mount-points/LICENSE | 201 + .../regular-with-mount-points/fixture.json | 26 + .../regular-with-mount-points/input/efs.tf | 13 + .../modules/eks-iam-user-constrain/LICENSE | 201 + .../eks-iam-user-constrain/fixture.json | 37 + .../eks-iam-user-constrain/input/main.tf | 108 + .../eks-iam-user-constrain/input/output.tf | 7 + .../eks-iam-user-constrain/input/variables.tf | 28 + .../3.1.0/modules/elastic-search/LICENSE | 201 + .../3.1.0/modules/elastic-search/fixture.json | 34 + .../modules/elastic-search/input/data.tf | 7 + .../modules/elastic-search/input/main.tf | 73 + .../modules/elastic-search/input/outputs.tf | 19 + .../modules/elastic-search/input/variables.tf | 160 + .../modules/elastic-search/input/versions.tf | 10 + .../modules/external-secret-store/LICENSE | 201 + .../external-secret-store/fixture.json | 35 + .../external-secret-store/input/iam.tf | 48 + .../external-secret-store/input/locals.tf | 13 + .../external-secret-store/input/outputs.tf | 14 + .../external-secret-store/input/store.tf | 24 + .../external-secret-store/input/variables.tf | 50 + .../external-secret-store/input/versions.tf | 14 + .../fluent-bit-logs-s3-to-cloudwatch/LICENSE | 201 + .../fb-s3-cloudwatch/LICENSE | 201 + .../fb-s3-cloudwatch/fixture.json | 33 + .../fb-s3-cloudwatch/input/main.tf | 69 + .../fb-s3-cloudwatch/input/outputs.tf | 7 + .../fb-s3-cloudwatch/input/variables.tf | 39 + .../fixture.json | 36 + .../input/bucket.tf | 47 + .../input/fb-s3-cloudwatch/main.tf | 69 + .../input/fb-s3-cloudwatch/outputs.tf | 7 + .../input/fb-s3-cloudwatch/variables.tf | 39 + .../input/logs-to-cloudwatch.tf | 47 + .../input/variables.tf | 20 + .../input/versions.tf | 10 + .../3.1.0/modules/fluent-bit-to-s3/LICENSE | 201 + .../modules/fluent-bit-to-s3/fixture.json | 38 + .../fluent-bit-to-s3/input/helm-chart.tf | 30 + .../modules/fluent-bit-to-s3/input/locals.tf | 5 + .../modules/fluent-bit-to-s3/input/main.tf | 22 + .../fluent-bit-to-s3/input/namespace.tf | 11 + .../modules/fluent-bit-to-s3/input/output.tf | 3 + .../fluent-bit-to-s3/input/providers.tf | 7 + .../modules/fluent-bit-to-s3/input/role.tf | 46 + .../fluent-bit-to-s3/input/variables.tf | 65 + .../fluent-bit-to-s3/input/versions.tf | 10 + .../3.1.0/modules/global-accelerator/LICENSE | 201 + .../modules/global-accelerator/fixture.json | 32 + .../global-accelerator/input/locals.tf | 38 + .../modules/global-accelerator/input/main.tf | 15 + .../global-accelerator/input/outputs.tf | 39 + .../global-accelerator/input/variables.tf | 407 + .../global-accelerator/input/versions.tf | 10 + .../iam-account-password-policy/LICENSE | 201 + .../iam-account-password-policy/fixture.json | 27 + .../iam-account-password-policy/input/main.tf | 11 + .../input/outputs.tf | 4 + .../input/variables.tf | 54 + .../modules/3.1.0/modules/iam-group/LICENSE | 201 + .../3.1.0/modules/iam-group/fixture.json | 28 + .../3.1.0/modules/iam-group/input/main.tf | 80 + .../3.1.0/modules/iam-group/input/output.tf | 0 .../modules/iam-group/input/variables.tf | 20 + .../modules/3.1.0/modules/ingress/LICENSE | 201 + .../3.1.0/modules/ingress/fixture.json | 42 + .../3.1.0/modules/ingress/input/alarms.tf | 38 + .../ingress/input/alb-logs-cloudwatch.tf | 22 + .../3.1.0/modules/ingress/input/data.tf | 29 + .../3.1.0/modules/ingress/input/main.tf | 98 + .../3.1.0/modules/ingress/input/output.tf | 29 + .../3.1.0/modules/ingress/input/variables.tf | 124 + .../3.1.0/modules/ingress/input/versions.tf | 10 + .../dasmeta/modules/3.1.0/modules/kms/LICENSE | 201 + .../modules/3.1.0/modules/kms/fixture.json | 32 + .../modules/3.1.0/modules/kms/input/data.tf | 1 + .../modules/3.1.0/modules/kms/input/locals.tf | 34 + .../modules/3.1.0/modules/kms/input/main.tf | 15 + .../modules/3.1.0/modules/kms/input/output.tf | 9 + .../3.1.0/modules/kms/input/variables.tf | 23 + .../3.1.0/modules/metric-filter/LICENSE | 201 + .../3.1.0/modules/metric-filter/fixture.json | 28 + .../3.1.0/modules/metric-filter/input/main.tf | 15 + .../modules/metric-filter/input/variables.tf | 20 + .../3.1.0/modules/mongodb-atlas/LICENSE | 201 + .../3.1.0/modules/mongodb-atlas/fixture.json | 39 + .../mongodb-atlas/input/access_user.tf | 13 + .../modules/mongodb-atlas/input/alerts.tf | 24 + .../modules/mongodb-atlas/input/auditing.tf | 8 + .../modules/mongodb-atlas/input/backup.tf | 94 + .../modules/mongodb-atlas/input/cluster.tf | 30 + .../modules/mongodb-atlas/input/network.tf | 72 + .../modules/mongodb-atlas/input/outputs.tf | 11 + .../modules/mongodb-atlas/input/project.tf | 14 + .../3.1.0/modules/mongodb-atlas/input/team.tf | 5 + .../modules/mongodb-atlas/input/users.tf | 37 + .../modules/mongodb-atlas/input/variables.tf | 395 + .../modules/mongodb-atlas/input/versions.tf | 15 + .../dasmeta/modules/3.1.0/modules/nlb/LICENSE | 201 + .../modules/3.1.0/modules/nlb/fixture.json | 36 + .../modules/3.1.0/modules/nlb/input/main.tf | 168 + .../3.1.0/modules/nlb/input/outputs.tf | 49 + .../3.1.0/modules/nlb/input/variables.tf | 221 + .../3.1.0/modules/nlb/input/versions.tf | 10 + .../modules/route53-alerts-notify/LICENSE | 201 + .../route53-alerts-notify/fixture.json | 38 + .../input/cloudwatch_alarm.tf | 54 + .../input/health_check.tf | 14 + .../route53-alerts-notify/input/lambdas.tf | 11 + .../route53-alerts-notify/input/locals.tf | 18 + .../input/requirements.tf | 8 + .../input/sns_email_topic_subscription.tf | 34 + .../input/sns_opesgenie_topic_subscription.tf | 33 + .../input/sns_sms_topic_subscription.tf | 34 + .../route53-alerts-notify/input/variables.tf | 208 + .../3.1.0/modules/secret-reader/LICENSE | 201 + .../3.1.0/modules/secret-reader/fixture.json | 29 + .../3.1.0/modules/secret-reader/input/data.tf | 11 + .../modules/secret-reader/input/output.tf | 7 + .../modules/secret-reader/input/variables.tf | 10 + .../modules/3.1.0/modules/secret/LICENSE | 201 + .../modules/3.1.0/modules/secret/fixture.json | 32 + .../3.1.0/modules/secret/input/outputs.tf | 4 + .../3.1.0/modules/secret/input/secret.tf | 12 + .../3.1.0/modules/secret/input/variables.tf | 22 + .../3.1.0/modules/secret/input/versions.tf | 8 + .../dcos-terraform/bootstrap/0.3.0/LICENSE | 201 + .../bootstrap/0.3.0/fixture.json | 30 + .../bootstrap/0.3.0/input/main.tf | 52 + .../bootstrap/0.3.0/input/meta.tf | 4 + .../bootstrap/0.3.0/input/outputs.tf | 20 + .../bootstrap/0.3.0/input/variables.tf | 80 + .../dcos/0.3.4/docs/published/LICENSE | 201 + .../dcos/0.3.4/docs/published/fixture.json | 30 + .../dcos/0.3.4/docs/published/input/main.tf | 50 + .../dcos/0.3.4/examples/calico/LICENSE | 201 + .../dcos/0.3.4/examples/calico/fixture.json | 27 + .../dcos/0.3.4/examples/calico/input/main.tf | 55 + .../examples/pull-request-open-source/LICENSE | 201 + .../pull-request-open-source/fixture.json | 26 + .../pull-request-open-source/input/main.tf | 46 + .../simple-enterprise-edition/LICENSE | 201 + .../simple-enterprise-edition/fixture.json | 26 + .../simple-enterprise-edition/input/main.tf | 39 + .../0.3.4/examples/simple-open-source/LICENSE | 201 + .../examples/simple-open-source/fixture.json | 26 + .../examples/simple-open-source/input/main.tf | 35 + .../registry/dcos-terraform/iam/0.3.0/LICENSE | 201 + .../dcos-terraform/iam/0.3.0/fixture.json | 31 + .../dcos-terraform/iam/0.3.0/input/main.tf | 285 + .../dcos-terraform/iam/0.3.0/input/meta.tf | 4 + .../dcos-terraform/iam/0.3.0/input/outputs.tf | 10 + .../iam/0.3.0/input/variables.tf | 14 + .../infrastructure/0.3.2/LICENSE | 201 + .../infrastructure/0.3.2/fixture.json | 37 + .../infrastructure/0.3.2/input/main.tf | 314 + .../infrastructure/0.3.2/input/meta.tf | 4 + .../infrastructure/0.3.2/input/outputs.tf | 170 + .../infrastructure/0.3.2/input/variables.tf | 332 + .../dcos-terraform/instance/0.3.0/LICENSE | 201 + .../instance/0.3.0/fixture.json | 34 + .../instance/0.3.0/input/main.tf | 213 + .../instance/0.3.0/input/meta.tf | 4 + .../instance/0.3.0/input/outputs.tf | 25 + .../instance/0.3.0/input/variables.tf | 103 + .../dcos-terraform/lb-dcos/0.3.0/LICENSE | 201 + .../dcos-terraform/lb-dcos/0.3.0/fixture.json | 28 + .../lb-dcos/0.3.0/input/main.tf | 104 + .../lb-dcos/0.3.0/input/meta.tf | 4 + .../lb-dcos/0.3.0/input/outputs.tf | 15 + .../lb-dcos/0.3.0/input/variables.tf | 94 + .../lb-masters-internal/0.3.0/LICENSE | 201 + .../lb-masters-internal/0.3.0/fixture.json | 28 + .../lb-masters-internal/0.3.0/input/main.tf | 85 + .../lb-masters-internal/0.3.0/input/meta.tf | 5 + .../0.3.0/input/outputs.tf | 5 + .../0.3.0/input/variables.tf | 50 + .../dcos-terraform/lb-masters/0.3.0/LICENSE | 201 + .../lb-masters/0.3.0/fixture.json | 28 + .../lb-masters/0.3.0/input/main.tf | 56 + .../lb-masters/0.3.0/input/meta.tf | 3 + .../lb-masters/0.3.0/input/outputs.tf | 5 + .../lb-masters/0.3.0/input/variables.tf | 50 + .../lb-public-agents/0.3.0/LICENSE | 201 + .../lb-public-agents/0.3.0/fixture.json | 28 + .../lb-public-agents/0.3.0/input/main.tf | 60 + .../lb-public-agents/0.3.0/input/meta.tf | 4 + .../lb-public-agents/0.3.0/input/outputs.tf | 5 + .../lb-public-agents/0.3.0/input/variables.tf | 55 + .../registry/dcos-terraform/lb/0.3.1/LICENSE | 201 + .../dcos-terraform/lb/0.3.1/fixture.json | 37 + .../dcos-terraform/lb/0.3.1/input/main.tf | 203 + .../dcos-terraform/lb/0.3.1/input/meta.tf | 3 + .../dcos-terraform/lb/0.3.1/input/outputs.tf | 5 + .../lb/0.3.1/input/variables.tf | 88 + .../dcos-terraform/masters/0.3.1/LICENSE | 201 + .../dcos-terraform/masters/0.3.1/fixture.json | 28 + .../masters/0.3.1/input/main.tf | 54 + .../masters/0.3.1/input/meta.tf | 4 + .../masters/0.3.1/input/outputs.tf | 20 + .../masters/0.3.1/input/variables.tf | 79 + .../private-agents/0.3.0/LICENSE | 201 + .../private-agents/0.3.0/fixture.json | 28 + .../private-agents/0.3.0/input/main.tf | 55 + .../private-agents/0.3.0/input/meta.tf | 4 + .../private-agents/0.3.0/input/outputs.tf | 20 + .../private-agents/0.3.0/input/variables.tf | 85 + .../public-agents/0.3.0/LICENSE | 201 + .../public-agents/0.3.0/fixture.json | 28 + .../public-agents/0.3.0/input/main.tf | 55 + .../public-agents/0.3.0/input/meta.tf | 4 + .../public-agents/0.3.0/input/outputs.tf | 20 + .../public-agents/0.3.0/input/variables.tf | 85 + .../security-groups/0.3.0/LICENSE | 201 + .../security-groups/0.3.0/fixture.json | 35 + .../security-groups/0.3.0/input/main.tf | 224 + .../security-groups/0.3.0/input/meta.tf | 4 + .../security-groups/0.3.0/input/outputs.tf | 20 + .../security-groups/0.3.0/input/variables.tf | 66 + .../dcos-terraform/tested-oses/0.3.0/LICENSE | 201 + .../tested-oses/0.3.0/fixture.json | 31 + .../tested-oses/0.3.0/input/main.tf | 43 + .../tested-oses/0.3.0/input/meta.tf | 4 + .../tested-oses/0.3.0/input/outputs.tf | 10 + .../tested-oses/0.3.0/input/variables.tf | 265 + .../registry/dcos-terraform/vpc/0.3.0/LICENSE | 201 + .../dcos-terraform/vpc/0.3.0/fixture.json | 33 + .../dcos-terraform/vpc/0.3.0/input/main.tf | 91 + .../dcos-terraform/vpc/0.3.0/input/meta.tf | 4 + .../dcos-terraform/vpc/0.3.0/input/outputs.tf | 25 + .../vpc/0.3.0/input/variables.tf | 21 + .../lambda-scheduler-stop-start/4.5.0/LICENSE | 201 + .../test-execution/LICENSE | 201 + .../test-execution/fixture.json | 33 + .../test-execution/input/main.tf | 67 + .../test-execution/input/outputs.tf | 19 + .../test-execution/input/variables.tf | 14 + .../test-execution/input/versions.tf | 13 + .../4.5.0/fixture.json | 39 + .../4.5.0/input/cloudwatch.tf | 5 + .../4.5.0/input/iam.tf | 312 + .../4.5.0/input/main.tf | 59 + .../4.5.0/input/outputs.tf | 54 + .../4.5.0/input/variables.tf | 156 + .../4.5.0/input/versions.tf | 14 + .../services/agentless-scanning/LICENSE | 201 + .../services/agentless-scanning/fixture.json | 39 + .../agentless-scanning/input/locals.tf | 19 + .../services/agentless-scanning/input/main.tf | 311 + .../input/organizational.tf | 337 + .../agentless-scanning/input/outputs.tf | 17 + .../agentless-scanning/input/variables.tf | 95 + .../agentless-scanning/input/versions.tf | 9 + .../modules/services/cloud-logs/LICENSE | 201 + .../modules/services/cloud-logs/fixture.json | 31 + .../modules/services/cloud-logs/input/main.tf | 77 + .../services/cloud-logs/input/outputs.tf | 4 + .../services/cloud-logs/input/variables.tf | 30 + .../services/cloud-logs/input/versions.tf | 9 + .../0.10.29/modules/services/eks/LICENSE | 201 + .../0.10.29/modules/services/eks/fixture.json | 35 + .../modules/services/eks/input/datasources.tf | 1 + .../0.10.29/modules/services/eks/input/eks.tf | 16 + .../0.10.29/modules/services/eks/input/iam.tf | 68 + .../modules/services/eks/input/locals.tf | 7 + .../modules/services/eks/input/variables.tf | 59 + .../modules/services/eks/input/versions.tf | 10 + .../modules/services/event-bridge/LICENSE | 201 + .../services/event-bridge/fixture.json | 39 + .../services/event-bridge/input/main.tf | 136 + .../event-bridge/input/organizational.tf | 201 + .../services/event-bridge/input/outputs.tf | 5 + .../services/event-bridge/input/variables.tf | 120 + .../services/event-bridge/input/versions.tf | 9 + .../services/trust-relationship/LICENSE | 201 + .../services/trust-relationship/fixture.json | 35 + .../services/trust-relationship/input/main.tf | 225 + .../trust-relationship/input/outputs.tf | 0 .../trust-relationship/input/variables.tf | 65 + .../trust-relationship/input/versions.tf | 9 + .../services/workload-scanning/LICENSE | 201 + .../services/workload-scanning/fixture.json | 37 + .../services/workload-scanning/input/main.tf | 92 + .../workload-scanning/input/organizational.tf | 101 + .../workload-scanning/input/outputs.tf | 20 + .../workload-scanning/input/variables.tf | 60 + .../workload-scanning/input/versions.tf | 10 + .../3.0.3/LICENSE | 201 + .../3.0.3/fixture.json | 34 + .../3.0.3/input/alarms.tf | 308 + .../3.0.3/input/main.tf | 101 + .../3.0.3/input/outputs.tf | 9 + .../3.0.3/input/variables.tf | 323 + .../3.0.3/input/versions.tf | 4 + .../fixtures/registry/dwp/vpc/3.0.24/LICENSE | 21 + .../registry/dwp/vpc/3.0.24/fixture.json | 35 + .../registry/dwp/vpc/3.0.24/input/locals.tf | 21 + .../registry/dwp/vpc/3.0.24/input/outputs.tf | 74 + .../registry/dwp/vpc/3.0.24/input/ssm_role.tf | 31 + .../dwp/vpc/3.0.24/input/variables.tf | 85 + .../registry/dwp/vpc/3.0.24/input/vpc.tf | 78 + .../dwp/vpc/3.0.24/input/vpc_endpoints.tf | 112 + .../fdmsantos/kinesis-firehose/4.0.0/LICENSE | 176 + .../kinesis-firehose/4.0.0/fixture.json | 39 + .../kinesis-firehose/4.0.0/input/iam.tf | 857 ++ .../kinesis-firehose/4.0.0/input/locals.tf | 365 + .../kinesis-firehose/4.0.0/input/main.tf | 863 ++ .../kinesis-firehose/4.0.0/input/outputs.tf | 144 + .../kinesis-firehose/4.0.0/input/variables.tf | 1507 +++ .../kinesis-firehose/4.0.0/input/versions.tf | 9 + .../modules/alb-default-forward/LICENSE | 21 + .../modules/alb-default-forward/fixture.json | 28 + .../modules/alb-default-forward/input/main.tf | 19 + .../alb-default-forward/input/outputs.tf | 7 + .../alb-default-forward/input/variables.tf | 46 + .../0.9.16/modules/alb-redirect/LICENSE | 21 + .../0.9.16/modules/alb-redirect/fixture.json | 26 + .../0.9.16/modules/alb-redirect/input/main.tf | 13 + .../modules/alb-redirect/input/variables.tf | 14 + .../foundation/0.9.16/modules/alb/LICENSE | 21 + .../0.9.16/modules/alb/fixture.json | 28 + .../0.9.16/modules/alb/input/main.tf | 13 + .../0.9.16/modules/alb/input/outputs.tf | 15 + .../0.9.16/modules/alb/input/variables.tf | 25 + .../0.9.16/modules/ami-centos/LICENSE | 21 + .../0.9.16/modules/ami-centos/fixture.json | 29 + .../0.9.16/modules/ami-centos/input/main.tf | 45 + .../modules/ami-centos/input/versions.tf | 4 + .../0.9.16/modules/ami-ubuntu/LICENSE | 21 + .../0.9.16/modules/ami-ubuntu/fixture.json | 29 + .../0.9.16/modules/ami-ubuntu/input/main.tf | 97 + .../modules/ami-ubuntu/input/versions.tf | 4 + .../foundation/0.9.16/modules/asg/LICENSE | 21 + .../0.9.16/modules/asg/fixture.json | 33 + .../0.9.16/modules/asg/input/main.tf | 119 + .../0.9.16/modules/asg/input/outputs.tf | 20 + .../0.9.16/modules/asg/input/variables.tf | 168 + .../0.9.16/modules/asg/input/versions.tf | 4 + .../LICENSE | 21 + .../fixture.json | 28 + .../input/main.tf | 123 + .../input/versions.tf | 4 + .../0.9.16/modules/aws-ipsec-vpn/LICENSE | 21 + .../0.9.16/modules/aws-ipsec-vpn/fixture.json | 31 + .../modules/aws-ipsec-vpn/input/main.tf | 111 + .../modules/aws-ipsec-vpn/input/outputs.tf | 58 + .../modules/aws-ipsec-vpn/input/versions.tf | 4 + .../0.9.16/modules/bind-server-sg/LICENSE | 21 + .../modules/bind-server-sg/fixture.json | 28 + .../modules/bind-server-sg/input/main.tf | 58 + .../modules/bind-server-sg/input/versions.tf | 4 + .../0.9.16/modules/cloudtrail/LICENSE | 21 + .../0.9.16/modules/cloudtrail/fixture.json | 31 + .../0.9.16/modules/cloudtrail/input/main.tf | 71 + .../modules/cloudtrail/input/outputs.tf | 20 + .../modules/cloudtrail/input/variables.tf | 29 + .../modules/cloudtrail/input/versions.tf | 4 + .../LICENSE | 21 + .../fixture.json | 31 + .../input/main.tf | 39 + .../input/variables.tf | 30 + .../input/versions.tf | 4 + .../modules/cloudwatch-exporter-iam/LICENSE | 21 + .../cloudwatch-exporter-iam/fixture.json | 30 + .../cloudwatch-exporter-iam/input/data.tf | 35 + .../cloudwatch-exporter-iam/input/main.tf | 27 + .../cloudwatch-exporter-iam/input/outputs.tf | 10 + .../input/variables.tf | 10 + .../cloudwatch-exporter-iam/input/versions.tf | 4 + .../modules/cloudwatch-logs-s3-bucket/LICENSE | 21 + .../cloudwatch-logs-s3-bucket/fixture.json | 31 + .../cloudwatch-logs-s3-bucket/input/iam.tf | 43 + .../cloudwatch-logs-s3-bucket/input/main.tf | 27 + .../input/outputs.tf | 20 + .../input/variables.tf | 22 + .../input/versions.tf | 4 + .../0.9.16/modules/cluster-network/LICENSE | 21 + .../modules/cluster-network/fixture.json | 29 + .../modules/cluster-network/input/main.tf | 50 + .../modules/cluster-network/input/outputs.tf | 30 + .../cluster-network/input/variables.tf | 46 + .../modules/cluster-network/input/versions.tf | 4 + .../modules/consul-leader-wan-sg/LICENSE | 21 + .../modules/consul-leader-wan-sg/fixture.json | 28 + .../consul-leader-wan-sg/input/main.tf | 49 + .../consul-leader-wan-sg/input/versions.tf | 4 + .../modules/credstash-grant-reader/LICENSE | 21 + .../credstash-grant-reader/fixture.json | 29 + .../credstash-grant-reader/input/main.tf | 58 + .../credstash-grant-reader/input/versions.tf | 4 + .../modules/credstash-grant-writer/LICENSE | 21 + .../credstash-grant-writer/fixture.json | 29 + .../credstash-grant-writer/input/main.tf | 58 + .../credstash-grant-writer/input/versions.tf | 4 + .../0.9.16/modules/credstash-setup/LICENSE | 21 + .../modules/credstash-setup/fixture.json | 34 + .../modules/credstash-setup/input/data.tf | 56 + .../modules/credstash-setup/input/main.tf | 65 + .../modules/credstash-setup/input/output.tf | 55 + .../credstash-setup/input/variables.tf | 42 + .../modules/credstash-setup/input/versions.tf | 4 + .../cross-account-assume-role-policy/LICENSE | 21 + .../fixture.json | 31 + .../input/main.tf | 72 + .../input/versions.tf | 4 + .../0.9.16/modules/cross-account-role/LICENSE | 21 + .../modules/cross-account-role/fixture.json | 30 + .../modules/cross-account-role/input/main.tf | 60 + .../cross-account-role/input/versions.tf | 4 + .../modules/dlm-lifecycle-policy/LICENSE | 21 + .../modules/dlm-lifecycle-policy/fixture.json | 30 + .../modules/dlm-lifecycle-policy/input/iam.tf | 51 + .../dlm-lifecycle-policy/input/main.tf | 43 + .../dlm-lifecycle-policy/input/variables.tf | 70 + .../dlm-lifecycle-policy/input/versions.tf | 3 + .../0.9.16/modules/ebs-snapshot-iam/LICENSE | 21 + .../modules/ebs-snapshot-iam/fixture.json | 29 + .../modules/ebs-snapshot-iam/input/main.tf | 74 + .../ebs-snapshot-iam/input/versions.tf | 4 + .../ec2-auto-recover-instances/LICENSE | 21 + .../ec2-auto-recover-instances/fixture.json | 33 + .../ec2-auto-recover-instances/input/main.tf | 93 + .../input/outputs.tf | 15 + .../input/variables.tf | 138 + .../input/versions.tf | 4 + .../foundation/0.9.16/modules/elk-r53/LICENSE | 21 + .../0.9.16/modules/elk-r53/fixture.json | 28 + .../0.9.16/modules/elk-r53/input/main.tf | 44 + .../0.9.16/modules/elk-r53/input/variables.tf | 53 + .../0.9.16/modules/elk-r53/input/versions.tf | 4 + .../0.9.16/modules/etcd-server-sg/LICENSE | 21 + .../modules/etcd-server-sg/fixture.json | 28 + .../modules/etcd-server-sg/input/main.tf | 35 + .../modules/etcd-server-sg/input/versions.tf | 4 + .../0.9.16/modules/external-dns-iam/LICENSE | 21 + .../modules/external-dns-iam/fixture.json | 30 + .../modules/external-dns-iam/input/data.tf | 45 + .../modules/external-dns-iam/input/main.tf | 27 + .../modules/external-dns-iam/input/outputs.tf | 10 + .../external-dns-iam/input/variables.tf | 10 + .../external-dns-iam/input/versions.tf | 4 + .../0.9.16/modules/iam-group/LICENSE | 21 + .../0.9.16/modules/iam-group/fixture.json | 29 + .../0.9.16/modules/iam-group/input/main.tf | 43 + .../modules/iam-group/input/versions.tf | 4 + .../modules/iam-instance-profile/LICENSE | 21 + .../modules/iam-instance-profile/fixture.json | 29 + .../iam-instance-profile/input/main.tf | 46 + .../iam-instance-profile/input/versions.tf | 4 + .../0.9.16/modules/iam-users/LICENSE | 21 + .../0.9.16/modules/iam-users/fixture.json | 29 + .../0.9.16/modules/iam-users/input/main.tf | 20 + .../modules/iam-users/input/versions.tf | 4 + .../foundation/0.9.16/modules/kibana/LICENSE | 21 + .../0.9.16/modules/kibana/fixture.json | 34 + .../0.9.16/modules/kibana/input/main.tf | 178 + .../0.9.16/modules/kibana/input/outputs.tf | 53 + .../0.9.16/modules/kibana/input/variables.tf | 102 + .../0.9.16/modules/kibana/input/versions.tf | 4 + .../modules/kube-controller-iam/LICENSE | 21 + .../modules/kube-controller-iam/fixture.json | 30 + .../modules/kube-controller-iam/input/data.tf | 30 + .../modules/kube-controller-iam/input/main.tf | 25 + .../kube-controller-iam/input/outputs.tf | 4 + .../kube-controller-iam/input/variables.tf | 6 + .../kube-controller-iam/input/versions.tf | 4 + .../0.9.16/modules/kube-worker-iam/LICENSE | 21 + .../modules/kube-worker-iam/fixture.json | 30 + .../modules/kube-worker-iam/input/data.tf | 30 + .../modules/kube-worker-iam/input/main.tf | 25 + .../modules/kube-worker-iam/input/outputs.tf | 4 + .../kube-worker-iam/input/variables.tf | 6 + .../modules/kube-worker-iam/input/versions.tf | 4 + .../0.9.16/modules/kubernetes-vpc/LICENSE | 21 + .../modules/kubernetes-vpc/fixture.json | 30 + .../modules/kubernetes-vpc/input/main.tf | 74 + .../modules/kubernetes-vpc/input/outputs.tf | 20 + .../modules/kubernetes-vpc/input/variables.tf | 31 + .../modules/kubernetes-vpc/input/versions.tf | 4 + .../0.9.16/modules/leader-dns/LICENSE | 21 + .../0.9.16/modules/leader-dns/fixture.json | 28 + .../0.9.16/modules/leader-dns/input/main.tf | 53 + .../modules/leader-dns/input/outputs.tf | 15 + .../modules/leader-dns/input/variables.tf | 33 + .../modules/leader-dns/input/versions.tf | 4 + .../0.9.16/modules/mongo-server-sg/LICENSE | 21 + .../modules/mongo-server-sg/fixture.json | 28 + .../modules/mongo-server-sg/input/main.tf | 45 + .../modules/mongo-server-sg/input/versions.tf | 4 + .../0.9.16/modules/multi-volumes/LICENSE | 21 + .../0.9.16/modules/multi-volumes/fixture.json | 30 + .../modules/multi-volumes/input/main.tf | 143 + .../modules/multi-volumes/input/versions.tf | 4 + .../0.9.16/modules/nat-gateways/LICENSE | 21 + .../0.9.16/modules/nat-gateways/fixture.json | 35 + .../0.9.16/modules/nat-gateways/input/main.tf | 75 + .../modules/nat-gateways/input/outputs.tf | 28 + .../modules/nat-gateways/input/variables.tf | 42 + .../modules/nat-gateways/input/versions.tf | 4 + .../0.9.16/modules/nomad-agent-sg/LICENSE | 21 + .../modules/nomad-agent-sg/fixture.json | 28 + .../modules/nomad-agent-sg/input/main.tf | 34 + .../modules/nomad-agent-sg/input/versions.tf | 4 + .../nomad-agent-worker-ports-sg/LICENSE | 21 + .../nomad-agent-worker-ports-sg/fixture.json | 28 + .../nomad-agent-worker-ports-sg/input/main.tf | 47 + .../input/versions.tf | 4 + .../0.9.16/modules/nomad-server-sg/LICENSE | 21 + .../modules/nomad-server-sg/fixture.json | 28 + .../modules/nomad-server-sg/input/main.tf | 62 + .../modules/nomad-server-sg/input/versions.tf | 4 + .../0.9.16/modules/open-egress-sg/LICENSE | 21 + .../modules/open-egress-sg/fixture.json | 27 + .../modules/open-egress-sg/input/main.tf | 37 + .../modules/open-egress-sg/input/versions.tf | 4 + .../0.9.16/modules/open-ingress-sg/LICENSE | 21 + .../modules/open-ingress-sg/fixture.json | 27 + .../modules/open-ingress-sg/input/main.tf | 35 + .../modules/open-ingress-sg/input/versions.tf | 4 + .../0.9.16/modules/packer-vpc/LICENSE | 21 + .../0.9.16/modules/packer-vpc/fixture.json | 30 + .../0.9.16/modules/packer-vpc/input/data.tf | 37 + .../0.9.16/modules/packer-vpc/input/main.tf | 55 + .../modules/packer-vpc/input/outputs.tf | 20 + .../modules/packer-vpc/input/variables.tf | 21 + .../modules/packer-vpc/input/versions.tf | 4 + .../modules/persistent-ebs-volumes/LICENSE | 21 + .../persistent-ebs-volumes/fixture.json | 34 + .../persistent-ebs-volumes/input/iam.tf | 32 + .../persistent-ebs-volumes/input/main.tf | 43 + .../persistent-ebs-volumes/input/outputs.tf | 15 + .../persistent-ebs-volumes/input/variables.tf | 68 + .../persistent-ebs-volumes/input/versions.tf | 4 + .../0.9.16/modules/persistent-ebs/LICENSE | 21 + .../modules/persistent-ebs/fixture.json | 31 + .../modules/persistent-ebs/input/data.tf | 22 + .../modules/persistent-ebs/input/main.tf | 38 + .../modules/persistent-ebs/input/outputs.tf | 9 + .../modules/persistent-ebs/input/variables.tf | 62 + .../modules/persistent-ebs/input/versions.tf | 4 + .../0.9.16/modules/ping-request-sg/LICENSE | 21 + .../modules/ping-request-sg/fixture.json | 27 + .../modules/ping-request-sg/input/main.tf | 43 + .../modules/ping-request-sg/input/versions.tf | 4 + .../0.9.16/modules/ping-respond-sg/LICENSE | 21 + .../modules/ping-respond-sg/fixture.json | 27 + .../modules/ping-respond-sg/input/main.tf | 38 + .../modules/ping-respond-sg/input/versions.tf | 4 + .../prometheus-node-exporter-sg/LICENSE | 21 + .../prometheus-node-exporter-sg/fixture.json | 27 + .../prometheus-node-exporter-sg/input/main.tf | 26 + .../input/versions.tf | 4 + .../0.9.16/modules/r53-subdomain/LICENSE | 21 + .../0.9.16/modules/r53-subdomain/fixture.json | 28 + .../modules/r53-subdomain/input/main.tf | 67 + .../modules/r53-subdomain/input/versions.tf | 4 + .../foundation/0.9.16/modules/rds/LICENSE | 21 + .../0.9.16/modules/rds/fixture.json | 28 + .../0.9.16/modules/rds/input/iam.tf | 19 + .../0.9.16/modules/rds/input/main.tf | 22 + .../0.9.16/modules/rds/input/outputs.tf | 7 + .../0.9.16/modules/rds/input/variables.tf | 73 + .../session-manager-settings/2.2.0/LICENSE | 11 + .../2.2.0/fixture.json | 30 + .../2.2.0/input/main.tf | 27 + .../2.2.0/input/outputs.tf | 9 + .../2.2.0/input/variables.tf | 77 + .../2.2.0/input/versions.tf | 7 + .../github-runner/8.0.0/LICENSE | 22 + .../github-runner/8.0.0/examples/base/LICENSE | 22 + .../8.0.0/examples/base/fixture.json | 32 + .../8.0.0/examples/base/input/main.tf | 8 + .../8.0.0/examples/base/input/outputs.tf | 3 + .../8.0.0/examples/base/input/variables.tf | 9 + .../8.0.0/examples/base/input/versions.tf | 9 + .../8.0.0/examples/base/input/vpc.tf | 16 + .../examples/dedicated-mac-hosts/LICENSE | 22 + .../examples/dedicated-mac-hosts/fixture.json | 35 + .../dedicated-mac-hosts/input/main.tf | 105 + .../dedicated-mac-hosts/input/outputs.tf | 12 + .../dedicated-mac-hosts/input/providers.tf | 9 + .../dedicated-mac-hosts/input/variables.tf | 23 + .../dedicated-mac-hosts/input/versions.tf | 10 + .../github-runner/8.0.0/fixture.json | 44 + .../github-runner/8.0.0/input/main.tf | 430 + .../input/modules/ami-housekeeper/ami.tf | 0 .../input/modules/ami-housekeeper/iam.tf | 16 + .../input/modules/ami-housekeeper/main.tf | 136 + .../input/modules/ami-housekeeper/outputs.tf | 11 + .../modules/ami-housekeeper/variables.tf | 211 + .../input/modules/ami-housekeeper/versions.tf | 10 + .../8.0.0/input/modules/lambda/iam.tf | 16 + .../8.0.0/input/modules/lambda/main.tf | 115 + .../8.0.0/input/modules/lambda/outputs.tf | 7 + .../8.0.0/input/modules/lambda/variables.tf | 90 + .../8.0.0/input/modules/lambda/versions.tf | 10 + .../modules/runner-binaries-syncer/iam.tf | 16 + .../modules/runner-binaries-syncer/main.tf | 140 + .../modules/runner-binaries-syncer/outputs.tf | 19 + .../runner-binaries-syncer.tf | 196 + .../runner-binaries-syncer/variables.tf | 261 + .../runner-binaries-syncer/versions.tf | 10 + .../8.0.0/input/modules/runners/job-retry.tf | 43 + .../input/modules/runners/job-retry/main.tf | 103 + .../modules/runners/job-retry/outputs.tf | 11 + .../modules/runners/job-retry/variables.tf | 102 + .../modules/runners/job-retry/versions.tf | 10 + .../8.0.0/input/modules/runners/local.tf | 8 + .../8.0.0/input/modules/runners/logging.tf | 85 + .../8.0.0/input/modules/runners/main.tf | 427 + .../8.0.0/input/modules/runners/outputs.tf | 57 + .../modules/runners/policies-lambda-common.tf | 51 + .../input/modules/runners/policies-runner.tf | 84 + .../8.0.0/input/modules/runners/pool.tf | 73 + .../8.0.0/input/modules/runners/pool/main.tf | 245 + .../input/modules/runners/pool/outputs.tf | 11 + .../input/modules/runners/pool/variables.tf | 103 + .../input/modules/runners/pool/versions.tf | 10 + .../input/modules/runners/runner-config.tf | 41 + .../8.0.0/input/modules/runners/scale-down.tf | 137 + .../8.0.0/input/modules/runners/scale-up.tf | 191 + .../input/modules/runners/ssm-housekeeper.tf | 124 + .../8.0.0/input/modules/runners/variables.tf | 964 ++ .../8.0.0/input/modules/runners/versions.tf | 10 + .../storage-providers/aws/ssm/local.tf | 3 + .../storage-providers/aws/ssm/outputs.tf | 46 + .../modules/storage-providers/aws/ssm/ssm.tf | 91 + .../storage-providers/aws/ssm/variables.tf | 70 + .../storage-providers/aws/ssm/versions.tf | 10 + .../termination-watcher/deregister-retry.tf | 155 + .../input/modules/termination-watcher/main.tf | 36 + .../termination-watcher/notification.tf | 6 + .../termination-watcher/notification/main.tf | 108 + .../notification/outputs.tf | 7 + .../notification/variables.tf | 4 + .../notification/versions.tf | 10 + .../modules/termination-watcher/outputs.tf | 27 + .../termination-watcher/termination.tf | 6 + .../termination-watcher/termination/main.tf | 72 + .../termination/outputs.tf | 7 + .../termination/variables.tf | 4 + .../termination/versions.tf | 10 + .../modules/termination-watcher/variables.tf | 85 + .../modules/termination-watcher/versions.tf | 10 + .../input/modules/webhook/direct/outputs.tf | 12 + .../input/modules/webhook/direct/policies.tf | 16 + .../input/modules/webhook/direct/variables.tf | 58 + .../input/modules/webhook/direct/versions.tf | 15 + .../input/modules/webhook/direct/webhook.tf | 155 + .../modules/webhook/eventbridge/dispatcher.tf | 152 + .../input/modules/webhook/eventbridge/main.tf | 15 + .../modules/webhook/eventbridge/outputs.tf | 22 + .../modules/webhook/eventbridge/policies.tf | 16 + .../modules/webhook/eventbridge/variables.tf | 59 + .../modules/webhook/eventbridge/versions.tf | 15 + .../modules/webhook/eventbridge/webhook.tf | 151 + .../8.0.0/input/modules/webhook/main.tf | 66 + .../8.0.0/input/modules/webhook/outputs.tf | 33 + .../8.0.0/input/modules/webhook/variables.tf | 267 + .../8.0.0/input/modules/webhook/versions.tf | 15 + .../8.0.0/input/modules/webhook/webhook.tf | 153 + .../github-runner/8.0.0/input/outputs.tf | 81 + .../8.0.0/input/variables.ami-housekeeper.tf | 70 + .../8.0.0/input/variables.deprecated.tf | 14 + .../github-runner/8.0.0/input/variables.tf | 1269 +++ .../github-runner/8.0.0/input/versions.tf | 14 + .../8.0.0/modules/ami-housekeeper/LICENSE | 22 + .../modules/ami-housekeeper/fixture.json | 39 + .../modules/ami-housekeeper/input/ami.tf | 0 .../modules/ami-housekeeper/input/iam.tf | 16 + .../modules/ami-housekeeper/input/main.tf | 136 + .../modules/ami-housekeeper/input/outputs.tf | 11 + .../ami-housekeeper/input/variables.tf | 211 + .../modules/ami-housekeeper/input/versions.tf | 10 + .../modules/compute-providers/aws/ec2/LICENSE | 22 + .../compute-providers/aws/ec2/fixture.json | 41 + .../aws/ec2/input/control-plane.tf | 229 + .../aws/ec2/input/instance-profile.tf | 9 + .../aws/ec2/input/logging.tf | 75 + .../aws/ec2/input/outputs.tf | 25 + .../aws/ec2/input/policies-runner.tf | 208 + .../aws/ec2/input/provider-contract.tf | 35 + .../aws/ec2/input/runner-config.tf | 13 + .../aws/ec2/input/runner-instances.tf | 411 + .../aws/ec2/input/scale-set.tf | 259 + .../aws/ec2/input/validations.tf | 53 + .../aws/ec2/input/variables.tf | 406 + .../aws/ec2/input/versions.tf | 10 + .../aws/ec2/trust-policy/LICENSE | 22 + .../aws/ec2/trust-policy/fixture.json | 33 + .../aws/ec2/trust-policy/input/assume-role.tf | 20 + .../aws/ec2/trust-policy/input/outputs.tf | 4 + .../aws/ec2/trust-policy/input/validations.tf | 8 + .../aws/ec2/trust-policy/input/variables.tf | 5 + .../aws/ec2/trust-policy/input/versions.tf | 10 + .../8.0.0/modules/lambda/LICENSE | 22 + .../8.0.0/modules/lambda/fixture.json | 39 + .../8.0.0/modules/lambda/input/iam.tf | 16 + .../8.0.0/modules/lambda/input/main.tf | 115 + .../8.0.0/modules/lambda/input/outputs.tf | 7 + .../8.0.0/modules/lambda/input/variables.tf | 90 + .../8.0.0/modules/lambda/input/versions.tf | 10 + .../orchestration-providers/scale-set/LICENSE | 22 + .../scale-set/fixture.json | 41 + .../scale-set/input/cluster.tf | 14 + .../scale-set/input/config-store.tf | 27 + .../scale-set/input/data.tf | 5 + .../scale-set/input/iam.tf | 225 + .../scale-set/input/locals.tf | 265 + .../scale-set/input/logging.tf | 19 + .../scale-set/input/networking.tf | 27 + .../scale-set/input/outputs.tf | 58 + .../scale-set/input/service.tf | 40 + .../scale-set/input/task.tf | 128 + .../scale-set/input/validations.tf | 425 + .../scale-set/input/variables.tf | 200 + .../scale-set/input/versions.tf | 10 + .../orchestration-providers/webhook/LICENSE | 22 + .../webhook/fixture.json | 40 + .../webhook/input/job-retry.tf | 54 + .../webhook/input/job-retry/iam-policies.tf | 127 + .../webhook/input/job-retry/job-retry.tf | 185 + .../webhook/input/job-retry/outputs.tf | 13 + .../webhook/input/job-retry/validations.tf | 26 + .../webhook/input/job-retry/variables.tf | 163 + .../webhook/input/job-retry/versions.tf | 10 + .../webhook/input/main.tf | 66 + .../webhook/input/outputs.tf | 30 + .../webhook/input/pool.tf | 68 + .../webhook/input/pool/iam-policies.tf | 80 + .../webhook/input/pool/outputs.tf | 8 + .../webhook/input/pool/pool.tf | 245 + .../webhook/input/pool/validations.tf | 18 + .../webhook/input/pool/variables.tf | 173 + .../webhook/input/pool/versions.tf | 10 + .../webhook/input/scale-runners.tf | 69 + .../input/scale-runners/common-config.tf | 20 + .../scale-runners/lambda-iam-policies.tf | 36 + .../webhook/input/scale-runners/outputs.tf | 17 + .../scale-runners/scale-down-iam-policies.tf | 50 + .../webhook/input/scale-runners/scale-down.tf | 118 + .../scale-runners/scale-up-iam-policies.tf | 108 + .../webhook/input/scale-runners/scale-up.tf | 147 + .../input/scale-runners/validations.tf | 8 + .../webhook/input/scale-runners/variables.tf | 263 + .../webhook/input/scale-runners/versions.tf | 10 + .../webhook/input/validations.tf | 11 + .../webhook/input/variables.tf | 321 + .../webhook/input/versions.tf | 10 + .../webhook/job-retry/LICENSE | 22 + .../webhook/job-retry/fixture.json | 39 + .../webhook/job-retry/input/iam-policies.tf | 127 + .../webhook/job-retry/input/job-retry.tf | 185 + .../webhook/job-retry/input/outputs.tf | 13 + .../webhook/job-retry/input/validations.tf | 26 + .../webhook/job-retry/input/variables.tf | 163 + .../webhook/job-retry/input/versions.tf | 10 + .../webhook/pool/LICENSE | 22 + .../webhook/pool/fixture.json | 39 + .../webhook/pool/input/iam-policies.tf | 80 + .../webhook/pool/input/outputs.tf | 8 + .../webhook/pool/input/pool.tf | 245 + .../webhook/pool/input/validations.tf | 18 + .../webhook/pool/input/variables.tf | 173 + .../webhook/pool/input/versions.tf | 10 + .../webhook/scale-runners/LICENSE | 22 + .../webhook/scale-runners/fixture.json | 39 + .../scale-runners/input/common-config.tf | 20 + .../input/lambda-iam-policies.tf | 36 + .../webhook/scale-runners/input/outputs.tf | 17 + .../input/scale-down-iam-policies.tf | 50 + .../webhook/scale-runners/input/scale-down.tf | 118 + .../input/scale-up-iam-policies.tf | 108 + .../webhook/scale-runners/input/scale-up.tf | 147 + .../scale-runners/input/validations.tf | 8 + .../webhook/scale-runners/input/variables.tf | 263 + .../webhook/scale-runners/input/versions.tf | 10 + .../modules/runner-binaries-syncer/LICENSE | 22 + .../runner-binaries-syncer/fixture.json | 38 + .../runner-binaries-syncer/input/iam.tf | 16 + .../runner-binaries-syncer/input/main.tf | 140 + .../runner-binaries-syncer/input/outputs.tf | 19 + .../input/runner-binaries-syncer.tf | 196 + .../runner-binaries-syncer/input/variables.tf | 261 + .../runner-binaries-syncer/input/versions.tf | 10 + .../runner-config/ssm-housekeeper/LICENSE | 22 + .../ssm-housekeeper/fixture.json | 38 + .../ssm-housekeeper/input/iam-policies.tf | 58 + .../ssm-housekeeper/input/outputs.tf | 8 + .../ssm-housekeeper/input/ssm-housekeeper.tf | 119 + .../ssm-housekeeper/input/variables.tf | 93 + .../ssm-housekeeper/input/versions.tf | 10 + .../8.0.0/modules/runners/pool/LICENSE | 22 + .../8.0.0/modules/runners/pool/fixture.json | 38 + .../8.0.0/modules/runners/pool/input/main.tf | 245 + .../modules/runners/pool/input/outputs.tf | 11 + .../modules/runners/pool/input/variables.tf | 103 + .../modules/runners/pool/input/versions.tf | 10 + .../modules/setup-iam-permissions/LICENSE | 22 + .../setup-iam-permissions/fixture.json | 32 + .../setup-iam-permissions/input/main.tf | 51 + .../setup-iam-permissions/input/outputs.tf | 8 + .../setup-iam-permissions/input/variables.tf | 27 + .../setup-iam-permissions/input/versions.tf | 10 + .../modules/storage-providers/aws/ssm/LICENSE | 22 + .../storage-providers/aws/ssm/fixture.json | 36 + .../storage-providers/aws/ssm/input/local.tf | 3 + .../aws/ssm/input/outputs.tf | 46 + .../storage-providers/aws/ssm/input/ssm.tf | 91 + .../aws/ssm/input/variables.tf | 70 + .../aws/ssm/input/versions.tf | 10 + .../8.0.0/modules/webhook/LICENSE | 22 + .../8.0.0/modules/webhook/direct/LICENSE | 22 + .../8.0.0/modules/webhook/direct/fixture.json | 40 + .../modules/webhook/direct/input/outputs.tf | 12 + .../modules/webhook/direct/input/policies.tf | 16 + .../modules/webhook/direct/input/variables.tf | 58 + .../modules/webhook/direct/input/versions.tf | 15 + .../modules/webhook/direct/input/webhook.tf | 155 + .../8.0.0/modules/webhook/eventbridge/LICENSE | 22 + .../modules/webhook/eventbridge/fixture.json | 41 + .../webhook/eventbridge/input/dispatcher.tf | 152 + .../modules/webhook/eventbridge/input/main.tf | 15 + .../webhook/eventbridge/input/outputs.tf | 22 + .../webhook/eventbridge/input/policies.tf | 16 + .../webhook/eventbridge/input/variables.tf | 59 + .../webhook/eventbridge/input/versions.tf | 15 + .../webhook/eventbridge/input/webhook.tf | 151 + .../8.0.0/modules/webhook/fixture.json | 42 + .../modules/webhook/input/direct/outputs.tf | 12 + .../modules/webhook/input/direct/policies.tf | 16 + .../modules/webhook/input/direct/variables.tf | 58 + .../modules/webhook/input/direct/versions.tf | 15 + .../modules/webhook/input/direct/webhook.tf | 155 + .../webhook/input/eventbridge/dispatcher.tf | 152 + .../modules/webhook/input/eventbridge/main.tf | 15 + .../webhook/input/eventbridge/outputs.tf | 22 + .../webhook/input/eventbridge/policies.tf | 16 + .../webhook/input/eventbridge/variables.tf | 59 + .../webhook/input/eventbridge/versions.tf | 15 + .../webhook/input/eventbridge/webhook.tf | 151 + .../8.0.0/modules/webhook/input/main.tf | 66 + .../8.0.0/modules/webhook/input/outputs.tf | 33 + .../8.0.0/modules/webhook/input/variables.tf | 267 + .../8.0.0/modules/webhook/input/versions.tf | 15 + .../8.0.0/modules/webhook/input/webhook.tf | 153 + .../grem11n/vpc-peering/8.0.0/LICENSE | 201 + .../grem11n/vpc-peering/8.0.0/fixture.json | 36 + .../grem11n/vpc-peering/8.0.0/input/data.tf | 110 + .../grem11n/vpc-peering/8.0.0/input/locals.tf | 131 + .../grem11n/vpc-peering/8.0.0/input/main.tf | 113 + .../vpc-peering/8.0.0/input/outputs.tf | 62 + .../vpc-peering/8.0.0/input/provider.tf | 9 + .../vpc-peering/8.0.0/input/variables.tf | 95 + .../vpc-peering/8.0.0/input/version.tf | 3 + .../test/fixtures/associated-cidr/LICENSE | 201 + .../fixtures/associated-cidr/fixture.json | 26 + .../fixtures/associated-cidr/input/main.tf | 53 + .../fixtures/associated-cidr/input/outputs.tf | 7 + .../associated-cidr/input/provider.tf | 13 + .../8.0.0/test/fixtures/custom-name/LICENSE | 201 + .../test/fixtures/custom-name/fixture.json | 28 + .../test/fixtures/custom-name/input/main.tf | 65 + .../fixtures/custom-name/input/outputs.tf | 7 + .../fixtures/custom-name/input/provider.tf | 13 + .../fixtures/custom-name/input/variables.tf | 17 + .../8.0.0/test/fixtures/default-name/LICENSE | 201 + .../test/fixtures/default-name/fixture.json | 28 + .../test/fixtures/default-name/input/main.tf | 65 + .../fixtures/default-name/input/outputs.tf | 7 + .../fixtures/default-name/input/provider.tf | 13 + .../fixtures/default-name/input/variables.tf | 17 + .../multi-account-multi-region/LICENSE | 201 + .../multi-account-multi-region/fixture.json | 28 + .../multi-account-multi-region/input/main.tf | 71 + .../input/outputs.tf | 7 + .../input/provider.tf | 29 + .../input/variables.tf | 23 + .../LICENSE | 201 + .../fixture.json | 30 + .../input/main.tf | 81 + .../input/outputs.tf | 7 + .../input/provider.tf | 29 + .../input/variables.tf | 11 + .../multi-account-single-region/LICENSE | 201 + .../multi-account-single-region/fixture.json | 28 + .../multi-account-single-region/input/main.tf | 71 + .../input/outputs.tf | 7 + .../input/provider.tf | 29 + .../input/variables.tf | 23 + .../test/fixtures/partial-subnets/LICENSE | 201 + .../fixtures/partial-subnets/fixture.json | 29 + .../fixtures/partial-subnets/input/data.tf | 17 + .../fixtures/partial-subnets/input/main.tf | 114 + .../fixtures/partial-subnets/input/outputs.tf | 39 + .../partial-subnets/input/provider.tf | 29 + .../partial-subnets/input/variables.tf | 35 + .../single-account-multi-region/LICENSE | 201 + .../single-account-multi-region/fixture.json | 28 + .../single-account-multi-region/input/main.tf | 71 + .../input/outputs.tf | 7 + .../input/provider.tf | 29 + .../input/variables.tf | 23 + .../LICENSE | 201 + .../fixture.json | 30 + .../input/main.tf | 73 + .../input/outputs.tf | 7 + .../input/provider.tf | 13 + .../input/variables.tf | 5 + .../LICENSE | 201 + .../fixture.json | 28 + .../input/main.tf | 67 + .../input/outputs.tf | 7 + .../input/provider.tf | 13 + .../input/variables.tf | 17 + .../single-account-single-region/LICENSE | 201 + .../single-account-single-region/fixture.json | 28 + .../input/main.tf | 65 + .../input/outputs.tf | 7 + .../input/provider.tf | 13 + .../input/variables.tf | 17 + .../registry/hashicorp/consul/0.11.0/LICENSE | 202 + .../registry/hashicorp/consul/0.11.0/NOTICE | 4 + .../hashicorp/consul/0.11.0/fixture.json | 37 + .../hashicorp/consul/0.11.0/input/main.tf | 157 + .../main.tf | 81 + .../variables.tf | 36 + .../input/modules/consul-cluster/main.tf | 265 + .../input/modules/consul-cluster/outputs.tf | 40 + .../input/modules/consul-cluster/variables.tf | 317 + .../input/modules/consul-iam-policies/main.tf | 36 + .../modules/consul-iam-policies/variables.tf | 16 + .../consul-security-group-rules/main.tf | 288 + .../consul-security-group-rules/variables.tf | 80 + .../hashicorp/consul/0.11.0/input/outputs.tf | 59 + .../consul/0.11.0/input/variables.tf | 67 + .../LICENSE | 202 + .../consul-client-security-group-rules/NOTICE | 4 + .../fixture.json | 28 + .../input/main.tf | 81 + .../input/variables.tf | 36 + .../modules/consul-iam-policies/LICENSE | 202 + .../0.11.0/modules/consul-iam-policies/NOTICE | 4 + .../modules/consul-iam-policies/fixture.json | 30 + .../modules/consul-iam-policies/input/main.tf | 36 + .../consul-iam-policies/input/variables.tf | 16 + .../blueprints/getting-started/LICENSE | 178 + .../blueprints/getting-started/fixture.json | 35 + .../blueprints/getting-started/input/main.tf | 134 + .../getting-started/input/outputs.tf | 33 + .../getting-started/input/terraform.tf | 23 + .../getting-started/input/variables.tf | 17 + .../registry/hashicorp/vault/0.17.0/LICENSE | 202 + .../registry/hashicorp/vault/0.17.0/NOTICE | 4 + .../vault-dynamodb-backend/dynamodb/LICENSE | 202 + .../vault-dynamodb-backend/dynamodb/NOTICE | 4 + .../dynamodb/fixture.json | 27 + .../dynamodb/input/main.tf | 24 + .../dynamodb/input/variables.tf | 18 + .../hashicorp/vault/0.17.0/fixture.json | 38 + .../hashicorp/vault/0.17.0/input/main.tf | 232 + .../input/modules/vault-cluster/main.tf | 404 + .../input/modules/vault-cluster/outputs.tf | 52 + .../input/modules/vault-cluster/variables.tf | 244 + .../0.17.0/input/modules/vault-elb/main.tf | 125 + .../0.17.0/input/modules/vault-elb/outputs.tf | 20 + .../input/modules/vault-elb/variables.tf | 142 + .../vault-security-group-rules/main.tf | 53 + .../vault-security-group-rules/variables.tf | 38 + .../hashicorp/vault/0.17.0/input/outputs.tf | 68 + .../hashicorp/vault/0.17.0/input/variables.tf | 104 + .../vault/0.17.0/modules/vault-elb/LICENSE | 202 + .../vault/0.17.0/modules/vault-elb/NOTICE | 4 + .../0.17.0/modules/vault-elb/fixture.json | 34 + .../0.17.0/modules/vault-elb/input/main.tf | 125 + .../0.17.0/modules/vault-elb/input/outputs.tf | 20 + .../modules/vault-elb/input/variables.tf | 142 + .../vault-security-group-rules/LICENSE | 202 + .../modules/vault-security-group-rules/NOTICE | 4 + .../vault-security-group-rules/fixture.json | 28 + .../vault-security-group-rules/input/main.tf | 53 + .../input/variables.tf | 38 + .../hmrc/s3-bucket-core/3.2.2/LICENSE | 201 + .../hmrc/s3-bucket-core/3.2.2/fixture.json | 38 + .../hmrc/s3-bucket-core/3.2.2/input/main.tf | 164 + .../s3-bucket-core/3.2.2/input/outputs.tf | 28 + .../s3-bucket-core/3.2.2/input/variables.tf | 178 + .../honeycombio/integrations/2.3.1/LICENSE | 13 + .../honeycombio/integrations/2.3.1/NOTICE | 13 + .../2.3.1/examples/cloudwatch-logs/LICENSE | 13 + .../2.3.1/examples/cloudwatch-logs/NOTICE | 13 + .../examples/cloudwatch-logs/fixture.json | 29 + .../examples/cloudwatch-logs/input/main.tf | 36 + .../cloudwatch-logs/input/variables.tf | 11 + .../2.3.1/examples/cloudwatch-metrics/LICENSE | 13 + .../2.3.1/examples/cloudwatch-metrics/NOTICE | 13 + .../examples/cloudwatch-metrics/fixture.json | 29 + .../examples/cloudwatch-metrics/input/main.tf | 55 + .../cloudwatch-metrics/input/variables.tf | 11 + .../2.3.1/examples/complete/LICENSE | 13 + .../2.3.1/examples/complete/NOTICE | 13 + .../2.3.1/examples/complete/fixture.json | 33 + .../2.3.1/examples/complete/input/main.tf | 142 + .../examples/complete/input/variables.tf | 16 + .../2.3.1/examples/rds-logs/mysql/LICENSE | 13 + .../2.3.1/examples/rds-logs/mysql/NOTICE | 13 + .../examples/rds-logs/mysql/fixture.json | 33 + .../examples/rds-logs/mysql/input/main.tf | 110 + .../rds-logs/mysql/input/variables.tf | 11 + .../examples/rds-logs/postgresql/LICENSE | 13 + .../2.3.1/examples/rds-logs/postgresql/NOTICE | 13 + .../examples/rds-logs/postgresql/fixture.json | 33 + .../rds-logs/postgresql/input/main.tf | 111 + .../rds-logs/postgresql/input/variables.tf | 23 + .../2.3.1/examples/s3-logfile/LICENSE | 13 + .../2.3.1/examples/s3-logfile/NOTICE | 13 + .../2.3.1/examples/s3-logfile/fixture.json | 29 + .../2.3.1/examples/s3-logfile/input/main.tf | 16 + .../examples/s3-logfile/input/variables.tf | 17 + .../integrations/2.3.1/fixture.json | 43 + .../integrations/2.3.1/input/main.tf | 121 + .../input/modules/cloudwatch-logs/iam.tf | 49 + .../input/modules/cloudwatch-logs/main.tf | 46 + .../input/modules/cloudwatch-logs/outputs.tf | 3 + .../modules/cloudwatch-logs/variables.tf | 179 + .../input/modules/cloudwatch-logs/versions.tf | 10 + .../input/modules/cloudwatch-metrics/iam.tf | 32 + .../input/modules/cloudwatch-metrics/main.tf | 65 + .../modules/cloudwatch-metrics/outputs.tf | 17 + .../modules/cloudwatch-metrics/variables.tf | 201 + .../modules/cloudwatch-metrics/versions.tf | 10 + .../kinesis-firehose-honeycomb/main.tf | 257 + .../kinesis-firehose-honeycomb/outputs.tf | 13 + .../kinesis-firehose-honeycomb/variables.tf | 158 + .../kinesis-firehose-honeycomb/versions.tf | 10 + .../2.3.1/input/modules/rds-logs/main.tf | 83 + .../2.3.1/input/modules/rds-logs/variables.tf | 222 + .../2.3.1/input/modules/rds-logs/versions.tf | 10 + .../2.3.1/input/modules/s3-logfile/main.tf | 100 + .../input/modules/s3-logfile/variables.tf | 177 + .../input/modules/s3-logfile/versions.tf | 10 + .../integrations/2.3.1/input/outputs.tf | 0 .../integrations/2.3.1/input/variables.tf | 336 + .../integrations/2.3.1/input/versions.tf | 10 + .../kinesis-firehose-honeycomb/LICENSE | 13 + .../modules/kinesis-firehose-honeycomb/NOTICE | 13 + .../kinesis-firehose-honeycomb/fixture.json | 41 + .../kinesis-firehose-honeycomb/input/main.tf | 257 + .../input/outputs.tf | 13 + .../input/variables.tf | 158 + .../input/versions.tf | 10 + .../2.3.1/modules/s3-logfile/LICENSE | 13 + .../2.3.1/modules/s3-logfile/NOTICE | 13 + .../2.3.1/modules/s3-logfile/fixture.json | 39 + .../2.3.1/modules/s3-logfile/input/main.tf | 100 + .../modules/s3-logfile/input/variables.tf | 177 + .../modules/s3-logfile/input/versions.tf | 10 + .../base-networking/6.1.0-rc.1/LICENSE | 21 + .../base-networking/6.1.0-rc.1/fixture.json | 39 + .../6.1.0-rc.1/input/account.tf | 5 + .../6.1.0-rc.1/input/defaults.tf | 31 + .../base-networking/6.1.0-rc.1/input/igw.tf | 10 + .../base-networking/6.1.0-rc.1/input/main.tf | 0 .../base-networking/6.1.0-rc.1/input/nat.tf | 28 + .../6.1.0-rc.1/input/outputs.tf | 59 + .../6.1.0-rc.1/input/private_subnets.tf | 42 + .../6.1.0-rc.1/input/public_subnets.tf | 42 + .../6.1.0-rc.1/input/terraform.tf | 10 + .../6.1.0-rc.1/input/variables.tf | 74 + .../base-networking/6.1.0-rc.1/input/vpc.tf | 17 + .../spec/unit/infra/prerequisites/LICENSE | 21 + .../unit/infra/prerequisites/fixture.json | 30 + .../unit/infra/prerequisites/input/main.tf | 11 + .../unit/infra/prerequisites/input/outputs.tf | 15 + .../infra/prerequisites/input/provider.tf | 3 + .../infra/prerequisites/input/terraform.tf | 10 + .../infra/prerequisites/input/variables.tf | 3 + .../spec/unit/infra/prerequisites/LICENSE | 21 + .../unit/infra/prerequisites/fixture.json | 33 + .../unit/infra/prerequisites/input/main.tf | 27 + .../unit/infra/prerequisites/input/outputs.tf | 19 + .../infra/prerequisites/input/providers.tf | 3 + .../prerequisites/input/security_groups.tf | 12 + .../infra/prerequisites/input/terraform.tf | 10 + .../infra/prerequisites/input/variables.tf | 10 + .../ecs-service/5.2.0-rc.4/LICENSE | 21 + .../ecs-service/5.2.0-rc.4/fixture.json | 37 + .../ecs-service/5.2.0-rc.4/input/log_group.tf | 12 + .../ecs-service/5.2.0-rc.4/input/main.tf | 0 .../ecs-service/5.2.0-rc.4/input/outputs.tf | 14 + .../5.2.0-rc.4/input/security_groups.tf | 42 + .../ecs-service/5.2.0-rc.4/input/service.tf | 66 + .../5.2.0-rc.4/input/service_discovery.tf | 14 + .../5.2.0-rc.4/input/task_definition.tf | 106 + .../ecs-service/5.2.0-rc.4/input/terraform.tf | 10 + .../ecs-service/5.2.0-rc.4/input/variables.tf | 317 + .../spec/unit/infra/prerequisites/LICENSE | 21 + .../unit/infra/prerequisites/fixture.json | 33 + .../unit/infra/prerequisites/input/alb.tf | 57 + .../unit/infra/prerequisites/input/main.tf | 122 + .../unit/infra/prerequisites/input/outputs.tf | 75 + .../infra/prerequisites/input/provider.tf | 3 + .../prerequisites/input/service_discovery.tf | 18 + .../infra/prerequisites/input/terraform.tf | 14 + .../infra/prerequisites/input/variables.tf | 29 + .../int128/nat-instance/2.1.0/LICENSE | 190 + .../int128/nat-instance/2.1.0/fixture.json | 36 + .../int128/nat-instance/2.1.0/input/main.tf | 211 + .../nat-instance/2.1.0/input/outputs.tf | 20 + .../nat-instance/2.1.0/input/variables.tf | 90 + .../jeromegamez/enforce-mfa/2.0.0/LICENSE | 19 + .../enforce-mfa/2.0.0/fixture.json | 29 + .../enforce-mfa/2.0.0/input/data.tf | 315 + .../enforce-mfa/2.0.0/input/main.tf | 17 + .../enforce-mfa/2.0.0/input/variables.tf | 17 + .../cloudfront/5.0.1/cloudfront/LICENSE | 21 + .../cloudfront/5.0.1/cloudfront/fixture.json | 35 + .../cloudfront/5.0.1/cloudfront/input/main.tf | 250 + .../5.0.1/cloudfront/input/outputs.tf | 54 + .../5.0.1/cloudfront/input/variables.tf | 190 + .../5.0.1/cloudfront/input/versions.tf | 9 + .../jmgreg31/cloudfront/5.0.1/example/LICENSE | 21 + .../cloudfront/5.0.1/example/fixture.json | 30 + .../cloudfront/5.0.1/example/input/main.tf | 238 + .../jpamies/certificate/2.0.0/LICENSE | 201 + .../jpamies/certificate/2.0.0/fixture.json | 31 + .../jpamies/certificate/2.0.0/input/main.tf | 46 + .../certificate/2.0.0/input/outputs.tf | 19 + .../certificate/2.0.0/input/variables.tf | 54 + .../certificate/2.0.0/input/version.tf | 9 + .../k9securityio/kms-key/0.7.0/LICENSE | 202 + .../k9securityio/kms-key/0.7.0/fixture.json | 34 + .../kms-key/0.7.0/input/interface.tf | 191 + .../kms-key/0.7.0/input/k9policy/interface.tf | 89 + .../kms-key/0.7.0/input/k9policy/policy.tf | 189 + .../kms-key/0.7.0/input/k9policy/versions.tf | 3 + .../k9securityio/kms-key/0.7.0/input/kms.tf | 73 + .../kms-key/0.7.0/input/versions.tf | 3 + .../kms-key/0.7.0/k9policy/LICENSE | 202 + .../kms-key/0.7.0/k9policy/fixture.json | 31 + .../kms-key/0.7.0/k9policy/input/interface.tf | 89 + .../kms-key/0.7.0/k9policy/input/policy.tf | 189 + .../kms-key/0.7.0/k9policy/input/versions.tf | 3 + .../eks-cluster-autoscaler/5.0.1/LICENSE | 201 + .../eks-cluster-autoscaler/5.0.1/fixture.json | 39 + .../5.0.1/input/addon-irsa.tf | 56 + .../5.0.1/input/addon.tf | 106 + .../eks-cluster-autoscaler/5.0.1/input/iam.tf | 35 + .../5.0.1/input/main.tf | 47 + .../5.0.1/input/migrations.tf | 31 + .../5.0.1/input/variables-addon-irsa.tf | 175 + .../5.0.1/input/variables-addon.tf | 388 + .../5.0.1/input/variables-common.tf | 14 + .../5.0.1/input/variables.tf | 1 + .../5.0.1/input/versions.tf | 23 + .../lablabs/eks-efs-csi-driver/3.0.1/LICENSE | 201 + .../eks-efs-csi-driver/3.0.1/fixture.json | 39 + .../3.0.1/input/addon-irsa.tf | 56 + .../eks-efs-csi-driver/3.0.1/input/addon.tf | 106 + .../eks-efs-csi-driver/3.0.1/input/iam.tf | 70 + .../eks-efs-csi-driver/3.0.1/input/main.tf | 46 + .../3.0.1/input/migrations.tf | 29 + .../3.0.1/input/variables-addon-irsa.tf | 175 + .../3.0.1/input/variables-addon.tf | 388 + .../3.0.1/input/variables-common.tf | 14 + .../3.0.1/input/variables.tf | 1 + .../3.0.1/input/versions.tf | 23 + .../lablabs/eks-external-dns/4.0.1/LICENSE | 201 + .../eks-external-dns/4.0.1/fixture.json | 39 + .../4.0.1/input/addon-irsa.tf | 56 + .../eks-external-dns/4.0.1/input/addon.tf | 106 + .../eks-external-dns/4.0.1/input/iam.tf | 33 + .../eks-external-dns/4.0.1/input/main.tf | 47 + .../4.0.1/input/migrations.tf | 29 + .../4.0.1/input/variables-addon-irsa.tf | 175 + .../4.0.1/input/variables-addon.tf | 388 + .../4.0.1/input/variables-common.tf | 14 + .../eks-external-dns/4.0.1/input/variables.tf | 12 + .../eks-external-dns/4.0.1/input/versions.tf | 23 + .../eks-kube-state-metrics/4.0.1/LICENSE | 201 + .../eks-kube-state-metrics/4.0.1/fixture.json | 36 + .../4.0.1/input/addon.tf | 106 + .../4.0.1/input/main.tf | 22 + .../4.0.1/input/migrations.tf | 14 + .../4.0.1/input/variables-addon.tf | 388 + .../4.0.1/input/variables-common.tf | 14 + .../4.0.1/input/variables.tf | 1 + .../4.0.1/input/versions.tf | 23 + .../5.0.1/LICENSE | 201 + .../5.0.1/fixture.json | 41 + .../5.0.1/input/addon-irsa.tf | 56 + .../5.0.1/input/addon.tf | 106 + .../5.0.1/input/iam.tf | 298 + .../5.0.1/input/main.tf | 52 + .../5.0.1/input/migrations.tf | 52 + .../5.0.1/input/validations.tf | 9 + .../5.0.1/input/variables-addon-irsa.tf | 175 + .../5.0.1/input/variables-addon.tf | 388 + .../5.0.1/input/variables-common.tf | 14 + .../5.0.1/input/variables.tf | 6 + .../5.0.1/input/versions.tf | 23 + .../eks-node-problem-detector/4.0.0/LICENSE | 201 + .../4.0.0/fixture.json | 36 + .../4.0.0/input/addon.tf | 106 + .../4.0.0/input/main.tf | 21 + .../4.0.0/input/migrations.tf | 14 + .../4.0.0/input/variables-addon.tf | 388 + .../4.0.0/input/variables-common.tf | 14 + .../4.0.0/input/variables.tf | 1 + .../4.0.0/input/versions.tf | 23 + .../agentless-scanning/0.19.0/LICENSE | 21 + .../agentless-scanning/0.19.0/fixture.json | 43 + .../agentless-scanning/0.19.0/input/main.tf | 1228 +++ .../agentless-scanning/0.19.0/input/output.tf | 63 + .../0.19.0/input/variables.tf | 374 + .../0.19.0/input/versions.tf | 12 + .../registry/lacework/ecr/0.9.3/LICENSE | 21 + .../registry/lacework/ecr/0.9.3/fixture.json | 40 + .../registry/lacework/ecr/0.9.3/input/main.tf | 62 + .../lacework/ecr/0.9.3/input/outputs.tf | 19 + .../lacework/ecr/0.9.3/input/variables.tf | 92 + .../lacework/ecr/0.9.3/input/versions.tf | 12 + .../registry/lacework/ecs-agent/0.5.3/LICENSE | 21 + .../lacework/ecs-agent/0.5.3/fixture.json | 40 + .../lacework/ecs-agent/0.5.3/input/main.tf | 206 + .../lacework/ecs-agent/0.5.3/input/output.tf | 19 + .../ecs-agent/0.5.3/input/variables.tf | 111 + .../ecs-agent/0.5.3/input/versions.tf | 13 + .../lacework/eks-audit-log/1.2.0/LICENSE | 21 + .../lacework/eks-audit-log/1.2.0/fixture.json | 43 + .../eks-audit-log/1.2.0/input/main.tf | 655 ++ .../eks-audit-log/1.2.0/input/output.tf | 74 + .../eks-audit-log/1.2.0/input/variables.tf | 250 + .../eks-audit-log/1.2.0/input/versions.tf | 13 + .../registry/lacework/ssm-agent/1.0.2/LICENSE | 21 + .../lacework/ssm-agent/1.0.2/fixture.json | 34 + .../lacework/ssm-agent/1.0.2/input/main.tf | 94 + .../lacework/ssm-agent/1.0.2/input/outputs.tf | 4 + .../ssm-agent/1.0.2/input/variables.tf | 53 + .../ssm-agent/1.0.2/input/versions.tf | 11 + .../registry/lazzurs/efs/0.3.3/LICENSE | 21 + .../registry/lazzurs/efs/0.3.3/fixture.json | 30 + .../registry/lazzurs/efs/0.3.3/input/main.tf | 56 + .../lazzurs/efs/0.3.3/input/outputs.tf | 34 + .../lazzurs/efs/0.3.3/input/variables.tf | 29 + .../lgallard/cognito-user-pool/5.1.4/LICENSE | 201 + .../cognito-user-pool/5.1.4/fixture.json | 39 + .../cognito-user-pool/5.1.4/input/client.tf | 135 + .../cognito-user-pool/5.1.4/input/domain.tf | 7 + .../5.1.4/input/identity-provider.tf | 38 + .../5.1.4/input/locals-admin.tf | 19 + .../5.1.4/input/locals-device.tf | 33 + .../5.1.4/input/locals-email.tf | 45 + .../5.1.4/input/locals-lambda.tf | 31 + .../5.1.4/input/locals-main.tf | 61 + .../5.1.4/input/locals-password.tf | 35 + .../5.1.4/input/locals-sms.tf | 30 + .../5.1.4/input/log-delivery-configuration.tf | 34 + .../cognito-user-pool/5.1.4/input/main.tf | 585 ++ .../5.1.4/input/managed-login-branding.tf | 53 + .../cognito-user-pool/5.1.4/input/outputs.tf | 181 + .../5.1.4/input/resource-server.tf | 41 + .../5.1.4/input/ui-customization.tf | 42 + .../5.1.4/input/user-group.tf | 35 + .../5.1.4/input/variables.tf | 1276 +++ .../cognito-user-pool/5.1.4/input/versions.tf | 9 + .../registry/lgallard/ecr/2.1.1/LICENSE | 201 + .../registry/lgallard/ecr/2.1.1/fixture.json | 42 + .../lgallard/ecr/2.1.1/input/locals.tf | 299 + .../registry/lgallard/ecr/2.1.1/input/main.tf | 302 + .../ecr/2.1.1/input/modules/kms/locals.tf | 173 + .../ecr/2.1.1/input/modules/kms/main.tf | 30 + .../ecr/2.1.1/input/modules/kms/outputs.tf | 106 + .../ecr/2.1.1/input/modules/kms/variables.tf | 172 + .../ecr/2.1.1/input/modules/kms/versions.tf | 10 + .../input/modules/pull-through-cache/main.tf | 60 + .../modules/pull-through-cache/outputs.tf | 24 + .../modules/pull-through-cache/variables.tf | 43 + .../modules/pull-through-cache/versions.tf | 14 + .../lgallard/ecr/2.1.1/input/monitoring.tf | 426 + .../lgallard/ecr/2.1.1/input/outputs.tf | 313 + .../lgallard/ecr/2.1.1/input/policies.tf | 212 + .../lgallard/ecr/2.1.1/input/repository.tf | 165 + .../lgallard/ecr/2.1.1/input/variables.tf | 785 ++ .../lgallard/ecr/2.1.1/input/versions.tf | 19 + .../lgallard/ecr/2.1.1/modules/kms/LICENSE | 201 + .../ecr/2.1.1/modules/kms/fixture.json | 35 + .../ecr/2.1.1/modules/kms/input/locals.tf | 173 + .../ecr/2.1.1/modules/kms/input/main.tf | 30 + .../ecr/2.1.1/modules/kms/input/outputs.tf | 106 + .../ecr/2.1.1/modules/kms/input/variables.tf | 172 + .../ecr/2.1.1/modules/kms/input/versions.tf | 10 + .../2.1.1/modules/pull-through-cache/LICENSE | 201 + .../modules/pull-through-cache/fixture.json | 33 + .../modules/pull-through-cache/input/main.tf | 60 + .../pull-through-cache/input/outputs.tf | 24 + .../pull-through-cache/input/variables.tf | 43 + .../pull-through-cache/input/versions.tf | 14 + .../lgallard/elasticsearch/0.14.1/LICENSE | 201 + .../LICENSE | 201 + .../fixture.json | 31 + .../input/datasources.tf | 6 + .../input/main.tf | 64 + .../input/provider.tf | 4 + .../input/variables.tf | 14 + .../input/versions.tf | 7 + .../LICENSE | 201 + .../fixture.json | 31 + .../input/datasources.tf | 6 + .../input/main.tf | 66 + .../input/provider.tf | 4 + .../input/variables.tf | 14 + .../input/versions.tf | 7 + .../elasticsearch/0.14.1/examples/vpc/LICENSE | 201 + .../0.14.1/examples/vpc/fixture.json | 31 + .../0.14.1/examples/vpc/input/datasources.tf | 6 + .../0.14.1/examples/vpc/input/main.tf | 46 + .../0.14.1/examples/vpc/input/provider.tf | 4 + .../0.14.1/examples/vpc/input/variable.tf | 6 + .../0.14.1/examples/vpc/input/versions.tf | 8 + .../elasticsearch/0.14.1/fixture.json | 41 + .../elasticsearch/0.14.1/input/iam.tf | 42 + .../elasticsearch/0.14.1/input/kms.tf | 3 + .../elasticsearch/0.14.1/input/main.tf | 287 + .../elasticsearch/0.14.1/input/outputs.tf | 40 + .../elasticsearch/0.14.1/input/variables.tf | 365 + .../elasticsearch/0.14.1/input/versions.tf | 8 + .../lgallard/secrets-manager/1.3.0/LICENSE | 201 + .../secrets-manager/1.3.0/fixture.json | 37 + .../secrets-manager/1.3.0/input/data.tf | 15 + .../secrets-manager/1.3.0/input/main.tf | 246 + .../secrets-manager/1.3.0/input/outputs.tf | 158 + .../secrets-manager/1.3.0/input/variables.tf | 258 + .../secrets-manager/1.3.0/input/versions.tf | 10 + .../lorenzoaiello/rds-alarms/2.4.1/LICENSE | 21 + .../rds-alarms/2.4.1/fixture.json | 32 + .../rds-alarms/2.4.1/input/main.tf | 242 + .../rds-alarms/2.4.1/input/outputs.tf | 68 + .../rds-alarms/2.4.1/input/variables.tf | 183 + .../rds-alarms/2.4.1/input/versions.tf | 3 + .../masterpointio/ssm-agent/1.8.1/LICENSE | 202 + .../ssm-agent/1.8.1/fixture.json | 42 + .../ssm-agent/1.8.1/input/context.tf | 279 + .../ssm-agent/1.8.1/input/data.tf | 136 + .../ssm-agent/1.8.1/input/main.tf | 384 + .../ssm-agent/1.8.1/input/outputs.tf | 34 + .../ssm-agent/1.8.1/input/validations.tf | 27 + .../ssm-agent/1.8.1/input/variables.tf | 273 + .../ssm-agent/1.8.1/input/versions.tf | 15 + .../masterpointio/tailscale/2.1.0/LICENSE | 202 + .../tailscale/2.1.0/fixture.json | 38 + .../tailscale/2.1.0/input/context.tf | 279 + .../tailscale/2.1.0/input/main.tf | 138 + .../tailscale/2.1.0/input/outputs.tf | 19 + .../tailscale/2.1.0/input/variables.tf | 276 + .../tailscale/2.1.0/input/versions.tf | 14 + .../mewa/apigateway-cors/2.0.1/LICENSE | 7 + .../mewa/apigateway-cors/2.0.1/fixture.json | 32 + .../mewa/apigateway-cors/2.0.1/input/main.tf | 52 + .../apigateway-cors/2.0.1/input/variables.tf | 36 + .../apigateway-cors/2.0.1/input/versions.tf | 4 + .../next-js-image-optimization/12.1.3/LICENSE | 201 + .../examples/with-custom-domain/LICENSE | 201 + .../examples/with-custom-domain/fixture.json | 32 + .../examples/with-custom-domain/input/main.tf | 98 + .../examples/with-existing-cloudfront/LICENSE | 201 + .../with-existing-cloudfront/fixture.json | 33 + .../with-existing-cloudfront/input/main.tf | 111 + .../examples/with-next-js-export/LICENSE | 201 + .../examples/with-next-js-export/fixture.json | 36 + .../with-next-js-export/input/main.tf | 217 + .../12.1.3/examples/with-next-js/LICENSE | 201 + .../12.1.3/examples/with-next-js/fixture.json | 28 + .../examples/with-next-js/input/main.tf | 22 + .../12.1.3/fixture.json | 38 + .../12.1.3/input/main.tf | 252 + .../input/modules/cloudfront-cache/main.tf | 85 + .../input/modules/cloudfront-cache/outputs.tf | 7 + .../modules/cloudfront-cache/variables.tf | 37 + .../modules/cloudfront-cache/versions.tf | 10 + .../12.1.3/input/outputs.tf | 34 + .../12.1.3/input/variables.tf | 178 + .../12.1.3/input/versions.tf | 10 + .../12.1.3/modules/cloudfront-cache/LICENSE | 201 + .../modules/cloudfront-cache/fixture.json | 34 + .../modules/cloudfront-cache/input/main.tf | 85 + .../modules/cloudfront-cache/input/outputs.tf | 7 + .../cloudfront-cache/input/variables.tf | 37 + .../cloudfront-cache/input/versions.tf | 10 + .../mineiros-io/s3-bucket/0.6.0/LICENSE | 201 + .../0.6.0/examples/secure-s3-bucket/LICENSE | 201 + .../examples/secure-s3-bucket/fixture.json | 25 + .../examples/secure-s3-bucket/input/main.tf | 77 + .../mineiros-io/s3-bucket/0.6.0/fixture.json | 38 + .../mineiros-io/s3-bucket/0.6.0/input/main.tf | 363 + .../s3-bucket/0.6.0/input/outputs.tf | 88 + .../s3-bucket/0.6.0/input/variables.tf | 276 + .../s3-bucket/0.6.0/input/versions.tf | 11 + .../mongodb/ecs-task-definition/2.1.5/LICENSE | 201 + .../ecs-task-definition/2.1.5/fixture.json | 37 + .../ecs-task-definition/2.1.5/input/main.tf | 190 + .../2.1.5/input/outputs.tf | 20 + .../2.1.5/input/variables.tf | 263 + .../2.1.5/input/versions.tf | 4 + .../moritzzimmer/lambda/8.6.0/LICENSE | 21 + .../moritzzimmer/lambda/8.6.0/fixture.json | 40 + .../8.6.0/input/cloudwatch_event_rules.tf | 38 + .../lambda/8.6.0/input/cloudwatch_logs.tf | 50 + .../moritzzimmer/lambda/8.6.0/input/data.tf | 5 + .../8.6.0/input/event_source_mappings.tf | 210 + .../moritzzimmer/lambda/8.6.0/input/iam.tf | 114 + .../moritzzimmer/lambda/8.6.0/input/main.tf | 202 + .../lambda/8.6.0/input/outputs.tf | 39 + .../lambda/8.6.0/input/sns_subscriptions.tf | 22 + .../lambda/8.6.0/input/variables.tf | 302 + .../lambda/8.6.0/input/versions.tf | 10 + .../lambda/8.6.0/modules/deployment/LICENSE | 21 + .../8.6.0/modules/deployment/fixture.json | 39 + .../modules/deployment/input/codebuild.tf | 169 + .../modules/deployment/input/codedeploy.tf | 37 + .../8.6.0/modules/deployment/input/data.tf | 5 + .../modules/deployment/input/iam_codebuild.tf | 100 + .../deployment/input/iam_codedeploy.tf | 82 + .../deployment/input/iam_codepipeline.tf | 129 + .../modules/deployment/input/iam_trigger.tf | 29 + .../8.6.0/modules/deployment/input/main.tf | 206 + .../modules/deployment/input/notification.tf | 49 + .../8.6.0/modules/deployment/input/outputs.tf | 54 + .../modules/deployment/input/trigger_ecr.tf | 45 + .../modules/deployment/input/trigger_s3.tf | 35 + .../modules/deployment/input/variables.tf | 211 + .../modules/deployment/input/versions.tf | 10 + .../1.1.1/LICENSE | 21 + .../1.1.1/fixture.json | 31 + .../1.1.1/input/main.tf | 10 + .../1.1.1/input/outputs.tf | 3 + .../1.1.1/input/variables.tf | 38 + .../1.1.1/input/versions.tf | 10 + .../remote-state-s3-backend/1.6.1/LICENSE | 21 + .../1.6.1/fixture.json | 40 + .../1.6.1/input/bucket.tf | 143 + .../1.6.1/input/dynamo.tf | 43 + .../1.6.1/input/main.tf | 12 + .../1.6.1/input/migrations.tf | 24 + .../1.6.1/input/outputs.tf | 34 + .../1.6.1/input/policy.tf | 61 + .../1.6.1/input/replica.tf | 307 + .../1.6.1/input/variables.tf | 256 + .../nozaq/secure-baseline/2.1.0/LICENSE | 21 + .../nozaq/secure-baseline/2.1.0/fixture.json | 41 + .../2.1.0/input/analyzer_baselines.tf | 245 + .../secure-baseline/2.1.0/input/bucket.tf | 255 + .../2.1.0/input/config_baselines.tf | 659 ++ .../2.1.0/input/ebs_baselines.tf | 156 + .../2.1.0/input/guardduty_baselines.tf | 299 + .../nozaq/secure-baseline/2.1.0/input/main.tf | 136 + .../secure-baseline/2.1.0/input/migrations.tf | 555 ++ .../input/modules/alarm-baseline/main.tf | 538 ++ .../modules/alarm-baseline/migrations.tf | 14 + .../input/modules/alarm-baseline/outputs.tf | 4 + .../input/modules/alarm-baseline/variables.tf | 126 + .../input/modules/alarm-baseline/versions.tf | 10 + .../input/modules/analyzer-baseline/main.tf | 6 + .../modules/analyzer-baseline/migrations.tf | 9 + .../modules/analyzer-baseline/outputs.tf | 0 .../modules/analyzer-baseline/variables.tf | 19 + .../modules/analyzer-baseline/versions.tf | 10 + .../input/modules/cloudtrail-baseline/main.tf | 277 + .../modules/cloudtrail-baseline/migrations.tf | 14 + .../modules/cloudtrail-baseline/outputs.tf | 24 + .../modules/cloudtrail-baseline/variables.tf | 121 + .../modules/cloudtrail-baseline/versions.tf | 10 + .../input/modules/config-baseline/main.tf | 66 + .../modules/config-baseline/migrations.tf | 29 + .../input/modules/config-baseline/outputs.tf | 9 + .../modules/config-baseline/variables.tf | 59 + .../input/modules/config-baseline/versions.tf | 10 + .../2.1.0/input/modules/ebs-baseline/main.tf | 3 + .../input/modules/ebs-baseline/migrations.tf | 9 + .../input/modules/ebs-baseline/outputs.tf | 0 .../input/modules/ebs-baseline/variables.tf | 0 .../input/modules/ebs-baseline/versions.tf | 10 + .../input/modules/guardduty-baseline/main.tf | 35 + .../modules/guardduty-baseline/migrations.tf | 9 + .../modules/guardduty-baseline/outputs.tf | 4 + .../modules/guardduty-baseline/variables.tf | 40 + .../modules/guardduty-baseline/versions.tf | 10 + .../2.1.0/input/modules/iam-baseline/main.tf | 49 + .../input/modules/iam-baseline/outputs.tf | 4 + .../input/modules/iam-baseline/variables.tf | 85 + .../input/modules/iam-baseline/versions.tf | 10 + .../2.1.0/input/modules/s3-baseline/main.tf | 7 + .../input/modules/s3-baseline/outputs.tf | 0 .../input/modules/s3-baseline/variables.tf | 23 + .../input/modules/s3-baseline/versions.tf | 10 + .../2.1.0/input/modules/secure-bucket/main.tf | 153 + .../input/modules/secure-bucket/migrations.tf | 30 + .../input/modules/secure-bucket/outputs.tf | 9 + .../input/modules/secure-bucket/variables.tf | 35 + .../input/modules/secure-bucket/versions.tf | 10 + .../modules/securityhub-baseline/main.tf | 74 + .../securityhub-baseline/migrations.tf | 10 + .../modules/securityhub-baseline/outputs.tf | 0 .../modules/securityhub-baseline/variables.tf | 44 + .../modules/securityhub-baseline/versions.tf | 10 + .../2.1.0/input/modules/vpc-baseline/main.tf | 97 + .../input/modules/vpc-baseline/migrations.tf | 24 + .../input/modules/vpc-baseline/outputs.tf | 24 + .../input/modules/vpc-baseline/variables.tf | 57 + .../input/modules/vpc-baseline/versions.tf | 10 + .../secure-baseline/2.1.0/input/outputs.tf | 268 + .../2.1.0/input/securityhub_baselines.tf | 296 + .../secure-baseline/2.1.0/input/variables.tf | 650 ++ .../2.1.0/input/vpc_baselines.tf | 387 + .../2.1.0/modules/alarm-baseline/LICENSE | 21 + .../2.1.0/modules/alarm-baseline/fixture.json | 35 + .../modules/alarm-baseline/input/main.tf | 538 ++ .../alarm-baseline/input/migrations.tf | 14 + .../modules/alarm-baseline/input/outputs.tf | 4 + .../modules/alarm-baseline/input/variables.tf | 126 + .../modules/alarm-baseline/input/versions.tf | 10 + .../2.1.0/modules/analyzer-baseline/LICENSE | 21 + .../modules/analyzer-baseline/fixture.json | 30 + .../modules/analyzer-baseline/input/main.tf | 6 + .../analyzer-baseline/input/migrations.tf | 9 + .../analyzer-baseline/input/outputs.tf | 0 .../analyzer-baseline/input/variables.tf | 19 + .../analyzer-baseline/input/versions.tf | 10 + .../2.1.0/modules/cloudtrail-baseline/LICENSE | 21 + .../modules/cloudtrail-baseline/fixture.json | 35 + .../modules/cloudtrail-baseline/input/main.tf | 277 + .../cloudtrail-baseline/input/migrations.tf | 14 + .../cloudtrail-baseline/input/outputs.tf | 24 + .../cloudtrail-baseline/input/variables.tf | 121 + .../cloudtrail-baseline/input/versions.tf | 10 + .../2.1.0/modules/config-baseline/LICENSE | 21 + .../modules/config-baseline/fixture.json | 33 + .../modules/config-baseline/input/main.tf | 66 + .../config-baseline/input/migrations.tf | 29 + .../modules/config-baseline/input/outputs.tf | 9 + .../config-baseline/input/variables.tf | 59 + .../modules/config-baseline/input/versions.tf | 10 + .../2.1.0/modules/ebs-baseline/LICENSE | 21 + .../2.1.0/modules/ebs-baseline/fixture.json | 28 + .../2.1.0/modules/ebs-baseline/input/main.tf | 3 + .../modules/ebs-baseline/input/migrations.tf | 9 + .../modules/ebs-baseline/input/outputs.tf | 0 .../modules/ebs-baseline/input/variables.tf | 0 .../modules/ebs-baseline/input/versions.tf | 10 + .../2.1.0/modules/guardduty-baseline/LICENSE | 21 + .../modules/guardduty-baseline/fixture.json | 33 + .../modules/guardduty-baseline/input/main.tf | 35 + .../guardduty-baseline/input/migrations.tf | 9 + .../guardduty-baseline/input/outputs.tf | 4 + .../guardduty-baseline/input/variables.tf | 40 + .../guardduty-baseline/input/versions.tf | 10 + .../2.1.0/modules/iam-baseline/LICENSE | 21 + .../2.1.0/modules/iam-baseline/fixture.json | 32 + .../2.1.0/modules/iam-baseline/input/main.tf | 49 + .../modules/iam-baseline/input/outputs.tf | 4 + .../modules/iam-baseline/input/variables.tf | 85 + .../modules/iam-baseline/input/versions.tf | 10 + .../2.1.0/modules/s3-baseline/LICENSE | 21 + .../2.1.0/modules/s3-baseline/fixture.json | 29 + .../2.1.0/modules/s3-baseline/input/main.tf | 7 + .../modules/s3-baseline/input/outputs.tf | 0 .../modules/s3-baseline/input/variables.tf | 23 + .../modules/s3-baseline/input/versions.tf | 10 + .../2.1.0/modules/secure-bucket/LICENSE | 21 + .../2.1.0/modules/secure-bucket/fixture.json | 34 + .../2.1.0/modules/secure-bucket/input/main.tf | 153 + .../modules/secure-bucket/input/migrations.tf | 30 + .../modules/secure-bucket/input/outputs.tf | 9 + .../modules/secure-bucket/input/variables.tf | 35 + .../modules/secure-bucket/input/versions.tf | 10 + .../modules/securityhub-baseline/LICENSE | 21 + .../modules/securityhub-baseline/fixture.json | 35 + .../securityhub-baseline/input/main.tf | 74 + .../securityhub-baseline/input/migrations.tf | 10 + .../securityhub-baseline/input/outputs.tf | 0 .../securityhub-baseline/input/variables.tf | 44 + .../securityhub-baseline/input/versions.tf | 10 + .../2.1.0/modules/vpc-baseline/LICENSE | 21 + .../2.1.0/modules/vpc-baseline/fixture.json | 37 + .../2.1.0/modules/vpc-baseline/input/main.tf | 97 + .../modules/vpc-baseline/input/migrations.tf | 24 + .../modules/vpc-baseline/input/outputs.tf | 24 + .../modules/vpc-baseline/input/variables.tf | 57 + .../modules/vpc-baseline/input/versions.tf | 10 + .../test/fixtures/simple_registry/LICENSE | 21 + .../fixtures/simple_registry/fixture.json | 31 + .../fixtures/simple_registry/input/main.tf | 61 + .../fixtures/simple_registry/input/outputs.tf | 0 .../fixtures/simple_registry/input/regions.tf | 90 + .../simple_registry/input/variables.tf | 10 + .../0.6.1/LICENSE | 201 + .../0.6.1/fixture.json | 38 + .../0.6.1/input/main.tf | 256 + .../0.6.1/input/outputs.tf | 0 .../0.6.1/input/variables.tf | 121 + .../0.6.1/input/versions.tf | 14 + .../observeinc/collection/4.2.0/LICENSE | 11 + .../observeinc/collection/4.2.0/fixture.json | 42 + .../collection/4.2.0/infrastructure/LICENSE | 11 + .../4.2.0/infrastructure/fixture.json | 32 + .../4.2.0/infrastructure/input/backend.tf | 7 + .../4.2.0/infrastructure/input/main.tf | 57 + .../4.2.0/infrastructure/input/outputs.tf | 0 .../4.2.0/infrastructure/input/providers.tf | 3 + .../4.2.0/infrastructure/input/variables.tf | 0 .../4.2.0/infrastructure/input/versions.tf | 15 + .../collection/4.2.0/input/cloudtrail.tf | 20 + .../collection/4.2.0/input/eventbridge.tf | 49 + .../collection/4.2.0/input/firehose.tf | 38 + .../collection/4.2.0/input/lambda.tf | 36 + .../observeinc/collection/4.2.0/input/main.tf | 12 + .../collection/4.2.0/input/outputs.tf | 14 + .../observeinc/collection/4.2.0/input/s3.tf | 194 + .../collection/4.2.0/input/subscription.tf | 50 + .../collection/4.2.0/input/variables.tf | 354 + .../collection/4.2.0/input/versions.tf | 15 + .../4.2.0/modules/cloudtrail/LICENSE | 11 + .../4.2.0/modules/cloudtrail/fixture.json | 34 + .../modules/cloudtrail/input/cloudtrail.tf | 14 + .../4.2.0/modules/cloudtrail/input/main.tf | 9 + .../4.2.0/modules/cloudtrail/input/outputs.tf | 9 + .../4.2.0/modules/cloudtrail/input/s3.tf | 54 + .../4.2.0/modules/cloudtrail/input/sns.tf | 36 + .../modules/cloudtrail/input/variables.tf | 35 + .../modules/cloudtrail/input/versions.tf | 9 + .../collection/4.2.0/modules/config/LICENSE | 11 + .../4.2.0/modules/config/fixture.json | 39 + .../4.2.0/modules/config/input/alias.tf | 9 + .../4.2.0/modules/config/input/config.tf | 50 + .../4.2.0/modules/config/input/iam.tf | 80 + .../4.2.0/modules/config/input/main.tf | 7 + .../4.2.0/modules/config/input/outputs.tf | 0 .../4.2.0/modules/config/input/variables.tf | 96 + .../4.2.0/modules/config/input/versions.tf | 9 + .../4.2.0/modules/configsubscription/LICENSE | 11 + .../modules/configsubscription/fixture.json | 34 + .../modules/configsubscription/input/alias.tf | 9 + .../configsubscription/input/change.tf | 20 + .../configsubscription/input/delivery.tf | 37 + .../modules/configsubscription/input/main.tf | 0 .../configsubscription/input/outputs.tf | 0 .../configsubscription/input/oversized.tf | 31 + .../configsubscription/input/variables.tf | 30 + .../configsubscription/input/versions.tf | 9 + .../4.2.0/modules/externalrole/LICENSE | 11 + .../4.2.0/modules/externalrole/fixture.json | 33 + .../4.2.0/modules/externalrole/input/main.tf | 43 + .../modules/externalrole/input/outputs.tf | 4 + .../modules/externalrole/input/variables.tf | 55 + .../modules/externalrole/input/versions.tf | 9 + .../4.2.0/modules/sam_asset/LICENSE | 11 + .../4.2.0/modules/sam_asset/fixture.json | 33 + .../4.2.0/modules/sam_asset/input/main.tf | 19 + .../4.2.0/modules/sam_asset/input/outputs.tf | 4 + .../modules/sam_asset/input/variables.tf | 15 + .../4.2.0/modules/sam_asset/input/versions.tf | 15 + .../4.2.0/modules/testing/s3_bucket/LICENSE | 11 + .../modules/testing/s3_bucket/fixture.json | 31 + .../modules/testing/s3_bucket/input/kms.tf | 5 + .../modules/testing/s3_bucket/input/main.tf | 22 + .../testing/s3_bucket/input/outputs.tf | 19 + .../testing/s3_bucket/input/variables.tf | 20 + .../testing/s3_bucket/input/versions.tf | 13 + .../4.2.0/modules/testing/setup/LICENSE | 11 + .../4.2.0/modules/testing/setup/fixture.json | 33 + .../4.2.0/modules/testing/setup/input/main.tf | 17 + .../modules/testing/setup/input/outputs.tf | 24 + .../modules/testing/setup/input/variables.tf | 11 + .../modules/testing/setup/input/versions.tf | 13 + .../4.2.0/modules/testing/sqs_queue/LICENSE | 11 + .../modules/testing/sqs_queue/fixture.json | 29 + .../modules/testing/sqs_queue/input/main.tf | 3 + .../testing/sqs_queue/input/outputs.tf | 4 + .../testing/sqs_queue/input/variables.tf | 6 + .../testing/sqs_queue/input/versions.tf | 9 + .../observeinc/kinesis-firehose/2.4.1/LICENSE | 11 + .../kinesis-firehose/2.4.1/fixture.json | 39 + .../kinesis-firehose/2.4.1/input/main.tf | 267 + .../kinesis-firehose/2.4.1/input/outputs.tf | 12 + .../kinesis-firehose/2.4.1/input/variables.tf | 165 + .../kinesis-firehose/2.4.1/input/versions.tf | 14 + .../cloudwatch_logs_subscription/LICENSE | 11 + .../cloudwatch_logs_subscription/fixture.json | 31 + .../input/main.tf | 38 + .../input/outputs.tf | 1 + .../input/variables.tf | 40 + .../input/versions.tf | 10 + .../2.4.1/modules/cloudwatch_metrics/LICENSE | 11 + .../modules/cloudwatch_metrics/fixture.json | 33 + .../modules/cloudwatch_metrics/input/main.tf | 52 + .../cloudwatch_metrics/input/outputs.tf | 1 + .../cloudwatch_metrics/input/variables.tf | 56 + .../cloudwatch_metrics/input/versions.tf | 10 + .../2.4.1/modules/eventbridge/LICENSE | 11 + .../2.4.1/modules/eventbridge/fixture.json | 32 + .../2.4.1/modules/eventbridge/input/main.tf | 37 + .../modules/eventbridge/input/outputs.tf | 1 + .../modules/eventbridge/input/variables.tf | 38 + .../modules/eventbridge/input/versions.tf | 14 + .../registry/observeinc/lambda/4.0.0/LICENSE | 11 + .../observeinc/lambda/4.0.0/fixture.json | 40 + .../observeinc/lambda/4.0.0/input/main.tf | 176 + .../observeinc/lambda/4.0.0/input/outputs.tf | 9 + .../lambda/4.0.0/input/variables.tf | 195 + .../observeinc/lambda/4.0.0/input/versions.tf | 10 + .../cloudwatch_logs_subscription/LICENSE | 11 + .../cloudwatch_logs_subscription/fixture.json | 35 + .../input/main.tf | 36 + .../input/outputs.tf | 0 .../input/variables.tf | 50 + .../input/versions.tf | 10 + .../4.0.0/modules/cloudwatch_metrics/LICENSE | 11 + .../modules/cloudwatch_metrics/fixture.json | 32 + .../modules/cloudwatch_metrics/input/main.tf | 75 + .../cloudwatch_metrics/input/outputs.tf | 0 .../cloudwatch_metrics/input/variables.tf | 79 + .../cloudwatch_metrics/input/versions.tf | 10 + .../lambda/4.0.0/modules/s3_bucket/LICENSE | 11 + .../4.0.0/modules/s3_bucket/fixture.json | 33 + .../4.0.0/modules/s3_bucket/input/main.tf | 165 + .../4.0.0/modules/s3_bucket/input/outputs.tf | 9 + .../modules/s3_bucket/input/variables.tf | 39 + .../4.0.0/modules/s3_bucket/input/versions.tf | 10 + .../modules/s3_bucket_subscription/LICENSE | 11 + .../s3_bucket_subscription/fixture.json | 35 + .../s3_bucket_subscription/input/main.tf | 64 + .../s3_bucket_subscription/input/outputs.tf | 0 .../s3_bucket_subscription/input/variables.tf | 49 + .../s3_bucket_subscription/input/versions.tf | 10 + .../lambda/4.0.0/modules/snapshot/LICENSE | 11 + .../4.0.0/modules/snapshot/fixture.json | 35 + .../4.0.0/modules/snapshot/input/main.tf | 72 + .../4.0.0/modules/snapshot/input/outputs.tf | 0 .../4.0.0/modules/snapshot/input/variables.tf | 140 + .../4.0.0/modules/snapshot/input/versions.tf | 10 + .../philips-labs/github-oidc/0.8.1/LICENSE | 7 + .../github-oidc/0.8.1/fixture.json | 39 + .../github-oidc/0.8.1/input/main.tf | 107 + .../github-oidc/0.8.1/input/outputs.tf | 9 + .../github-oidc/0.8.1/input/variables.tf | 102 + .../github-oidc/0.8.1/input/versions.tf | 10 + .../0.8.1/modules/provider/LICENSE | 7 + .../0.8.1/modules/provider/fixture.json | 27 + .../0.8.1/modules/provider/input/main.tf | 6 + .../0.8.1/modules/provider/input/outputs.tf | 4 + .../0.8.1/modules/provider/input/variables.tf | 18 + .../philips-labs/github-runner/6.1.0/LICENSE | 7 + .../github-runner/6.1.0/examples/base/LICENSE | 7 + .../6.1.0/examples/base/fixture.json | 32 + .../6.1.0/examples/base/input/main.tf | 8 + .../6.1.0/examples/base/input/outputs.tf | 3 + .../6.1.0/examples/base/input/variables.tf | 9 + .../6.1.0/examples/base/input/versions.tf | 9 + .../6.1.0/examples/base/input/vpc.tf | 16 + .../github-runner/6.1.0/fixture.json | 43 + .../github-runner/6.1.0/input/main.tf | 382 + .../input/modules/ami-housekeeper/ami.tf | 0 .../input/modules/ami-housekeeper/iam.tf | 16 + .../input/modules/ami-housekeeper/main.tf | 133 + .../input/modules/ami-housekeeper/outputs.tf | 11 + .../modules/ami-housekeeper/variables.tf | 200 + .../input/modules/ami-housekeeper/versions.tf | 10 + .../6.1.0/input/modules/lambda/iam.tf | 16 + .../6.1.0/input/modules/lambda/main.tf | 112 + .../6.1.0/input/modules/lambda/outputs.tf | 7 + .../6.1.0/input/modules/lambda/variables.tf | 88 + .../6.1.0/input/modules/lambda/versions.tf | 10 + .../modules/runner-binaries-syncer/iam.tf | 16 + .../modules/runner-binaries-syncer/main.tf | 130 + .../modules/runner-binaries-syncer/outputs.tf | 19 + .../runner-binaries-syncer.tf | 192 + .../runner-binaries-syncer/variables.tf | 244 + .../runner-binaries-syncer/versions.tf | 10 + .../6.1.0/input/modules/runners/job-retry.tf | 38 + .../input/modules/runners/job-retry/main.tf | 96 + .../modules/runners/job-retry/outputs.tf | 11 + .../modules/runners/job-retry/variables.tf | 91 + .../modules/runners/job-retry/versions.tf | 10 + .../6.1.0/input/modules/runners/logging.tf | 70 + .../6.1.0/input/modules/runners/main.tf | 231 + .../6.1.0/input/modules/runners/outputs.tf | 53 + .../modules/runners/policies-lambda-common.tf | 51 + .../input/modules/runners/policies-runner.tf | 73 + .../6.1.0/input/modules/runners/pool.tf | 63 + .../6.1.0/input/modules/runners/pool/main.tf | 219 + .../input/modules/runners/pool/outputs.tf | 11 + .../input/modules/runners/pool/variables.tf | 86 + .../input/modules/runners/pool/versions.tf | 10 + .../input/modules/runners/runner-config.tf | 41 + .../6.1.0/input/modules/runners/scale-down.tf | 124 + .../6.1.0/input/modules/runners/scale-up.tf | 167 + .../input/modules/runners/ssm-housekeeper.tf | 121 + .../6.1.0/input/modules/runners/variables.tf | 735 ++ .../6.1.0/input/modules/runners/versions.tf | 10 + .../6.1.0/input/modules/ssm/local.tf | 3 + .../6.1.0/input/modules/ssm/outputs.tf | 16 + .../6.1.0/input/modules/ssm/ssm.tf | 23 + .../6.1.0/input/modules/ssm/variables.tf | 25 + .../6.1.0/input/modules/ssm/versions.tf | 10 + .../input/modules/termination-watcher/main.tf | 17 + .../termination-watcher/notification.tf | 6 + .../termination-watcher/notification/main.tf | 49 + .../notification/outputs.tf | 7 + .../notification/variables.tf | 4 + .../notification/versions.tf | 10 + .../modules/termination-watcher/outputs.tf | 15 + .../termination-watcher/termination.tf | 6 + .../termination-watcher/termination/main.tf | 53 + .../termination/outputs.tf | 7 + .../termination/variables.tf | 4 + .../termination/versions.tf | 10 + .../modules/termination-watcher/variables.tf | 74 + .../modules/termination-watcher/versions.tf | 10 + .../input/modules/webhook/direct/outputs.tf | 12 + .../input/modules/webhook/direct/policies.tf | 16 + .../input/modules/webhook/direct/variables.tf | 50 + .../input/modules/webhook/direct/versions.tf | 15 + .../input/modules/webhook/direct/webhook.tf | 146 + .../modules/webhook/eventbridge/dispatcher.tf | 140 + .../input/modules/webhook/eventbridge/main.tf | 15 + .../modules/webhook/eventbridge/outputs.tf | 22 + .../modules/webhook/eventbridge/policies.tf | 16 + .../modules/webhook/eventbridge/variables.tf | 51 + .../modules/webhook/eventbridge/versions.tf | 15 + .../modules/webhook/eventbridge/webhook.tf | 145 + .../6.1.0/input/modules/webhook/main.tf | 66 + .../6.1.0/input/modules/webhook/outputs.tf | 33 + .../6.1.0/input/modules/webhook/variables.tf | 216 + .../6.1.0/input/modules/webhook/versions.tf | 15 + .../6.1.0/input/modules/webhook/webhook.tf | 88 + .../github-runner/6.1.0/input/outputs.tf | 73 + .../6.1.0/input/variables.ami-housekeepr.tf | 70 + .../6.1.0/input/variables.deprecated.tf | 14 + .../github-runner/6.1.0/input/variables.tf | 954 ++ .../github-runner/6.1.0/input/versions.tf | 14 + .../6.1.0/modules/ami-housekeeper/LICENSE | 7 + .../modules/ami-housekeeper/fixture.json | 38 + .../modules/ami-housekeeper/input/ami.tf | 0 .../modules/ami-housekeeper/input/iam.tf | 16 + .../modules/ami-housekeeper/input/main.tf | 133 + .../modules/ami-housekeeper/input/outputs.tf | 11 + .../ami-housekeeper/input/variables.tf | 200 + .../modules/ami-housekeeper/input/versions.tf | 10 + .../6.1.0/modules/lambda/LICENSE | 7 + .../6.1.0/modules/lambda/fixture.json | 38 + .../6.1.0/modules/lambda/input/iam.tf | 16 + .../6.1.0/modules/lambda/input/main.tf | 112 + .../6.1.0/modules/lambda/input/outputs.tf | 7 + .../6.1.0/modules/lambda/input/variables.tf | 88 + .../6.1.0/modules/lambda/input/versions.tf | 10 + .../modules/runner-binaries-syncer/LICENSE | 7 + .../runner-binaries-syncer/fixture.json | 38 + .../runner-binaries-syncer/input/iam.tf | 16 + .../runner-binaries-syncer/input/main.tf | 130 + .../runner-binaries-syncer/input/outputs.tf | 19 + .../input/runner-binaries-syncer.tf | 192 + .../runner-binaries-syncer/input/variables.tf | 244 + .../runner-binaries-syncer/input/versions.tf | 10 + .../6.1.0/modules/runners/pool/LICENSE | 7 + .../6.1.0/modules/runners/pool/fixture.json | 36 + .../6.1.0/modules/runners/pool/input/main.tf | 219 + .../modules/runners/pool/input/outputs.tf | 11 + .../modules/runners/pool/input/variables.tf | 86 + .../modules/runners/pool/input/versions.tf | 10 + .../modules/setup-iam-permissions/LICENSE | 7 + .../setup-iam-permissions/fixture.json | 32 + .../setup-iam-permissions/input/main.tf | 51 + .../setup-iam-permissions/input/outputs.tf | 8 + .../setup-iam-permissions/input/variables.tf | 27 + .../setup-iam-permissions/input/versions.tf | 10 + .../github-runner/6.1.0/modules/ssm/LICENSE | 7 + .../6.1.0/modules/ssm/fixture.json | 33 + .../6.1.0/modules/ssm/input/local.tf | 3 + .../6.1.0/modules/ssm/input/outputs.tf | 16 + .../6.1.0/modules/ssm/input/ssm.tf | 23 + .../6.1.0/modules/ssm/input/variables.tf | 25 + .../6.1.0/modules/ssm/input/versions.tf | 10 + .../6.1.0/modules/webhook/LICENSE | 7 + .../6.1.0/modules/webhook/direct/LICENSE | 7 + .../6.1.0/modules/webhook/direct/fixture.json | 38 + .../modules/webhook/direct/input/outputs.tf | 12 + .../modules/webhook/direct/input/policies.tf | 16 + .../modules/webhook/direct/input/variables.tf | 50 + .../modules/webhook/direct/input/versions.tf | 15 + .../modules/webhook/direct/input/webhook.tf | 146 + .../6.1.0/modules/webhook/eventbridge/LICENSE | 7 + .../modules/webhook/eventbridge/fixture.json | 39 + .../webhook/eventbridge/input/dispatcher.tf | 140 + .../modules/webhook/eventbridge/input/main.tf | 15 + .../webhook/eventbridge/input/outputs.tf | 22 + .../webhook/eventbridge/input/policies.tf | 16 + .../webhook/eventbridge/input/variables.tf | 51 + .../webhook/eventbridge/input/versions.tf | 15 + .../webhook/eventbridge/input/webhook.tf | 145 + .../6.1.0/modules/webhook/fixture.json | 41 + .../modules/webhook/input/direct/outputs.tf | 12 + .../modules/webhook/input/direct/policies.tf | 16 + .../modules/webhook/input/direct/variables.tf | 50 + .../modules/webhook/input/direct/versions.tf | 15 + .../modules/webhook/input/direct/webhook.tf | 146 + .../webhook/input/eventbridge/dispatcher.tf | 140 + .../modules/webhook/input/eventbridge/main.tf | 15 + .../webhook/input/eventbridge/outputs.tf | 22 + .../webhook/input/eventbridge/policies.tf | 16 + .../webhook/input/eventbridge/variables.tf | 51 + .../webhook/input/eventbridge/versions.tf | 15 + .../webhook/input/eventbridge/webhook.tf | 145 + .../6.1.0/modules/webhook/input/main.tf | 66 + .../6.1.0/modules/webhook/input/outputs.tf | 33 + .../6.1.0/modules/webhook/input/variables.tf | 216 + .../6.1.0/modules/webhook/input/versions.tf | 15 + .../6.1.0/modules/webhook/input/webhook.tf | 88 + .../rad-security-connect/0.11.0/LICENSE | 176 + .../0.11.0/examples/audit_logs/LICENSE | 176 + .../0.11.0/examples/audit_logs/fixture.json | 28 + .../0.11.0/examples/audit_logs/input/main.tf | 25 + .../examples/audit_logs/input/variables.tf | 9 + .../examples/audit_logs/input/versions.tf | 14 + .../examples/audit_logs_multi_region/LICENSE | 176 + .../audit_logs_multi_region/fixture.json | 33 + .../audit_logs_multi_region/input/main.tf | 70 + .../input/variables.tf | 9 + .../audit_logs_multi_region/input/versions.tf | 14 + .../0.11.0/examples/basic/LICENSE | 176 + .../0.11.0/examples/basic/fixture.json | 28 + .../0.11.0/examples/basic/input/main.tf | 23 + .../0.11.0/examples/basic/input/variables.tf | 9 + .../0.11.0/examples/basic/input/versions.tf | 14 + .../0.11.0/examples/ecr_image_pull/LICENSE | 176 + .../examples/ecr_image_pull/fixture.json | 29 + .../examples/ecr_image_pull/input/main.tf | 22 + .../ecr_image_pull/input/variables.tf | 15 + .../examples/ecr_image_pull/input/versions.tf | 14 + .../rad-security-connect/0.11.0/fixture.json | 39 + .../0.11.0/input/actions.tf | 598 ++ .../rad-security-connect/0.11.0/input/data.tf | 1 + .../0.11.0/input/eks_audit_logs.tf | 228 + .../rad-security-connect/0.11.0/input/main.tf | 171 + .../0.11.0/input/outputs.tf | 24 + .../0.11.0/input/variables.tf | 89 + .../0.11.0/input/versions.tf | 15 + .../cognito-user-pool-client/0.3.0/LICENSE | 201 + .../0.3.0/fixture.json | 35 + .../0.3.0/input/context.tf | 279 + .../0.3.0/input/main.tf | 35 + .../0.3.0/input/outputs.tf | 9 + .../0.3.0/input/variables.tf | 68 + .../0.3.0/input/versions.tf | 14 + .../rallyware/eks-iam-role/0.3.0/LICENSE | 201 + .../eks-iam-role/0.3.0/examples/basic/LICENSE | 201 + .../0.3.0/examples/basic/fixture.json | 26 + .../0.3.0/examples/basic/input/main.tf | 41 + .../rallyware/eks-iam-role/0.3.0/fixture.json | 36 + .../eks-iam-role/0.3.0/input/context.tf | 279 + .../eks-iam-role/0.3.0/input/main.tf | 104 + .../eks-iam-role/0.3.0/input/outputs.tf | 39 + .../eks-iam-role/0.3.0/input/variables.tf | 62 + .../eks-iam-role/0.3.0/input/versions.tf | 14 + .../reegnz/oidc-provider-data/0.0.4/LICENSE | 19 + .../0.0.4/examples/eks-oidc-role/LICENSE | 19 + .../0.0.4/examples/eks-oidc-role/fixture.json | 33 + .../examples/eks-oidc-role/input/main.tf | 38 + .../examples/eks-oidc-role/input/outputs.tf | 9 + .../examples/eks-oidc-role/input/variables.tf | 19 + .../examples/eks-oidc-role/input/versions.tf | 10 + .../oidc-provider-data/0.0.4/fixture.json | 32 + .../oidc-provider-data/0.0.4/input/main.tf | 10 + .../oidc-provider-data/0.0.4/input/outputs.tf | 9 + .../0.0.4/input/variables.tf | 4 + .../0.0.4/input/versions.tf | 10 + .../schubergphilis/mcaf-aurora/5.0.0/LICENSE | 201 + .../mcaf-aurora/5.0.0/fixture.json | 40 + .../mcaf-aurora/5.0.0/input/main.tf | 329 + .../mcaf-aurora/5.0.0/input/outputs.tf | 74 + .../mcaf-aurora/5.0.0/input/terraform.tf | 9 + .../mcaf-aurora/5.0.0/input/variables.tf | 434 + .../schubergphilis/mcaf-kms/2.2.0/LICENSE | 201 + .../mcaf-kms/2.2.0/fixture.json | 36 + .../mcaf-kms/2.2.0/input/main.tf | 266 + .../mcaf-kms/2.2.0/input/outputs.tf | 14 + .../mcaf-kms/2.2.0/input/terraform.tf | 10 + .../mcaf-kms/2.2.0/input/variables.tf | 115 + .../schubergphilis/mcaf-lambda/4.1.0/LICENSE | 201 + .../mcaf-lambda/4.1.0/fixture.json | 41 + .../mcaf-lambda/4.1.0/input/main.tf | 249 + .../mcaf-lambda/4.1.0/input/moved.tf | 24 + .../mcaf-lambda/4.1.0/input/outputs.tf | 39 + .../mcaf-lambda/4.1.0/input/terraform.tf | 14 + .../mcaf-lambda/4.1.0/input/variables.tf | 318 + .../schubergphilis/mcaf-role/0.5.3/LICENSE | 201 + .../mcaf-role/0.5.3/fixture.json | 35 + .../mcaf-role/0.5.3/input/main.tf | 45 + .../mcaf-role/0.5.3/input/outputs.tf | 19 + .../mcaf-role/0.5.3/input/terraform.tf | 9 + .../mcaf-role/0.5.3/input/variables.tf | 99 + .../schubergphilis/mcaf-s3/3.0.0/LICENSE | 201 + .../schubergphilis/mcaf-s3/3.0.0/fixture.json | 40 + .../mcaf-s3/3.0.0/input/main.tf | 833 ++ .../mcaf-s3/3.0.0/input/outputs.tf | 14 + .../mcaf-s3/3.0.0/input/terraform.tf | 10 + .../mcaf-s3/3.0.0/input/variables.tf | 349 + .../schubergphilis/mcaf-user/1.0.0/LICENSE | 201 + .../mcaf-user/1.0.0/fixture.json | 36 + .../mcaf-user/1.0.0/input/main.tf | 82 + .../mcaf-user/1.0.0/input/outputs.tf | 47 + .../mcaf-user/1.0.0/input/terraform.tf | 10 + .../mcaf-user/1.0.0/input/variables.tf | 76 + .../mcaf-workspace/4.1.1/LICENSE | 201 + .../mcaf-workspace/4.1.1/fixture.json | 42 + .../mcaf-workspace/4.1.1/input/main.tf | 114 + .../4.1.1/input/modules/auth/main.tf | 153 + .../4.1.1/input/modules/auth/outputs.tf | 14 + .../4.1.1/input/modules/auth/terraform.tf | 18 + .../4.1.1/input/modules/auth/variables.tf | 99 + .../mcaf-workspace/4.1.1/input/moved.tf | 57 + .../mcaf-workspace/4.1.1/input/outputs.tf | 29 + .../mcaf-workspace/4.1.1/input/terraform.tf | 18 + .../mcaf-workspace/4.1.1/input/variables.tf | 360 + .../mcaf-workspace/4.1.1/modules/auth/LICENSE | 201 + .../4.1.1/modules/auth/fixture.json | 38 + .../4.1.1/modules/auth/input/main.tf | 153 + .../4.1.1/modules/auth/input/outputs.tf | 14 + .../4.1.1/modules/auth/input/terraform.tf | 18 + .../4.1.1/modules/auth/input/variables.tf | 99 + .../registry/scribd/datadog/4.0.0/LICENSE | 21 + .../examples/cloudwatch_log_sync/LICENSE | 21 + .../examples/cloudwatch_log_sync/fixture.json | 27 + .../cloudwatch_log_sync/input/main.tf | 33 + .../4.0.0/examples/full_integration/LICENSE | 21 + .../examples/full_integration/fixture.json | 28 + .../examples/full_integration/input/main.tf | 41 + .../scribd/datadog/4.0.0/fixture.json | 40 + .../scribd/datadog/4.0.0/input/locals.tf | 17 + .../datadog/4.0.0/input/logs_monitoring.tf | 32 + .../4.0.0/input/logs_monitoring_cloudtrail.tf | 20 + .../input/logs_monitoring_cloudwatch_log.tf | 19 + .../4.0.0/input/logs_monitoring_elb.tf | 90 + .../scribd/datadog/4.0.0/input/main.tf | 202 + .../scribd/datadog/4.0.0/input/outputs.tf | 6 + .../scribd/datadog/4.0.0/input/vars.tf | 194 + .../scribd/datadog/4.0.0/input/versions.tf | 15 + .../dynamodb-autoscaling/0.2.2/LICENSE | 202 + .../dynamodb-autoscaling/0.2.2/fixture.json | 31 + .../dynamodb-autoscaling/0.2.2/input/main.tf | 55 + .../0.2.2/input/outputs.tf | 9 + .../0.2.2/input/variables.tf | 64 + .../0.2.2/input/versions.tf | 10 + .../purple-s3-cloudfront/0.3.0/LICENSE | 201 + .../purple-s3-cloudfront/0.3.0/fixture.json | 37 + .../0.3.0/input/bucket.tf | 113 + .../0.3.0/input/cloudfront.tf | 141 + .../purple-s3-cloudfront/0.3.0/input/iam.tf | 55 + .../0.3.0/input/lambdas.tf | 6 + .../purple-s3-cloudfront/0.3.0/input/main.tf | 9 + .../0.3.0/input/modules/cloudfront/acm.tf | 15 + .../input/modules/cloudfront/cloudfront.tf | 122 + .../0.3.0/input/modules/cloudfront/main.tf | 9 + .../0.3.0/input/modules/cloudfront/outputs.tf | 19 + .../input/modules/cloudfront/variables.tf | 115 + .../0.3.0/input/modules/lambdas/main.tf | 9 + .../0.3.0/input/modules/lambdas/outputs.tf | 3 + .../0.3.0/input/modules/lambdas/tachyon.tf | 57 + .../0.3.0/input/modules/lambdas/variables.tf | 42 + .../0.3.0/input/outputs.tf | 87 + .../0.3.0/input/variables.tf | 195 + .../0.3.0/modules/cloudfront/LICENSE | 201 + .../0.3.0/modules/cloudfront/fixture.json | 34 + .../0.3.0/modules/cloudfront/input/acm.tf | 15 + .../modules/cloudfront/input/cloudfront.tf | 122 + .../0.3.0/modules/cloudfront/input/main.tf | 9 + .../0.3.0/modules/cloudfront/input/outputs.tf | 19 + .../modules/cloudfront/input/variables.tf | 115 + .../0.3.0/modules/lambdas/LICENSE | 201 + .../0.3.0/modules/lambdas/fixture.json | 32 + .../0.3.0/modules/lambdas/input/main.tf | 9 + .../0.3.0/modules/lambdas/input/outputs.tf | 3 + .../0.3.0/modules/lambdas/input/tachyon.tf | 57 + .../0.3.0/modules/lambdas/input/variables.tf | 42 + .../modules/aws-eks-fargate-profiles/LICENSE | 201 + .../aws-eks-fargate-profiles/fixture.json | 38 + .../aws-eks-fargate-profiles/input/main.tf | 103 + .../aws-eks-fargate-profiles/input/outputs.tf | 14 + .../input/variables.tf | 16 + .../input/versions.tf | 10 + .../aws-eks-managed-node-groups/LICENSE | 201 + .../aws-eks-managed-node-groups/fixture.json | 38 + .../aws-eks-managed-node-groups/input/data.tf | 14 + .../aws-eks-managed-node-groups/input/iam.tf | 31 + .../input/locals.tf | 117 + .../aws-eks-managed-node-groups/input/main.tf | 84 + .../input/managed-launch-templates.tf | 69 + .../input/outputs.tf | 49 + .../input/variables.tf | 34 + .../input/versions.tf | 10 + .../modules/aws-eks-teams/LICENSE | 201 + .../modules/aws-eks-teams/fixture.json | 39 + .../modules/aws-eks-teams/input/data.tf | 35 + .../modules/aws-eks-teams/input/locals.tf | 12 + .../modules/aws-eks-teams/input/main.tf | 212 + .../modules/aws-eks-teams/input/outputs.tf | 41 + .../modules/aws-eks-teams/input/variables.tf | 28 + .../modules/aws-eks-teams/input/versions.tf | 18 + .../EKS-Blueprint/modules/aws-kms/LICENSE | 201 + .../modules/aws-kms/fixture.json | 29 + .../modules/aws-kms/input/main.tf | 14 + .../modules/aws-kms/input/outputs.tf | 9 + .../modules/aws-kms/input/variables.tf | 31 + .../modules/aws-kms/input/versions.tf | 10 + .../3.1.1/EKS-Blueprint/modules/irsa/LICENSE | 201 + .../EKS-Blueprint/modules/irsa/fixture.json | 37 + .../EKS-Blueprint/modules/irsa/input/main.tf | 70 + .../modules/irsa/input/outputs.tf | 19 + .../modules/irsa/input/variables.tf | 67 + .../modules/irsa/input/versions.tf | 14 + .../kubernetes-addons/aws-kube-proxy/LICENSE | 201 + .../aws-kube-proxy/fixture.json | 31 + .../aws-kube-proxy/input/main.tf | 23 + .../aws-kube-proxy/input/outputs.tf | 0 .../aws-kube-proxy/input/variables.tf | 20 + .../aws-kube-proxy/input/versions.tf | 10 + .../modules/launch-templates/LICENSE | 201 + .../modules/launch-templates/fixture.json | 36 + .../modules/launch-templates/input/main.tf | 112 + .../modules/launch-templates/input/outputs.tf | 29 + .../launch-templates/input/variables.tf | 15 + .../launch-templates/input/versions.tf | 10 + .../eks-bootstrap/3.1.1/addons/efs/LICENSE | 201 + .../3.1.1/addons/efs/fixture.json | 34 + .../3.1.1/addons/efs/input/main.tf | 58 + .../3.1.1/addons/efs/input/outputs.tf | 4 + .../3.1.1/addons/efs/input/variables.tf | 47 + .../3.1.1/addons/efs/input/versions.tf | 16 + .../3.1.1/examples/complete/LICENSE | 201 + .../3.1.1/examples/complete/fixture.json | 32 + .../3.1.1/examples/complete/input/main.tf | 77 + .../3.1.1/examples/complete/input/output.tf | 39 + .../3.1.1/examples/complete/input/provider.tf | 28 + .../3.1.1/examples/complete/input/version.tf | 13 + .../registry/squareops/eks/5.4.4/LICENSE | 201 + .../eks/5.4.4/examples/complete-ipv6/LICENSE | 201 + .../5.4.4/examples/complete-ipv6/fixture.json | 36 + .../examples/complete-ipv6/input/main.tf | 196 + .../examples/complete-ipv6/input/outputs.tf | 111 + .../examples/complete-ipv6/input/provider.tf | 18 + .../examples/complete-ipv6/input/versions.tf | 25 + .../eks/5.4.4/examples/complete/LICENSE | 201 + .../eks/5.4.4/examples/complete/fixture.json | 36 + .../eks/5.4.4/examples/complete/input/main.tf | 242 + .../5.4.4/examples/complete/input/outputs.tf | 125 + .../5.4.4/examples/complete/input/provider.tf | 18 + .../5.4.4/examples/complete/input/versions.tf | 21 + .../registry/squareops/eks/5.4.4/fixture.json | 36 + .../squareops/eks/5.4.4/input/main.tf | 227 + .../squareops/eks/5.4.4/input/outputs.tf | 44 + .../squareops/eks/5.4.4/input/variables.tf | 170 + .../squareops/eks/5.4.4/input/versions.tf | 25 + .../eks/5.4.4/modules/fargate-profile/LICENSE | 201 + .../modules/fargate-profile/fixture.json | 29 + .../modules/fargate-profile/input/main.tf | 42 + .../modules/fargate-profile/input/outputs.tf | 19 + .../fargate-profile/input/variables.tf | 46 + .../5.4.4/modules/managed-nodegroup/LICENSE | 201 + .../modules/managed-nodegroup/fixture.json | 35 + .../modules/managed-nodegroup/input/main.tf | 190 + .../modules/managed-nodegroup/input/output.tf | 34 + .../managed-nodegroup/input/variables.tf | 224 + .../squareops/elasticache-redis/2.0.0/LICENSE | 201 + .../examples/complete-cluster-mode/LICENSE | 201 + .../complete-cluster-mode/fixture.json | 31 + .../complete-cluster-mode/input/main.tf | 131 + .../complete-cluster-mode/input/outputs.tf | 41 + .../complete-cluster-mode/input/provider.tf | 6 + .../complete-cluster-mode/input/versions.tf | 9 + .../2.0.0/examples/complete/LICENSE | 201 + .../2.0.0/examples/complete/fixture.json | 31 + .../2.0.0/examples/complete/input/main.tf | 127 + .../2.0.0/examples/complete/input/outputs.tf | 41 + .../2.0.0/examples/complete/input/provider.tf | 6 + .../2.0.0/examples/complete/input/versions.tf | 9 + .../2.0.0/examples/standalone/LICENSE | 201 + .../2.0.0/examples/standalone/fixture.json | 30 + .../2.0.0/examples/standalone/input/main.tf | 63 + .../examples/standalone/input/outputs.tf | 28 + .../examples/standalone/input/provider.tf | 6 + .../examples/standalone/input/versions.tf | 9 + .../elasticache-redis/2.0.0/fixture.json | 43 + .../2.0.0/input/lambda/data.tf | 32 + .../2.0.0/input/lambda/iam.tf | 10 + .../2.0.0/input/lambda/main.tf | 26 + .../2.0.0/input/lambda/outputs.tf | 19 + .../2.0.0/input/lambda/variables.tf | 57 + .../elasticache-redis/2.0.0/input/main.tf | 475 + .../elasticache-redis/2.0.0/input/outputs.tf | 64 + .../2.0.0/input/variables.tf | 300 + .../elasticache-redis/2.0.0/input/versions.tf | 14 + .../elasticache-redis/2.0.0/lambda/LICENSE | 201 + .../2.0.0/lambda/fixture.json | 33 + .../2.0.0/lambda/input/data.tf | 32 + .../2.0.0/lambda/input/iam.tf | 10 + .../2.0.0/lambda/input/main.tf | 26 + .../2.0.0/lambda/input/outputs.tf | 19 + .../2.0.0/lambda/input/variables.tf | 57 + .../registry/squareops/keypair/1.0.4/LICENSE | 201 + .../keypair/1.0.4/examples/complete/LICENSE | 201 + .../1.0.4/examples/complete/fixture.json | 30 + .../1.0.4/examples/complete/input/main.tf | 26 + .../1.0.4/examples/complete/input/outputs.tf | 9 + .../1.0.4/examples/complete/input/provider.tf | 6 + .../1.0.4/examples/complete/input/versions.tf | 14 + .../squareops/keypair/1.0.4/fixture.json | 30 + .../squareops/keypair/1.0.4/input/main.tf | 17 + .../squareops/keypair/1.0.4/input/outputs.tf | 9 + .../keypair/1.0.4/input/variables.tf | 45 + .../squareops/keypair/1.0.4/input/version.tf | 14 + .../registry/squareops/tfstate/1.1.1/LICENSE | 201 + .../squareops/tfstate/1.1.1/fixture.json | 38 + .../squareops/tfstate/1.1.1/input/logging.tf | 269 + .../squareops/tfstate/1.1.1/input/main.tf | 115 + .../squareops/tfstate/1.1.1/input/outputs.tf | 19 + .../tfstate/1.1.1/input/variables.tf | 59 + .../squareops/tfstate/1.1.1/input/versions.tf | 10 + .../examples/complete-vpc-with-vpn/LICENSE | 201 + .../complete-vpc-with-vpn/fixture.json | 32 + .../complete-vpc-with-vpn/input/main.tf | 100 + .../complete-vpc-with-vpn/input/outputs.tf | 44 + .../complete-vpc-with-vpn/input/providers.tf | 6 + .../3.4.1/examples/ipam-managed-vpc/LICENSE | 201 + .../examples/ipam-managed-vpc/fixture.json | 27 + .../examples/ipam-managed-vpc/input/main.tf | 27 + .../examples/ipam-managed-vpc/input/output.tf | 19 + .../ipam-managed-vpc/input/providers.tf | 6 + .../vpc/3.4.1/examples/simple-vpc/LICENSE | 201 + .../3.4.1/examples/simple-vpc/fixture.json | 27 + .../3.4.1/examples/simple-vpc/input/main.tf | 22 + .../3.4.1/examples/simple-vpc/input/output.tf | 19 + .../examples/simple-vpc/input/providers.tf | 6 + .../vpc/3.4.1/examples/vpc-dualstack/LICENSE | 201 + .../3.4.1/examples/vpc-dualstack/fixture.json | 27 + .../examples/vpc-dualstack/input/main.tf | 32 + .../examples/vpc-dualstack/input/outputs.tf | 35 + .../examples/vpc-dualstack/input/providers.tf | 6 + .../3.4.1/examples/vpc-native-ipv6/LICENSE | 201 + .../examples/vpc-native-ipv6/fixture.json | 27 + .../examples/vpc-native-ipv6/input/main.tf | 32 + .../examples/vpc-native-ipv6/input/outputs.tf | 44 + .../vpc-native-ipv6/input/providers.tf | 6 + .../3.4.1/examples/vpc-with-peering/LICENSE | 201 + .../examples/vpc-with-peering/fixture.json | 27 + .../examples/vpc-with-peering/input/main.tf | 22 + .../examples/vpc-with-peering/input/output.tf | 9 + .../vpc-with-peering/input/provider.tf | 6 + .../vpc-requester-accepter/LICENSE | 201 + .../vpc-requester-accepter/fixture.json | 27 + .../vpc-requester-accepter/input/main.tf | 36 + .../vpc-requester-accepter/input/providers.tf | 6 + .../examples/vpc-with-private-subnet/LICENSE | 201 + .../vpc-with-private-subnet/fixture.json | 27 + .../vpc-with-private-subnet/input/main.tf | 24 + .../vpc-with-private-subnet/input/outputs.tf | 24 + .../input/providers.tf | 6 + .../examples/vpc-with-secondary-cidr/LICENSE | 201 + .../vpc-with-secondary-cidr/fixture.json | 27 + .../vpc-with-secondary-cidr/input/main.tf | 29 + .../vpc-with-secondary-cidr/input/outputs.tf | 29 + .../input/providers.tf | 6 + .../vpc/3.4.1/modules/vpc_peering/LICENSE | 201 + .../3.4.1/modules/vpc_peering/fixture.json | 35 + .../3.4.1/modules/vpc_peering/input/main.tf | 89 + .../modules/vpc_peering/input/outputs.tf | 9 + .../modules/vpc_peering/input/variables.tf | 41 + .../modules/vpc_peering/input/versions.tf | 9 + .../api-gateway-enable-cors/0.3.3/LICENSE | 19 + .../0.3.3/fixture.json | 31 + .../0.3.3/input/headers.tf | 64 + .../0.3.3/input/main.tf | 78 + .../0.3.3/input/variables.tf | 87 + .../0.13.1/modules/resource-group/LICENSE | 201 + .../modules/resource-group/fixture.json | 34 + .../modules/resource-group/input/main.tf | 55 + .../modules/resource-group/input/outputs.tf | 42 + .../modules/resource-group/input/telemetry.tf | 77 + .../modules/resource-group/input/variables.tf | 47 + .../modules/resource-group/input/versions.tf | 14 + .../0.13.1/modules/s3-archive-bucket/LICENSE | 201 + .../modules/s3-archive-bucket/fixture.json | 43 + .../s3-archive-bucket/input/access-control.tf | 114 + .../s3-archive-bucket/input/lifecycle.tf | 140 + .../s3-archive-bucket/input/logging.tf | 14 + .../modules/s3-archive-bucket/input/main.tf | 65 + .../s3-archive-bucket/input/migrations.tf | 5 + .../s3-archive-bucket/input/outputs.tf | 122 + .../s3-archive-bucket/input/policies.tf | 195 + .../input/request-payment.tf | 9 + .../s3-archive-bucket/input/resource-group.tf | 35 + .../s3-archive-bucket/input/telemetry.tf | 77 + .../input/transfer-acceleration.tf | 9 + .../s3-archive-bucket/input/variables.tf | 201 + .../s3-archive-bucket/input/versions.tf | 14 + .../modules/sqs-aws-event-queue/LICENSE | 201 + .../modules/sqs-aws-event-queue/fixture.json | 39 + .../modules/sqs-aws-event-queue/input/main.tf | 88 + .../sqs-aws-event-queue/input/outputs.tf | 30 + .../input/resource-group.tf | 35 + .../sqs-aws-event-queue/input/telemetry.tf | 77 + .../sqs-aws-event-queue/input/variables.tf | 81 + .../sqs-aws-event-queue/input/versions.tf | 14 + .../registry/telia-oss/ecr/3.0.0/LICENSE | 21 + .../registry/telia-oss/ecr/3.0.0/fixture.json | 31 + .../telia-oss/ecr/3.0.0/input/main.tf | 66 + .../telia-oss/ecr/3.0.0/input/outputs.tf | 12 + .../telia-oss/ecr/3.0.0/input/variables.tf | 37 + .../telia-oss/ecs-fargate/7.3.1/LICENSE | 21 + .../telia-oss/ecs-fargate/7.3.1/fixture.json | 40 + .../telia-oss/ecs-fargate/7.3.1/input/main.tf | 283 + .../ecs-fargate/7.3.1/input/outputs.tf | 58 + .../ecs-fargate/7.3.1/input/policies.tf | 102 + .../ecs-fargate/7.3.1/input/variables.tf | 327 + .../ecs-fargate/7.3.1/input/versions.tf | 13 + .../telia-oss/loadbalancer/4.2.1/LICENSE | 21 + .../telia-oss/loadbalancer/4.2.1/fixture.json | 33 + .../loadbalancer/4.2.1/input/main.tf | 56 + .../loadbalancer/4.2.1/input/outputs.tf | 37 + .../loadbalancer/4.2.1/input/variables.tf | 64 + .../loadbalancer/4.2.1/input/versions.tf | 10 + .../terraform-aws-modules/acm/6.3.1/LICENSE | 176 + .../acm/6.3.1/fixture.json | 37 + .../acm/6.3.1/input/main.tf | 79 + .../acm/6.3.1/input/outputs.tf | 34 + .../acm/6.3.1/input/variables.tf | 148 + .../acm/6.3.1/input/versions.tf | 16 + .../terraform-aws-modules/alb/10.5.1/LICENSE | 176 + .../alb/10.5.1/fixture.json | 39 + .../alb/10.5.1/input/main.tf | 916 ++ .../alb/10.5.1/input/outputs.tf | 74 + .../alb/10.5.1/input/variables.tf | 655 ++ .../alb/10.5.1/input/versions.tf | 16 + .../alb/10.5.1/modules/lb_trust_store/LICENSE | 176 + .../modules/lb_trust_store/fixture.json | 34 + .../modules/lb_trust_store/input/main.tf | 32 + .../modules/lb_trust_store/input/outputs.tf | 24 + .../modules/lb_trust_store/input/variables.tf | 71 + .../modules/lb_trust_store/input/versions.tf | 16 + .../apigateway-v2/6.1.1/LICENSE | 176 + .../apigateway-v2/6.1.1/fixture.json | 41 + .../apigateway-v2/6.1.1/input/main.tf | 460 + .../apigateway-v2/6.1.1/input/migrations.tf | 13 + .../apigateway-v2/6.1.1/input/outputs.tf | 145 + .../apigateway-v2/6.1.1/input/variables.tf | 399 + .../apigateway-v2/6.1.1/input/versions.tf | 16 + .../app-runner/1.2.3/LICENSE | 176 + .../app-runner/1.2.3/fixture.json | 38 + .../app-runner/1.2.3/input/main.tf | 556 ++ .../app-runner/1.2.3/input/outputs.tf | 155 + .../app-runner/1.2.3/input/variables.tf | 285 + .../app-runner/1.2.3/input/versions.tf | 10 + .../appsync/4.1.1/LICENSE | 176 + .../appsync/4.1.1/fixture.json | 42 + .../appsync/4.1.1/input/iam.tf | 183 + .../appsync/4.1.1/input/main.tf | 337 + .../appsync/4.1.1/input/migrations.tf | 8 + .../appsync/4.1.1/input/outputs.tf | 77 + .../appsync/4.1.1/input/variables.tf | 358 + .../appsync/4.1.1/input/versions.tf | 16 + .../atlantis/5.1.2/LICENSE | 176 + .../atlantis/5.1.2/fixture.json | 31 + .../atlantis/5.1.2/input/main.tf | 493 + .../atlantis/5.1.2/input/outputs.tf | 36 + .../atlantis/5.1.2/input/variables.tf | 669 ++ .../atlantis/5.1.2/input/versions.tf | 16 + .../autoscaling/9.3.2/LICENSE | 176 + .../autoscaling/9.3.2/fixture.json | 37 + .../autoscaling/9.3.2/input/main.tf | 1476 +++ .../autoscaling/9.3.2/input/outputs.tf | 154 + .../autoscaling/9.3.2/input/variables.tf | 1027 +++ .../autoscaling/9.3.2/input/versions.tf | 16 + .../terraform-aws-modules/batch/3.0.3/LICENSE | 176 + .../batch/3.0.3/fixture.json | 39 + .../batch/3.0.3/input/main.tf | 607 ++ .../batch/3.0.3/input/migrations.tf | 23 + .../batch/3.0.3/input/outputs.tf | 107 + .../batch/3.0.3/input/variables.tf | 387 + .../batch/3.0.3/input/versions.tf | 10 + .../cloudfront/6.7.1/LICENSE | 176 + .../cloudfront/6.7.1/fixture.json | 39 + .../cloudfront/6.7.1/input/main.tf | 793 ++ .../cloudfront/6.7.1/input/outputs.tf | 145 + .../cloudfront/6.7.1/input/variables.tf | 636 ++ .../cloudfront/6.7.1/input/versions.tf | 16 + .../6.7.1/modules/trust_store/LICENSE | 176 + .../6.7.1/modules/trust_store/fixture.json | 32 + .../6.7.1/modules/trust_store/input/main.tf | 17 + .../modules/trust_store/input/outputs.tf | 19 + .../modules/trust_store/input/variables.tf | 41 + .../modules/trust_store/input/versions.tf | 16 + .../fixtures/aws_cloudwatch_log_group/LICENSE | 176 + .../aws_cloudwatch_log_group/fixture.json | 30 + .../aws_cloudwatch_log_group/input/main.tf | 7 + .../aws_cloudwatch_log_group/input/outputs.tf | 14 + .../input/variables.tf | 0 .../input/versions.tf | 15 + .../examples/fixtures/aws_kms_key/LICENSE | 176 + .../fixtures/aws_kms_key/fixture.json | 30 + .../fixtures/aws_kms_key/input/main.tf | 7 + .../fixtures/aws_kms_key/input/outputs.tf | 4 + .../fixtures/aws_kms_key/input/variables.tf | 0 .../fixtures/aws_kms_key/input/versions.tf | 15 + .../fixtures/aws_lambda_function/LICENSE | 176 + .../fixtures/aws_lambda_function/fixture.json | 32 + .../aws_lambda_function/input/main.tf | 64 + .../aws_lambda_function/input/outputs.tf | 14 + .../aws_lambda_function/input/variables.tf | 0 .../aws_lambda_function/input/versions.tf | 20 + .../examples/fixtures/aws_sns_topic/LICENSE | 176 + .../fixtures/aws_sns_topic/fixture.json | 30 + .../fixtures/aws_sns_topic/input/main.tf | 7 + .../fixtures/aws_sns_topic/input/outputs.tf | 9 + .../fixtures/aws_sns_topic/input/variables.tf | 0 .../fixtures/aws_sns_topic/input/versions.tf | 15 + .../5.7.3/modules/cis-alarms/LICENSE | 176 + .../5.7.3/modules/cis-alarms/fixture.json | 36 + .../5.7.3/modules/cis-alarms/input/main.tf | 132 + .../5.7.3/modules/cis-alarms/input/outputs.tf | 9 + .../modules/cis-alarms/input/variables.tf | 71 + .../modules/cis-alarms/input/versions.tf | 15 + .../5.7.3/modules/composite-alarm/LICENSE | 176 + .../modules/composite-alarm/fixture.json | 34 + .../modules/composite-alarm/input/main.tf | 24 + .../modules/composite-alarm/input/outputs.tf | 9 + .../composite-alarm/input/variables.tf | 59 + .../modules/composite-alarm/input/versions.tf | 10 + .../5.7.3/modules/log-account-policy/LICENSE | 176 + .../modules/log-account-policy/fixture.json | 34 + .../modules/log-account-policy/input/main.tf | 63 + .../log-account-policy/input/outputs.tf | 4 + .../log-account-policy/input/variables.tf | 89 + .../log-account-policy/input/versions.tf | 10 + .../modules/log-anomaly-detector/LICENSE | 176 + .../modules/log-anomaly-detector/fixture.json | 32 + .../log-anomaly-detector/input/main.tf | 11 + .../log-anomaly-detector/input/outputs.tf | 4 + .../log-anomaly-detector/input/variables.tf | 47 + .../log-anomaly-detector/input/versions.tf | 10 + .../log-data-protection-policy/LICENSE | 176 + .../log-data-protection-policy/fixture.json | 34 + .../log-data-protection-policy/input/main.tf | 60 + .../input/outputs.tf | 4 + .../input/variables.tf | 71 + .../input/versions.tf | 10 + .../5.7.3/modules/log-group/LICENSE | 176 + .../5.7.3/modules/log-group/fixture.json | 32 + .../5.7.3/modules/log-group/input/main.tf | 12 + .../5.7.3/modules/log-group/input/outputs.tf | 9 + .../modules/log-group/input/variables.tf | 52 + .../5.7.3/modules/log-group/input/versions.tf | 10 + .../5.7.3/modules/log-metric-filter/LICENSE | 176 + .../modules/log-metric-filter/fixture.json | 32 + .../modules/log-metric-filter/input/main.tf | 16 + .../log-metric-filter/input/outputs.tf | 4 + .../log-metric-filter/input/variables.tf | 55 + .../log-metric-filter/input/versions.tf | 10 + .../5.7.3/modules/log-stream/LICENSE | 176 + .../5.7.3/modules/log-stream/fixture.json | 32 + .../5.7.3/modules/log-stream/input/main.tf | 6 + .../5.7.3/modules/log-stream/input/outputs.tf | 9 + .../modules/log-stream/input/variables.tf | 17 + .../modules/log-stream/input/versions.tf | 10 + .../modules/log-subscription-filter/LICENSE | 176 + .../log-subscription-filter/fixture.json | 32 + .../log-subscription-filter/input/main.tf | 10 + .../log-subscription-filter/input/outputs.tf | 4 + .../input/variables.tf | 41 + .../log-subscription-filter/input/versions.tf | 10 + .../5.7.3/modules/metric-alarm/LICENSE | 176 + .../5.7.3/modules/metric-alarm/fixture.json | 34 + .../5.7.3/modules/metric-alarm/input/main.tf | 57 + .../modules/metric-alarm/input/outputs.tf | 9 + .../modules/metric-alarm/input/variables.tf | 134 + .../modules/metric-alarm/input/versions.tf | 10 + .../LICENSE | 176 + .../fixture.json | 32 + .../input/main.tf | 55 + .../input/outputs.tf | 9 + .../input/variables.tf | 133 + .../input/versions.tf | 10 + .../5.7.3/modules/metric-stream/LICENSE | 176 + .../5.7.3/modules/metric-stream/fixture.json | 34 + .../5.7.3/modules/metric-stream/input/main.tf | 47 + .../modules/metric-stream/input/outputs.tf | 19 + .../modules/metric-stream/input/variables.tf | 56 + .../modules/metric-stream/input/versions.tf | 10 + .../5.7.3/modules/query-definition/LICENSE | 176 + .../modules/query-definition/fixture.json | 32 + .../modules/query-definition/input/main.tf | 7 + .../modules/query-definition/input/outputs.tf | 4 + .../query-definition/input/variables.tf | 21 + .../query-definition/input/versions.tf | 10 + .../rds_enhanced_monitoring_forwarder/LICENSE | 176 + .../fixture.json | 37 + .../input/main.tf | 148 + .../input/outputs.tf | 67 + .../input/variables.tf | 206 + .../input/versions.tf | 16 + .../modules/vpc_flow_log_forwarder/LICENSE | 176 + .../vpc_flow_log_forwarder/fixture.json | 38 + .../vpc_flow_log_forwarder/input/main.tf | 185 + .../vpc_flow_log_forwarder/input/outputs.tf | 67 + .../vpc_flow_log_forwarder/input/variables.tf | 223 + .../vpc_flow_log_forwarder/input/versions.tf | 16 + .../terraform-aws-modules/dms/2.6.0/LICENSE | 176 + .../dms/2.6.0/fixture.json | 41 + .../dms/2.6.0/input/main.tf | 736 ++ .../dms/2.6.0/input/outputs.tf | 156 + .../dms/2.6.0/input/variables.tf | 359 + .../dms/2.6.0/input/versions.tf | 14 + .../dynamodb-table/5.5.2/LICENSE | 176 + .../dynamodb-table/5.5.2/fixture.json | 37 + .../dynamodb-table/5.5.2/input/autoscaling.tf | 119 + .../dynamodb-table/5.5.2/input/main.tf | 446 + .../dynamodb-table/5.5.2/input/outputs.tf | 46 + .../dynamodb-table/5.5.2/input/variables.tf | 243 + .../dynamodb-table/5.5.2/input/versions.tf | 16 + .../ec2-instance/6.4.1/LICENSE | 176 + .../ec2-instance/6.4.1/fixture.json | 38 + .../ec2-instance/6.4.1/input/main.tf | 867 ++ .../ec2-instance/6.4.1/input/outputs.tf | 246 + .../ec2-instance/6.4.1/input/variables.tf | 639 ++ .../ec2-instance/6.4.1/input/versions.tf | 16 + .../terraform-aws-modules/ecr/3.2.0/LICENSE | 176 + .../ecr/3.2.0/fixture.json | 37 + .../ecr/3.2.0/input/main.tf | 359 + .../ecr/3.2.0/input/outputs.tf | 23 + .../ecr/3.2.0/input/variables.tf | 263 + .../ecr/3.2.0/input/versions.tf | 16 + .../3.2.0/modules/repository-template/LICENSE | 176 + .../modules/repository-template/fixture.json | 37 + .../modules/repository-template/input/main.tf | 270 + .../repository-template/input/outputs.tf | 18 + .../repository-template/input/variables.tf | 212 + .../repository-template/input/versions.tf | 16 + .../terraform-aws-modules/ecs/7.6.1/LICENSE | 176 + .../ecs/7.6.1/fixture.json | 41 + .../ecs/7.6.1/input/main.tf | 244 + .../ecs/7.6.1/input/modules/cluster/main.tf | 1030 +++ .../7.6.1/input/modules/cluster/outputs.tf | 127 + .../7.6.1/input/modules/cluster/variables.tf | 620 ++ .../7.6.1/input/modules/cluster/versions.tf | 20 + .../modules/container-definition/main.tf | 100 + .../modules/container-definition/outputs.tf | 28 + .../modules/container-definition/variables.tf | 455 + .../modules/container-definition/versions.tf | 16 + .../ecs/7.6.1/input/modules/service/main.tf | 2041 +++++ .../7.6.1/input/modules/service/outputs.tf | 166 + .../7.6.1/input/modules/service/variables.tf | 1371 +++ .../7.6.1/input/modules/service/versions.tf | 16 + .../ecs/7.6.1/input/outputs.tf | 107 + .../ecs/7.6.1/input/variables.tf | 1293 +++ .../ecs/7.6.1/input/versions.tf | 16 + .../ecs/7.6.1/modules/cluster/LICENSE | 176 + .../ecs/7.6.1/modules/cluster/fixture.json | 39 + .../ecs/7.6.1/modules/cluster/input/main.tf | 1030 +++ .../7.6.1/modules/cluster/input/outputs.tf | 127 + .../7.6.1/modules/cluster/input/variables.tf | 620 ++ .../7.6.1/modules/cluster/input/versions.tf | 20 + .../modules/container-definition/LICENSE | 176 + .../modules/container-definition/fixture.json | 36 + .../container-definition/input/main.tf | 100 + .../container-definition/input/outputs.tf | 28 + .../container-definition/input/variables.tf | 455 + .../container-definition/input/versions.tf | 16 + .../ecs/7.6.1/modules/express-service/LICENSE | 176 + .../modules/express-service/fixture.json | 38 + .../modules/express-service/input/main.tf | 524 ++ .../modules/express-service/input/outputs.tf | 98 + .../express-service/input/variables.tf | 489 + .../modules/express-service/input/versions.tf | 16 + .../terraform-aws-modules/efs/2.2.1/LICENSE | 176 + .../efs/2.2.1/fixture.json | 37 + .../efs/2.2.1/input/main.tf | 322 + .../efs/2.2.1/input/outputs.tf | 64 + .../efs/2.2.1/input/variables.tf | 315 + .../efs/2.2.1/input/versions.tf | 16 + .../eks-pod-identity/2.10.0/LICENSE | 176 + .../eks-pod-identity/2.10.0/fixture.json | 37 + .../amazon_managed_service_prometheus.tf | 46 + .../2.10.0/input/aws_appmesh.tf | 174 + .../input/aws_cloudwatch_observability.tf | 13 + .../2.10.0/input/aws_ebs_csi.tf | 218 + .../2.10.0/input/aws_efs_csi.tf | 79 + .../2.10.0/input/aws_fsx_lustre_csi.tf | 67 + .../2.10.0/input/aws_gateway_controller.tf | 83 + .../2.10.0/input/aws_lb_controller.tf | 543 ++ .../input/aws_node_termination_handler.tf | 55 + .../2.10.0/input/aws_privateca_issuer.tf | 43 + .../2.10.0/input/aws_vpc_cni.tf | 96 + .../2.10.0/input/cert_manager.tf | 54 + .../2.10.0/input/cluster_autoscaler.tf | 71 + .../2.10.0/input/external_dns.tf | 51 + .../2.10.0/input/external_secrets.tf | 116 + .../eks-pod-identity/2.10.0/input/main.tf | 218 + .../2.10.0/input/mountpoint_s3_csi.tf | 52 + .../eks-pod-identity/2.10.0/input/outputs.tf | 116 + .../2.10.0/input/pganalyze.tf | 69 + .../2.10.0/input/variables.tf | 590 ++ .../eks-pod-identity/2.10.0/input/velero.tf | 91 + .../eks-pod-identity/2.10.0/input/versions.tf | 16 + .../terraform-aws-modules/eks/21.29.0/LICENSE | 176 + .../examples/eks-managed-node-group/LICENSE | 176 + .../eks-managed-node-group/fixture.json | 32 + .../input/eks-al2023.tf | 55 + .../input/eks-bottlerocket.tf | 56 + .../eks-managed-node-group/input/main.tf | 55 + .../eks-managed-node-group/input/outputs.tf | 0 .../eks-managed-node-group/input/variables.tf | 0 .../eks-managed-node-group/input/versions.tf | 10 + .../examples/self-managed-node-group/LICENSE | 176 + .../self-managed-node-group/fixture.json | 32 + .../input/eks-al2023.tf | 54 + .../input/eks-bottlerocket.tf | 56 + .../self-managed-node-group/input/main.tf | 55 + .../self-managed-node-group/input/outputs.tf | 0 .../input/variables.tf | 0 .../self-managed-node-group/input/versions.tf | 10 + .../eks/21.29.0/fixture.json | 45 + .../eks/21.29.0/input/main.tf | 1014 +++ .../21.29.0/input/modules/_user_data/main.tf | 138 + .../input/modules/_user_data/outputs.tf | 4 + .../input/modules/_user_data/variables.tf | 121 + .../input/modules/_user_data/versions.tf | 14 + .../modules/eks-managed-node-group/main.tf | 854 ++ .../eks-managed-node-group/migrations.tf | 20 + .../modules/eks-managed-node-group/outputs.tf | 95 + .../eks-managed-node-group/variables.tf | 809 ++ .../eks-managed-node-group/versions.tf | 16 + .../input/modules/fargate-profile/main.tf | 190 + .../modules/fargate-profile/migrations.tf | 15 + .../input/modules/fargate-profile/outputs.tf | 42 + .../modules/fargate-profile/variables.tf | 186 + .../input/modules/fargate-profile/versions.tf | 16 + .../modules/self-managed-node-group/main.tf | 1125 +++ .../self-managed-node-group/migrations.tf | 20 + .../self-managed-node-group/outputs.tf | 157 + .../self-managed-node-group/variables.tf | 1037 +++ .../self-managed-node-group/versions.tf | 16 + .../eks/21.29.0/input/node_groups.tf | 550 ++ .../eks/21.29.0/input/outputs.tf | 281 + .../eks/21.29.0/input/variables.tf | 1577 ++++ .../eks/21.29.0/input/versions.tf | 24 + .../eks/21.29.0/modules/capability/LICENSE | 176 + .../21.29.0/modules/capability/fixture.json | 39 + .../21.29.0/modules/capability/input/main.tf | 222 + .../modules/capability/input/outputs.tf | 37 + .../modules/capability/input/variables.tf | 215 + .../modules/capability/input/versions.tf | 20 + .../21.29.0/modules/fargate-profile/LICENSE | 176 + .../modules/fargate-profile/fixture.json | 38 + .../modules/fargate-profile/input/main.tf | 190 + .../fargate-profile/input/migrations.tf | 15 + .../modules/fargate-profile/input/outputs.tf | 42 + .../fargate-profile/input/variables.tf | 186 + .../modules/fargate-profile/input/versions.tf | 16 + .../21.29.0/modules/hybrid-node-role/LICENSE | 176 + .../modules/hybrid-node-role/fixture.json | 37 + .../modules/hybrid-node-role/input/main.tf | 396 + .../modules/hybrid-node-role/input/outputs.tf | 37 + .../hybrid-node-role/input/variables.tf | 284 + .../hybrid-node-role/input/versions.tf | 16 + .../eks/21.29.0/modules/karpenter/LICENSE | 176 + .../21.29.0/modules/karpenter/fixture.json | 39 + .../21.29.0/modules/karpenter/input/main.tf | 448 + .../modules/karpenter/input/migrations.tf | 77 + .../modules/karpenter/input/outputs.tf | 112 + .../21.29.0/modules/karpenter/input/policy.tf | 419 + .../modules/karpenter/input/variables.tf | 361 + .../modules/karpenter/input/versions.tf | 16 + .../elasticache/1.11.2/LICENSE | 176 + .../elasticache/1.11.2/fixture.json | 37 + .../elasticache/1.11.2/input/main.tf | 357 + .../elasticache/1.11.2/input/outputs.tf | 154 + .../elasticache/1.11.2/input/variables.tf | 436 + .../elasticache/1.11.2/input/versions.tf | 14 + .../1.11.2/modules/serverless-cache/LICENSE | 176 + .../modules/serverless-cache/fixture.json | 34 + .../modules/serverless-cache/input/main.tf | 46 + .../modules/serverless-cache/input/outputs.tf | 34 + .../serverless-cache/input/variables.tf | 89 + .../serverless-cache/input/versions.tf | 10 + .../1.11.2/modules/user-group/LICENSE | 176 + .../1.11.2/modules/user-group/fixture.json | 35 + .../1.11.2/modules/user-group/input/main.tf | 85 + .../modules/user-group/input/outputs.tf | 27 + .../modules/user-group/input/variables.tf | 61 + .../modules/user-group/input/versions.tf | 10 + .../terraform-aws-modules/elb/4.0.3/LICENSE | 176 + .../elb/4.0.3/fixture.json | 35 + .../elb/4.0.3/input/main.tf | 45 + .../elb/4.0.3/input/modules/elb/main.tf | 51 + .../elb/4.0.3/input/modules/elb/outputs.tf | 39 + .../elb/4.0.3/input/modules/elb/variables.tf | 78 + .../elb/4.0.3/input/modules/elb/versions.tf | 10 + .../input/modules/elb_attachment/main.tf | 6 + .../input/modules/elb_attachment/outputs.tf | 0 .../input/modules/elb_attachment/variables.tf | 20 + .../input/modules/elb_attachment/versions.tf | 10 + .../elb/4.0.3/input/outputs.tf | 34 + .../elb/4.0.3/input/variables.tf | 91 + .../elb/4.0.3/input/versions.tf | 3 + .../elb/4.0.3/modules/elb/LICENSE | 176 + .../elb/4.0.3/modules/elb/fixture.json | 34 + .../elb/4.0.3/modules/elb/input/main.tf | 51 + .../elb/4.0.3/modules/elb/input/outputs.tf | 39 + .../elb/4.0.3/modules/elb/input/variables.tf | 78 + .../elb/4.0.3/modules/elb/input/versions.tf | 10 + .../elb/4.0.3/modules/elb_attachment/LICENSE | 176 + .../4.0.3/modules/elb_attachment/fixture.json | 30 + .../modules/elb_attachment/input/main.tf | 6 + .../modules/elb_attachment/input/outputs.tf | 0 .../modules/elb_attachment/input/variables.tf | 20 + .../modules/elb_attachment/input/versions.tf | 10 + .../terraform-aws-modules/emr/3.3.0/LICENSE | 176 + .../emr/3.3.0/fixture.json | 40 + .../emr/3.3.0/input/main.tf | 1024 +++ .../emr/3.3.0/input/migrations.tf | 20 + .../emr/3.3.0/input/outputs.tf | 156 + .../emr/3.3.0/input/variables.tf | 775 ++ .../emr/3.3.0/input/versions.tf | 16 + .../emr/3.3.0/modules/serverless/LICENSE | 176 + .../emr/3.3.0/modules/serverless/fixture.json | 37 + .../3.3.0/modules/serverless/input/main.tf | 273 + .../3.3.0/modules/serverless/input/outputs.tf | 27 + .../modules/serverless/input/variables.tf | 258 + .../modules/serverless/input/versions.tf | 16 + .../emr/3.3.0/modules/studio/LICENSE | 176 + .../emr/3.3.0/modules/studio/fixture.json | 37 + .../emr/3.3.0/modules/studio/input/main.tf | 868 ++ .../emr/3.3.0/modules/studio/input/outputs.tf | 117 + .../3.3.0/modules/studio/input/variables.tf | 439 + .../3.3.0/modules/studio/input/versions.tf | 16 + .../emr/3.3.0/modules/virtual-cluster/LICENSE | 176 + .../modules/virtual-cluster/fixture.json | 37 + .../modules/virtual-cluster/input/main.tf | 276 + .../modules/virtual-cluster/input/outputs.tf | 46 + .../virtual-cluster/input/variables.tf | 177 + .../modules/virtual-cluster/input/versions.tf | 20 + .../eventbridge/4.3.3/LICENSE | 13 + .../eventbridge/4.3.3/fixture.json | 40 + .../eventbridge/4.3.3/input/iam.tf | 534 ++ .../eventbridge/4.3.3/input/iam_pipes.tf | 411 + .../eventbridge/4.3.3/input/main.tf | 1048 +++ .../eventbridge/4.3.3/input/outputs.tf | 200 + .../eventbridge/4.3.3/input/variables.tf | 526 ++ .../eventbridge/4.3.3/input/versions.tf | 16 + .../fsx/1.3.2/modules/lustre/LICENSE | 176 + .../fsx/1.3.2/modules/lustre/fixture.json | 37 + .../fsx/1.3.2/modules/lustre/input/main.tf | 336 + .../fsx/1.3.2/modules/lustre/input/outputs.tf | 98 + .../1.3.2/modules/lustre/input/variables.tf | 324 + .../1.3.2/modules/lustre/input/versions.tf | 10 + .../fsx/1.3.2/modules/ontap/LICENSE | 176 + .../fsx/1.3.2/modules/ontap/fixture.json | 38 + .../fsx/1.3.2/modules/ontap/input/main.tf | 294 + .../fsx/1.3.2/modules/ontap/input/outputs.tf | 60 + .../1.3.2/modules/ontap/input/variables.tf | 202 + .../fsx/1.3.2/modules/ontap/input/versions.tf | 10 + .../fsx/1.3.2/modules/openzfs/LICENSE | 176 + .../fsx/1.3.2/modules/openzfs/fixture.json | 37 + .../fsx/1.3.2/modules/openzfs/input/main.tf | 323 + .../1.3.2/modules/openzfs/input/outputs.tf | 75 + .../1.3.2/modules/openzfs/input/variables.tf | 225 + .../1.3.2/modules/openzfs/input/versions.tf | 10 + .../fsx/1.3.2/modules/windows/LICENSE | 176 + .../fsx/1.3.2/modules/windows/fixture.json | 37 + .../fsx/1.3.2/modules/windows/input/main.tf | 177 + .../1.3.2/modules/windows/input/outputs.tf | 61 + .../1.3.2/modules/windows/input/variables.tf | 247 + .../1.3.2/modules/windows/input/versions.tf | 10 + .../global-accelerator/3.0.0/LICENSE | 176 + .../global-accelerator/3.0.0/fixture.json | 37 + .../global-accelerator/3.0.0/input/main.tf | 102 + .../global-accelerator/3.0.0/input/outputs.tf | 51 + .../3.0.0/input/variables.tf | 91 + .../3.0.0/input/versions.tf | 10 + .../3.0.0/modules/custom-routing/LICENSE | 176 + .../3.0.0/modules/custom-routing/fixture.json | 37 + .../modules/custom-routing/input/main.tf | 90 + .../modules/custom-routing/input/outputs.tf | 46 + .../modules/custom-routing/input/variables.tf | 91 + .../modules/custom-routing/input/versions.tf | 10 + .../iam/6.8.2/modules/iam-account/LICENSE | 176 + .../6.8.2/modules/iam-account/fixture.json | 32 + .../6.8.2/modules/iam-account/input/main.tf | 27 + .../modules/iam-account/input/outputs.tf | 4 + .../modules/iam-account/input/variables.tf | 78 + .../modules/iam-account/input/versions.tf | 16 + .../iam/6.8.2/modules/iam-group/LICENSE | 176 + .../iam/6.8.2/modules/iam-group/fixture.json | 39 + .../iam/6.8.2/modules/iam-group/input/main.tf | 266 + .../modules/iam-group/input/migrations.tf | 13 + .../6.8.2/modules/iam-group/input/outputs.tf | 47 + .../modules/iam-group/input/variables.tf | 117 + .../6.8.2/modules/iam-group/input/versions.tf | 16 + .../6.8.2/modules/iam-oidc-provider/LICENSE | 176 + .../modules/iam-oidc-provider/fixture.json | 36 + .../modules/iam-oidc-provider/input/main.tf | 27 + .../iam-oidc-provider/input/outputs.tf | 13 + .../iam-oidc-provider/input/variables.tf | 27 + .../iam-oidc-provider/input/versions.tf | 20 + .../iam/6.8.2/modules/iam-policy/LICENSE | 176 + .../iam/6.8.2/modules/iam-policy/fixture.json | 32 + .../6.8.2/modules/iam-policy/input/main.tf | 15 + .../6.8.2/modules/iam-policy/input/outputs.tf | 23 + .../modules/iam-policy/input/variables.tf | 41 + .../modules/iam-policy/input/versions.tf | 16 + .../modules/iam-read-only-policy/LICENSE | 176 + .../modules/iam-read-only-policy/fixture.json | 36 + .../iam-read-only-policy/input/main.tf | 84 + .../iam-read-only-policy/input/outputs.tf | 28 + .../iam-read-only-policy/input/variables.tf | 87 + .../iam-read-only-policy/input/versions.tf | 16 + .../iam-role-for-service-accounts/LICENSE | 176 + .../fixture.json | 38 + .../input/main.tf | 291 + .../input/outputs.tf | 37 + .../input/policies.tf | 1310 +++ .../input/variables.tf | 464 + .../input/versions.tf | 16 + .../iam/6.8.2/modules/iam-role/LICENSE | 176 + .../iam/6.8.2/modules/iam-role/fixture.json | 38 + .../iam/6.8.2/modules/iam-role/input/main.tf | 390 + .../6.8.2/modules/iam-role/input/outputs.tf | 42 + .../6.8.2/modules/iam-role/input/variables.tf | 241 + .../6.8.2/modules/iam-role/input/versions.tf | 16 + .../iam/6.8.2/modules/iam-user/LICENSE | 176 + .../iam/6.8.2/modules/iam-user/fixture.json | 38 + .../iam/6.8.2/modules/iam-user/input/main.tf | 122 + .../modules/iam-user/input/migrations.tf | 8 + .../6.8.2/modules/iam-user/input/outputs.tf | 93 + .../6.8.2/modules/iam-user/input/variables.tf | 159 + .../6.8.2/modules/iam-user/input/versions.tf | 16 + .../key-pair/3.0.1/LICENSE | 176 + .../key-pair/3.0.1/fixture.json | 34 + .../key-pair/3.0.1/input/main.tf | 27 + .../key-pair/3.0.1/input/outputs.tf | 64 + .../key-pair/3.0.1/input/variables.tf | 67 + .../key-pair/3.0.1/input/versions.tf | 14 + .../terraform-aws-modules/kms/4.2.2/LICENSE | 176 + .../kms/4.2.2/fixture.json | 38 + .../kms/4.2.2/input/main.tf | 498 + .../kms/4.2.2/input/outputs.tf | 57 + .../kms/4.2.2/input/variables.tf | 301 + .../kms/4.2.2/input/versions.tf | 16 + .../lambda/8.12.0/modules/alias/LICENSE | 176 + .../lambda/8.12.0/modules/alias/fixture.json | 37 + .../lambda/8.12.0/modules/alias/input/main.tf | 193 + .../8.12.0/modules/alias/input/outputs.tf | 45 + .../8.12.0/modules/alias/input/variables.tf | 129 + .../8.12.0/modules/alias/input/versions.tf | 16 + .../8.12.0/modules/docker-build/LICENSE | 176 + .../8.12.0/modules/docker-build/fixture.json | 37 + .../8.12.0/modules/docker-build/input/main.tf | 75 + .../modules/docker-build/input/outputs.tf | 9 + .../modules/docker-build/input/variables.tf | 132 + .../modules/docker-build/input/versions.tf | 24 + .../managed-service-grafana/2.3.1/LICENSE | 176 + .../2.3.1/fixture.json | 37 + .../2.3.1/input/main.tf | 418 + .../2.3.1/input/outputs.tf | 121 + .../2.3.1/input/variables.tf | 367 + .../2.3.1/input/versions.tf | 10 + .../memory-db/3.2.0/LICENSE | 176 + .../memory-db/3.2.0/fixture.json | 38 + .../memory-db/3.2.0/input/main.tf | 145 + .../memory-db/3.2.0/input/outputs.tf | 95 + .../memory-db/3.2.0/input/variables.tf | 309 + .../memory-db/3.2.0/input/versions.tf | 16 + .../msk-kafka-cluster/3.3.0/LICENSE | 176 + .../msk-kafka-cluster/3.3.0/fixture.json | 39 + .../3.3.0/input/kafka_connect.tf | 40 + .../msk-kafka-cluster/3.3.0/input/main.tf | 405 + .../msk-kafka-cluster/3.3.0/input/outputs.tf | 217 + .../3.3.0/input/variables.tf | 494 + .../msk-kafka-cluster/3.3.0/input/versions.tf | 20 + .../3.3.0/modules/serverless/LICENSE | 176 + .../3.3.0/modules/serverless/fixture.json | 36 + .../3.3.0/modules/serverless/input/main.tf | 85 + .../3.3.0/modules/serverless/input/outputs.tf | 13 + .../modules/serverless/input/variables.tf | 86 + .../modules/serverless/input/versions.tf | 16 + .../network-firewall/2.3.0/LICENSE | 176 + .../network-firewall/2.3.0/fixture.json | 37 + .../network-firewall/2.3.0/input/main.tf | 72 + .../2.3.0/input/modules/firewall/main.tf | 78 + .../2.3.0/input/modules/firewall/outputs.tf | 32 + .../2.3.0/input/modules/firewall/variables.tf | 137 + .../2.3.0/input/modules/firewall/versions.tf | 16 + .../2.3.0/input/modules/policy/main.tf | 181 + .../2.3.0/input/modules/policy/outputs.tf | 27 + .../2.3.0/input/modules/policy/variables.tf | 185 + .../2.3.0/input/modules/policy/versions.tf | 16 + .../network-firewall/2.3.0/input/outputs.tf | 56 + .../network-firewall/2.3.0/input/variables.tf | 298 + .../network-firewall/2.3.0/input/versions.tf | 3 + .../2.3.0/modules/firewall/LICENSE | 176 + .../2.3.0/modules/firewall/fixture.json | 34 + .../2.3.0/modules/firewall/input/main.tf | 78 + .../2.3.0/modules/firewall/input/outputs.tf | 32 + .../2.3.0/modules/firewall/input/variables.tf | 137 + .../2.3.0/modules/firewall/input/versions.tf | 16 + .../2.3.0/modules/policy/LICENSE | 176 + .../2.3.0/modules/policy/fixture.json | 36 + .../2.3.0/modules/policy/input/main.tf | 181 + .../2.3.0/modules/policy/input/outputs.tf | 27 + .../2.3.0/modules/policy/input/variables.tf | 185 + .../2.3.0/modules/policy/input/versions.tf | 16 + .../2.3.0/modules/rule-group/LICENSE | 176 + .../2.3.0/modules/rule-group/fixture.json | 35 + .../2.3.0/modules/rule-group/input/main.tf | 311 + .../2.3.0/modules/rule-group/input/outputs.tf | 27 + .../modules/rule-group/input/variables.tf | 201 + .../modules/rule-group/input/versions.tf | 16 + .../notify-slack/7.5.2/LICENSE | 176 + .../notify-slack/7.5.2/fixture.json | 39 + .../notify-slack/7.5.2/input/iam.tf | 38 + .../notify-slack/7.5.2/input/main.tf | 160 + .../notify-slack/7.5.2/input/outputs.tf | 55 + .../notify-slack/7.5.2/input/variables.tf | 301 + .../notify-slack/7.5.2/input/versions.tf | 16 + .../opensearch/2.11.1/LICENSE | 176 + .../opensearch/2.11.1/fixture.json | 39 + .../opensearch/2.11.1/input/main.tf | 617 ++ .../opensearch/2.11.1/input/outputs.tf | 93 + .../opensearch/2.11.1/input/variables.tf | 373 + .../opensearch/2.11.1/input/versions.tf | 16 + .../2.11.1/modules/collection/LICENSE | 176 + .../2.11.1/modules/collection/fixture.json | 37 + .../2.11.1/modules/collection/input/main.tf | 191 + .../modules/collection/input/outputs.tf | 103 + .../modules/collection/input/variables.tf | 243 + .../modules/collection/input/versions.tf | 16 + .../rds-aurora/10.4.1/LICENSE | 176 + .../rds-aurora/10.4.1/fixture.json | 40 + .../rds-aurora/10.4.1/input/main.tf | 599 ++ .../rds-aurora/10.4.1/input/outputs.tf | 218 + .../rds-aurora/10.4.1/input/variables.tf | 867 ++ .../rds-aurora/10.4.1/input/versions.tf | 16 + .../rds-aurora/10.4.1/modules/dsql/LICENSE | 176 + .../10.4.1/modules/dsql/fixture.json | 36 + .../10.4.1/modules/dsql/input/main.tf | 117 + .../10.4.1/modules/dsql/input/outputs.tf | 42 + .../10.4.1/modules/dsql/input/variables.tf | 139 + .../10.4.1/modules/dsql/input/versions.tf | 16 + .../rds-proxy/4.4.0/LICENSE | 176 + .../rds-proxy/4.4.0/fixture.json | 39 + .../rds-proxy/4.4.0/input/main.tf | 239 + .../rds-proxy/4.4.0/input/outputs.tf | 118 + .../rds-proxy/4.4.0/input/variables.tf | 308 + .../rds-proxy/4.4.0/input/versions.tf | 16 + .../terraform-aws-modules/rds/7.2.2/LICENSE | 176 + .../rds/7.2.2/fixture.json | 43 + .../rds/7.2.2/input/main.tf | 182 + .../7.2.2/input/modules/db_instance/main.tf | 242 + .../input/modules/db_instance/outputs.tf | 143 + .../input/modules/db_instance/variables.tf | 562 ++ .../input/modules/db_instance/versions.tf | 21 + .../db_instance_role_association/main.tf | 8 + .../db_instance_role_association/outputs.tf | 4 + .../db_instance_role_association/variables.tf | 29 + .../db_instance_role_association/versions.tf | 16 + .../input/modules/db_option_group/main.tf | 57 + .../input/modules/db_option_group/outputs.tf | 9 + .../modules/db_option_group/variables.tf | 77 + .../input/modules/db_option_group/versions.tf | 16 + .../input/modules/db_parameter_group/main.tf | 38 + .../modules/db_parameter_group/outputs.tf | 9 + .../modules/db_parameter_group/variables.tf | 57 + .../modules/db_parameter_group/versions.tf | 16 + .../input/modules/db_subnet_group/main.tf | 23 + .../input/modules/db_subnet_group/outputs.tf | 9 + .../modules/db_subnet_group/variables.tf | 41 + .../input/modules/db_subnet_group/versions.tf | 16 + .../rds/7.2.2/input/outputs.tf | 183 + .../rds/7.2.2/input/variables.tf | 717 ++ .../rds/7.2.2/input/versions.tf | 16 + .../rds/7.2.2/modules/db_instance/LICENSE | 176 + .../7.2.2/modules/db_instance/fixture.json | 42 + .../7.2.2/modules/db_instance/input/main.tf | 242 + .../modules/db_instance/input/outputs.tf | 143 + .../modules/db_instance/input/variables.tf | 562 ++ .../modules/db_instance/input/versions.tf | 21 + .../LICENSE | 176 + .../fixture.json | 32 + .../input/main.tf | 9 + .../input/outputs.tf | 4 + .../input/variables.tf | 35 + .../input/versions.tf | 16 + .../db_instance_role_association/LICENSE | 176 + .../db_instance_role_association/fixture.json | 32 + .../input/main.tf | 8 + .../input/outputs.tf | 4 + .../input/variables.tf | 29 + .../input/versions.tf | 16 + .../rds/7.2.2/modules/db_option_group/LICENSE | 176 + .../modules/db_option_group/fixture.json | 36 + .../modules/db_option_group/input/main.tf | 57 + .../modules/db_option_group/input/outputs.tf | 9 + .../db_option_group/input/variables.tf | 77 + .../modules/db_option_group/input/versions.tf | 16 + .../7.2.2/modules/db_parameter_group/LICENSE | 176 + .../modules/db_parameter_group/fixture.json | 36 + .../modules/db_parameter_group/input/main.tf | 38 + .../db_parameter_group/input/outputs.tf | 9 + .../db_parameter_group/input/variables.tf | 57 + .../db_parameter_group/input/versions.tf | 16 + .../rds/7.2.2/modules/db_subnet_group/LICENSE | 176 + .../modules/db_subnet_group/fixture.json | 34 + .../modules/db_subnet_group/input/main.tf | 23 + .../modules/db_subnet_group/input/outputs.tf | 9 + .../db_subnet_group/input/variables.tf | 41 + .../modules/db_subnet_group/input/versions.tf | 16 + .../redshift/7.1.1/LICENSE | 176 + .../redshift/7.1.1/fixture.json | 40 + .../redshift/7.1.1/input/main.tf | 458 + .../redshift/7.1.1/input/outputs.tf | 235 + .../redshift/7.1.1/input/variables.tf | 635 ++ .../redshift/7.1.1/input/versions.tf | 16 + .../route53/6.5.1/LICENSE | 176 + .../route53/6.5.1/fixture.json | 38 + .../route53/6.5.1/input/main.tf | 241 + .../route53/6.5.1/input/outputs.tf | 92 + .../route53/6.5.1/input/variables.tf | 204 + .../route53/6.5.1/input/versions.tf | 16 + .../6.5.1/modules/delegation-sets/LICENSE | 176 + .../modules/delegation-sets/fixture.json | 30 + .../modules/delegation-sets/input/main.tf | 5 + .../modules/delegation-sets/input/outputs.tf | 14 + .../delegation-sets/input/variables.tf | 13 + .../modules/delegation-sets/input/versions.tf | 16 + .../6.5.1/modules/resolver-endpoint/LICENSE | 176 + .../modules/resolver-endpoint/fixture.json | 36 + .../modules/resolver-endpoint/input/main.tf | 190 + .../resolver-endpoint/input/outputs.tf | 51 + .../resolver-endpoint/input/variables.tf | 156 + .../resolver-endpoint/input/versions.tf | 16 + .../resolver-firewall-rule-group/LICENSE | 176 + .../resolver-firewall-rule-group/fixture.json | 33 + .../input/main.tf | 66 + .../input/outputs.tf | 45 + .../input/variables.tf | 67 + .../input/versions.tf | 16 + .../s3-bucket/5.17.0/LICENSE | 176 + .../s3-bucket/5.17.0/fixture.json | 40 + .../s3-bucket/5.17.0/input/main.tf | 1641 ++++ .../5.17.0/input/modules/file-system/main.tf | 633 ++ .../input/modules/file-system/outputs.tf | 74 + .../input/modules/file-system/variables.tf | 390 + .../input/modules/file-system/versions.tf | 16 + .../s3-bucket/5.17.0/input/outputs.tf | 147 + .../s3-bucket/5.17.0/input/variables.tf | 1000 ++ .../s3-bucket/5.17.0/input/versions.tf | 16 + .../modules/account-public-access/LICENSE | 176 + .../account-public-access/fixture.json | 33 + .../account-public-access/input/main.tf | 10 + .../account-public-access/input/outputs.tf | 4 + .../account-public-access/input/variables.tf | 35 + .../account-public-access/input/versions.tf | 16 + .../5.17.0/modules/file-system/LICENSE | 176 + .../5.17.0/modules/file-system/fixture.json | 39 + .../5.17.0/modules/file-system/input/main.tf | 633 ++ .../modules/file-system/input/outputs.tf | 74 + .../modules/file-system/input/variables.tf | 390 + .../modules/file-system/input/versions.tf | 16 + .../5.17.0/modules/notification/LICENSE | 176 + .../5.17.0/modules/notification/fixture.json | 38 + .../5.17.0/modules/notification/input/main.tf | 160 + .../modules/notification/input/outputs.tf | 4 + .../modules/notification/input/variables.tf | 103 + .../modules/notification/input/versions.tf | 16 + .../s3-bucket/5.17.0/modules/object/LICENSE | 176 + .../5.17.0/modules/object/fixture.json | 34 + .../5.17.0/modules/object/input/main.tf | 51 + .../5.17.0/modules/object/input/outputs.tf | 14 + .../5.17.0/modules/object/input/variables.tf | 181 + .../5.17.0/modules/object/input/versions.tf | 16 + .../5.17.0/modules/table-bucket/LICENSE | 176 + .../5.17.0/modules/table-bucket/fixture.json | 36 + .../5.17.0/modules/table-bucket/input/main.tf | 166 + .../modules/table-bucket/input/outputs.tf | 72 + .../modules/table-bucket/input/variables.tf | 173 + .../modules/table-bucket/input/versions.tf | 16 + .../s3-bucket/5.17.0/modules/vectors/LICENSE | 176 + .../5.17.0/modules/vectors/fixture.json | 34 + .../5.17.0/modules/vectors/input/main.tf | 67 + .../5.17.0/modules/vectors/input/outputs.tf | 32 + .../5.17.0/modules/vectors/input/variables.tf | 81 + .../5.17.0/modules/vectors/input/versions.tf | 16 + .../secrets-manager/2.2.0/LICENSE | 176 + .../secrets-manager/2.2.0/fixture.json | 36 + .../secrets-manager/2.2.0/input/main.tf | 161 + .../secrets-manager/2.2.0/input/outputs.tf | 44 + .../secrets-manager/2.2.0/input/variables.tf | 217 + .../secrets-manager/2.2.0/input/versions.tf | 20 + .../security-group/6.0.0/LICENSE | 11 + .../security-group/6.0.0/fixture.json | 37 + .../security-group/6.0.0/input/main.tf | 111 + .../security-group/6.0.0/input/outputs.tf | 28 + .../security-group/6.0.0/input/variables.tf | 144 + .../security-group/6.0.0/input/versions.tf | 16 + .../terraform-aws-modules/sns/7.2.0/LICENSE | 176 + .../sns/7.2.0/fixture.json | 37 + .../sns/7.2.0/input/main.tf | 187 + .../sns/7.2.0/input/outputs.tf | 37 + .../sns/7.2.0/input/variables.tf | 241 + .../sns/7.2.0/input/versions.tf | 16 + .../terraform-aws-modules/sqs/5.2.2/LICENSE | 176 + .../sqs/5.2.2/fixture.json | 37 + .../sqs/5.2.2/input/main.tf | 290 + .../sqs/5.2.2/input/outputs.tf | 57 + .../sqs/5.2.2/input/variables.tf | 319 + .../sqs/5.2.2/input/versions.tf | 16 + .../ssm-parameter/2.1.2/LICENSE | 176 + .../ssm-parameter/2.1.2/fixture.json | 34 + .../ssm-parameter/2.1.2/input/main.tf | 67 + .../ssm-parameter/2.1.2/input/outputs.tf | 69 + .../ssm-parameter/2.1.2/input/variables.tf | 99 + .../ssm-parameter/2.1.2/input/versions.tf | 16 + .../step-functions/5.1.1/LICENSE | 176 + .../step-functions/5.1.1/fixture.json | 37 + .../step-functions/5.1.1/input/locals.tf | 756 ++ .../step-functions/5.1.1/input/main.tf | 335 + .../step-functions/5.1.1/input/outputs.tf | 52 + .../step-functions/5.1.1/input/variables.tf | 276 + .../step-functions/5.1.1/input/versions.tf | 16 + .../transit-gateway/3.3.1/LICENSE | 176 + .../transit-gateway/3.3.1/fixture.json | 38 + .../transit-gateway/3.3.1/input/main.tf | 218 + .../transit-gateway/3.3.1/input/outputs.tf | 100 + .../transit-gateway/3.3.1/input/variables.tf | 193 + .../transit-gateway/3.3.1/input/versions.tf | 16 + .../terraform-aws-modules/vpc/6.7.3/LICENSE | 176 + .../vpc/6.7.3/fixture.json | 39 + .../vpc/6.7.3/input/main.tf | 1543 ++++ .../vpc/6.7.3/input/outputs.tf | 669 ++ .../vpc/6.7.3/input/variables.tf | 1685 ++++ .../vpc/6.7.3/input/versions.tf | 16 + .../vpc/6.7.3/input/vpc-flow-logs.tf | 151 + .../vpc/6.7.3/modules/flow-log/LICENSE | 176 + .../vpc/6.7.3/modules/flow-log/fixture.json | 37 + .../vpc/6.7.3/modules/flow-log/input/main.tf | 330 + .../6.7.3/modules/flow-log/input/outputs.tf | 46 + .../6.7.3/modules/flow-log/input/variables.tf | 277 + .../6.7.3/modules/flow-log/input/versions.tf | 16 + .../vpc/6.7.3/modules/vpc-endpoints/LICENSE | 176 + .../6.7.3/modules/vpc-endpoints/fixture.json | 36 + .../6.7.3/modules/vpc-endpoints/input/main.tf | 121 + .../modules/vpc-endpoints/input/outputs.tf | 18 + .../modules/vpc-endpoints/input/variables.tf | 87 + .../modules/vpc-endpoints/input/versions.tf | 16 + .../vpn-gateway/4.0.0/LICENSE | 176 + .../vpn-gateway/4.0.0/fixture.json | 37 + .../vpn-gateway/4.0.0/input/main.tf | 497 + .../vpn-gateway/4.0.0/input/outputs.tf | 112 + .../vpn-gateway/4.0.0/input/variables.tf | 340 + .../vpn-gateway/4.0.0/input/versions.tf | 10 + .../enforce-mfa/1.2.0/LICENSE | 21 + .../enforce-mfa/1.2.0/examples/basic/LICENSE | 21 + .../1.2.0/examples/basic/fixture.json | 27 + .../1.2.0/examples/basic/input/main.tf | 17 + .../enforce-mfa/1.2.0/fixture.json | 38 + .../enforce-mfa/1.2.0/input/data.tf | 305 + .../enforce-mfa/1.2.0/input/main.tf | 12 + .../enforce-mfa/1.2.0/input/outputs.tf | 20 + .../enforce-mfa/1.2.0/input/variables.tf | 55 + .../enforce-mfa/1.2.0/input/versions.tf | 11 + .../github-oidc-provider/2.3.0/LICENSE | 21 + .../github-oidc-provider/2.3.0/fixture.json | 37 + .../github-oidc-provider/2.3.0/input/main.tf | 60 + .../2.3.0/input/outputs.tf | 9 + .../2.3.0/input/variables.tf | 88 + .../2.3.0/input/versions.tf | 8 + .../lambda/2.13.1/examples/basic/LICENSE | 21 + .../lambda/2.13.1/examples/basic/fixture.json | 28 + .../2.13.1/examples/basic/input/main.tf | 85 + .../2.13.1/examples/basic/input/outputs.tf | 4 + .../2.13.1/examples/basic/input/variables.tf | 6 + .../lambda/2.13.1/examples/tracing/LICENSE | 21 + .../2.13.1/examples/tracing/fixture.json | 29 + .../2.13.1/examples/tracing/input/main.tf | 84 + .../2.13.1/examples/tracing/input/outputs.tf | 4 + .../examples/tracing/input/variables.tf | 15 + .../terraform-redhat/rosa-sts/0.0.16/LICENSE | 201 + .../0.0.16/account_roles_creation/LICENSE | 201 + .../account_role/LICENSE | 201 + .../account_role/fixture.json | 28 + .../input/account_role_resource.tf | 44 + .../input/instance_account_role_resource.tf | 45 + .../account_role/input/variables.tf | 49 + .../account_roles_creation/fixture.json | 35 + .../account_role/account_role_resource.tf | 44 + .../instance_account_role_resource.tf | 45 + .../input/account_role/variables.tf | 49 + .../account_roles_creation/input/main.tf | 120 + .../operator_role_policy/operator_policy.tf | 11 + .../input/operator_role_policy/variables.tf | 24 + .../account_roles_creation/input/output.tf | 4 + .../account_roles_creation/input/variables.tf | 70 + .../operator_role_policy/LICENSE | 201 + .../operator_role_policy/fixture.json | 28 + .../input/operator_policy.tf | 11 + .../operator_role_policy/input/variables.tf | 24 + .../0.0.16/examples/account_roles/LICENSE | 201 + .../examples/account_roles/fixture.json | 26 + .../input/create_account_roles.tf | 23 + .../examples/account_roles/input/variables.tf | 20 + .../examples/operator_roles_and_oidc/LICENSE | 201 + .../operator_roles_and_oidc/fixture.json | 30 + ...create_rosa_sts_operator_roles_and_oidc.tf | 37 + .../input/variables.tf | 41 + .../rosa-sts/0.0.16/fixture.json | 39 + .../account_role/account_role_resource.tf | 44 + .../instance_account_role_resource.tf | 45 + .../account_role/variables.tf | 49 + .../input/account_roles_creation/main.tf | 120 + .../operator_role_policy/operator_policy.tf | 11 + .../operator_role_policy/variables.tf | 24 + .../input/account_roles_creation/output.tf | 4 + .../input/account_roles_creation/variables.tf | 70 + .../rosa-sts/0.0.16/input/main.tf | 89 + .../oidc_config_resources/create_s3_bucket.tf | 42 + .../oidc_config_resources/create_secret.tf | 13 + .../input/oidc_config_resources/output.tf | 4 + .../put_objects_in_s3_bucket.tf | 22 + .../input/oidc_config_resources/variables.tf | 35 + .../input/oidc_provider_creation/main.tf | 14 + .../input/oidc_provider_creation/variables.tf | 23 + .../input/operator_roles_creation/main.tf | 20 + .../operator_roles/operator_role_resource.tf | 37 + .../operator_roles/variables.tf | 39 + .../operator_roles_creation/variables.tf | 43 + .../rosa-sts/0.0.16/input/output.tf | 7 + .../rosa-sts/0.0.16/input/variables.tf | 175 + .../0.0.16/oidc_config_resources/LICENSE | 201 + .../0.0.16/oidc_config_resources/fixture.json | 29 + .../input/create_s3_bucket.tf | 42 + .../input/create_secret.tf | 13 + .../oidc_config_resources/input/output.tf | 4 + .../input/put_objects_in_s3_bucket.tf | 22 + .../oidc_config_resources/input/variables.tf | 35 + .../0.0.16/oidc_provider_creation/LICENSE | 201 + .../oidc_provider_creation/fixture.json | 28 + .../oidc_provider_creation/input/main.tf | 14 + .../oidc_provider_creation/input/variables.tf | 23 + .../0.0.16/operator_roles_creation/LICENSE | 201 + .../operator_roles_creation/fixture.json | 33 + .../operator_roles_creation/input/main.tf | 20 + .../operator_roles/operator_role_resource.tf | 37 + .../input/operator_roles/variables.tf | 39 + .../input/variables.tf | 43 + .../operator_roles/LICENSE | 201 + .../operator_roles/fixture.json | 29 + .../input/operator_role_resource.tf | 37 + .../operator_roles/input/variables.tf | 39 + .../registry/tf-mod/rbac-role/1.1.2/LICENSE | 21 + .../rbac-role/1.1.2/examples/complete/LICENSE | 21 + .../1.1.2/examples/complete/fixture.json | 27 + .../1.1.2/examples/complete/input/provider.tf | 10 + .../1.1.2/examples/complete/input/rbac.tf | 13 + .../examples/complete/input/variables.tf | 44 + .../tf-mod/rbac-role/1.1.2/fixture.json | 33 + .../tf-mod/rbac-role/1.1.2/input/label.tf | 5 + .../tf-mod/rbac-role/1.1.2/input/main.tf | 40 + .../tf-mod/rbac-role/1.1.2/input/outputs.tf | 3 + .../tf-mod/rbac-role/1.1.2/input/variables.tf | 36 + .../tmknom/elasticache-redis/2.0.0/LICENSE | 201 + .../elasticache-redis/2.0.0/fixture.json | 31 + .../elasticache-redis/2.0.0/input/main.tf | 137 + .../elasticache-redis/2.0.0/input/outputs.tf | 59 + .../2.0.0/input/variables.tf | 101 + .../elasticache-redis/2.0.0/input/versions.tf | 3 + .../transcend-io/lambda-at-edge/0.6.0/LICENSE | 21 + .../lambda-at-edge/0.6.0/fixture.json | 37 + .../lambda-at-edge/0.6.0/input/main.tf | 204 + .../lambda-at-edge/0.6.0/input/outputs.tf | 19 + .../lambda-at-edge/0.6.0/input/variables.tf | 107 + .../lambda-at-edge/0.6.0/input/versions.tf | 13 + .../bitbucket-oidc-provider/0.0.5/LICENSE | 24 + .../0.0.5/fixture.json | 34 + .../0.0.5/input/main.tf | 20 + .../0.0.5/input/outputs.tf | 19 + .../0.0.5/input/variables.tf | 23 + .../0.0.5/input/versions.tf | 10 + .../bitbucket-oidc-provisioner/0.0.8/LICENSE | 24 + .../0.0.8/fixture.json | 37 + .../0.0.8/input/main.tf | 101 + .../0.0.8/input/outputs.tf | 27 + .../0.0.8/input/variables.tf | 81 + .../0.0.8/input/versions.tf | 10 + .../truemark/provisioner/1.1.5/LICENSE | 24 + .../truemark/provisioner/1.1.5/fixture.json | 35 + .../truemark/provisioner/1.1.5/input/main.tf | 139 + .../provisioner/1.1.5/input/outputs.tf | 15 + .../provisioner/1.1.5/input/variables.tf | 67 + .../provisioner/1.1.5/input/versions.tf | 10 + .../trussworks/cloudtrail/5.3.0/LICENSE | 29 + .../trussworks/cloudtrail/5.3.0/fixture.json | 36 + .../trussworks/cloudtrail/5.3.0/input/main.tf | 329 + .../cloudtrail/5.3.0/input/outputs.tf | 19 + .../cloudtrail/5.3.0/input/variables.tf | 105 + .../cloudtrail/5.3.0/input/versions.tf | 7 + .../registry/trussworks/config/8.1.1/LICENSE | 29 + .../trussworks/config/8.1.1/fixture.json | 38 + .../config/8.1.1/input/config-aggregator.tf | 45 + .../config/8.1.1/input/config-rules.tf | 970 ++ .../config/8.1.1/input/config-service.tf | 54 + .../trussworks/config/8.1.1/input/iam.tf | 121 + .../trussworks/config/8.1.1/input/main.tf | 1 + .../trussworks/config/8.1.1/input/outputs.tf | 14 + .../config/8.1.1/input/variables.tf | 575 ++ .../trussworks/config/8.1.1/input/versions.tf | 7 + .../registry/trussworks/logs/18.0.0/LICENSE | 29 + .../trussworks/logs/18.0.0/fixture.json | 38 + .../trussworks/logs/18.0.0/input/main.tf | 496 + .../trussworks/logs/18.0.0/input/outputs.tf | 29 + .../trussworks/logs/18.0.0/input/variables.tf | 236 + .../trussworks/logs/18.0.0/input/versions.tf | 10 + .../s3-private-bucket/9.0.1/LICENSE | 29 + .../s3-private-bucket/9.0.1/fixture.json | 38 + .../s3-private-bucket/9.0.1/input/main.tf | 353 + .../s3-private-bucket/9.0.1/input/outputs.tf | 29 + .../9.0.1/input/variables.tf | 179 + .../s3-private-bucket/9.0.1/input/versions.tf | 7 + .../trussworks/ses-domain/7.0.0/LICENSE | 29 + .../trussworks/ses-domain/7.0.0/fixture.json | 36 + .../trussworks/ses-domain/7.0.0/input/main.tf | 112 + .../ses-domain/7.0.0/input/outputs.tf | 4 + .../ses-domain/7.0.0/input/variables.tf | 72 + .../ses-domain/7.0.0/input/versions.tf | 7 + .../trusted-advisor-refresh/4.0.0/LICENSE | 29 + .../4.0.0/fixture.json | 32 + .../4.0.0/input/main.tf | 148 + .../4.0.0/input/variables.tf | 31 + .../4.0.0/input/versions.tf | 7 + .../registry/trussworks/wafv2/4.0.0/LICENSE | 201 + .../trussworks/wafv2/4.0.0/fixture.json | 36 + .../trussworks/wafv2/4.0.0/input/main.tf | 320 + .../trussworks/wafv2/4.0.0/input/outputs.tf | 4 + .../trussworks/wafv2/4.0.0/input/variables.tf | 171 + .../trussworks/wafv2/4.0.0/input/versions.tf | 10 + .../registry/umotif-public/alb/2.2.2/LICENSE | 11 + .../umotif-public/alb/2.2.2/fixture.json | 35 + .../umotif-public/alb/2.2.2/input/main.tf | 117 + .../umotif-public/alb/2.2.2/input/outputs.tf | 34 + .../alb/2.2.2/input/variables.tf | 116 + .../umotif-public/alb/2.2.2/input/versions.tf | 10 + .../umotif-public/ecs-fargate/8.2.0/LICENSE | 11 + .../ecs-fargate/8.2.0/fixture.json | 39 + .../ecs-fargate/8.2.0/input/data.tf | 137 + .../ecs-fargate/8.2.0/input/locals.tf | 90 + .../ecs-fargate/8.2.0/input/main.tf | 338 + .../ecs-fargate/8.2.0/input/outputs.tf | 64 + .../ecs-fargate/8.2.0/input/variables.tf | 384 + .../ecs-fargate/8.2.0/input/versions.tf | 10 + .../elasticache-redis/3.5.0/LICENSE | 11 + .../elasticache-redis/3.5.0/fixture.json | 38 + .../elasticache-redis/3.5.0/input/main.tf | 165 + .../elasticache-redis/3.5.0/input/outputs.tf | 80 + .../3.5.0/input/variables.tf | 253 + .../elasticache-redis/3.5.0/input/versions.tf | 15 + .../umotif-public/waf-webaclv2/5.1.2/LICENSE | 11 + .../waf-webaclv2/5.1.2/fixture.json | 37 + .../waf-webaclv2/5.1.2/input/main.tf | 6898 ++++++++++++++ .../waf-webaclv2/5.1.2/input/outputs.tf | 64 + .../waf-webaclv2/5.1.2/input/variables.tf | 98 + .../waf-webaclv2/5.1.2/input/versions.tf | 10 + .../unfunco/oidc-github/3.1.0/LICENSE | 21 + .../unfunco/oidc-github/3.1.0/fixture.json | 38 + .../unfunco/oidc-github/3.1.0/input/data.tf | 56 + .../unfunco/oidc-github/3.1.0/input/main.tf | 98 + .../oidc-github/3.1.0/input/outputs.tf | 27 + .../oidc-github/3.1.0/input/variables.tf | 167 + .../oidc-github/3.1.0/input/versions.tf | 18 + .../vantage-integration/2.1.0/LICENSE | 21 + .../vantage-integration/2.1.0/fixture.json | 41 + .../vantage-integration/2.1.0/input/main.tf | 758 ++ .../vantage-integration/2.1.0/input/moved.tf | 86 + .../2.1.0/input/outputs.tf | 24 + .../2.1.0/input/variables.tf | 302 + .../tests/fixtures/legacy_with_bucket/LICENSE | 21 + .../fixtures/legacy_with_bucket/fixture.json | 32 + .../fixtures/legacy_with_bucket/input/main.tf | 102 + .../fixtures/legacy_without_bucket/LICENSE | 21 + .../legacy_without_bucket/fixture.json | 32 + .../legacy_without_bucket/input/main.tf | 91 + .../registry/wandb/wandb/8.0.0/LICENSE | 201 + .../registry/wandb/wandb/8.0.0/NOTICE | 15 + .../8.0.0/docs/operator-migration/LICENSE | 201 + .../8.0.0/docs/operator-migration/NOTICE | 15 + .../docs/operator-migration/fixture.json | 34 + .../operator-migration/input/pre-operator.tf | 112 + .../operator-migration/input/variables.tf | 145 + .../wandb/8.0.0/examples/byo-vpc-eks/LICENSE | 201 + .../wandb/8.0.0/examples/byo-vpc-eks/NOTICE | 15 + .../8.0.0/examples/byo-vpc-eks/fixture.json | 34 + .../8.0.0/examples/byo-vpc-eks/input/main.tf | 117 + .../examples/byo-vpc-eks/input/variables.tf | 127 + .../wandb/8.0.0/examples/byob-sse-s3/LICENSE | 201 + .../wandb/8.0.0/examples/byob-sse-s3/NOTICE | 15 + .../8.0.0/examples/byob-sse-s3/fixture.json | 29 + .../8.0.0/examples/byob-sse-s3/input/main.tf | 61 + .../wandb/wandb/8.0.0/examples/byob/LICENSE | 201 + .../wandb/wandb/8.0.0/examples/byob/NOTICE | 15 + .../wandb/8.0.0/examples/byob/fixture.json | 29 + .../wandb/8.0.0/examples/byob/input/main.tf | 51 + .../registry/wandb/wandb/8.0.0/fixture.json | 49 + .../registry/wandb/wandb/8.0.0/input/data.tf | 12 + .../wandb/8.0.0/input/deployment-size.tf | 49 + .../registry/wandb/wandb/8.0.0/input/main.tf | 483 + .../8.0.0/input/modules/app_eks/add-ons.tf | 233 + .../input/modules/app_eks/aws_auth_legacy.tf | 24 + .../cluster_autoscaler/cluster_autoscaler.tf | 62 + .../modules/app_eks/cluster_autoscaler/iam.tf | 32 + .../app_eks/cluster_autoscaler/variables.tf | 22 + .../wandb/8.0.0/input/modules/app_eks/efs.tf | 42 + .../app_eks/external_dns/external_dns.tf | 55 + .../input/modules/app_eks/external_dns/iam.tf | 32 + .../modules/app_eks/external_dns/variables.tf | 25 + .../input/modules/app_eks/iam-policies.tf | 65 + .../input/modules/app_eks/iam-policy-docs.tf | 129 + .../modules/app_eks/iam-role-attachments.tf | 61 + .../modules/app_eks/iam-role-policies.tf | 13 + .../8.0.0/input/modules/app_eks/iam-roles.tf | 29 + .../app_eks/lb_controller/controller.tf | 51 + .../modules/app_eks/lb_controller/iam.tf | 32 + .../app_eks/lb_controller/variables.tf | 26 + .../8.0.0/input/modules/app_eks/locals.tf | 0 .../wandb/8.0.0/input/modules/app_eks/main.tf | 379 + .../8.0.0/input/modules/app_eks/moved.tf | 114 + .../8.0.0/input/modules/app_eks/outputs.tf | 39 + .../8.0.0/input/modules/app_eks/variables.tf | 317 + .../wandb/8.0.0/input/modules/app_lb/main.tf | 78 + .../8.0.0/input/modules/app_lb/outputs.tf | 6 + .../8.0.0/input/modules/app_lb/variables.tf | 38 + .../8.0.0/input/modules/database/main.tf | 144 + .../8.0.0/input/modules/database/output.tf | 38 + .../8.0.0/input/modules/database/variables.tf | 122 + .../8.0.0/input/modules/endpoint/main.tf | 21 + .../8.0.0/input/modules/endpoint/outputs.tf | 0 .../8.0.0/input/modules/endpoint/variables.tf | 14 + .../8.0.0/input/modules/file_storage/main.tf | 130 + .../input/modules/file_storage/outputs.tf | 23 + .../input/modules/file_storage/variables.tf | 40 + .../8.0.0/input/modules/iam_role/main.tf | 50 + .../8.0.0/input/modules/iam_role/outputs.tf | 3 + .../8.0.0/input/modules/iam_role/variables.tf | 12 + .../wandb/8.0.0/input/modules/kms/main.tf | 164 + .../wandb/8.0.0/input/modules/kms/outputs.tf | 10 + .../8.0.0/input/modules/kms/variables.tf | 45 + .../8.0.0/input/modules/networking/main.tf | 109 + .../8.0.0/input/modules/networking/outputs.tf | 69 + .../input/modules/networking/variables.tf | 88 + .../8.0.0/input/modules/private_link/main.tf | 61 + .../input/modules/private_link/outputs.tf | 14 + .../input/modules/private_link/variables.tf | 36 + .../wandb/8.0.0/input/modules/redis/main.tf | 55 + .../8.0.0/input/modules/redis/outputs.tf | 15 + .../8.0.0/input/modules/redis/variables.tf | 49 + .../wandb/wandb/8.0.0/input/outputs.tf | 123 + .../wandb/wandb/8.0.0/input/variables.tf | 735 ++ .../wandb/wandb/8.0.0/input/versions.tf | 25 + .../wandb/wandb/8.0.0/modules/app_eks/LICENSE | 201 + .../wandb/wandb/8.0.0/modules/app_eks/NOTICE | 15 + .../app_eks/cluster_autoscaler/LICENSE | 201 + .../modules/app_eks/cluster_autoscaler/NOTICE | 15 + .../app_eks/cluster_autoscaler/fixture.json | 33 + .../input/cluster_autoscaler.tf | 62 + .../app_eks/cluster_autoscaler/input/iam.tf | 32 + .../cluster_autoscaler/input/variables.tf | 22 + .../modules/app_eks/external_dns/LICENSE | 201 + .../8.0.0/modules/app_eks/external_dns/NOTICE | 15 + .../modules/app_eks/external_dns/fixture.json | 33 + .../external_dns/input/external_dns.tf | 55 + .../modules/app_eks/external_dns/input/iam.tf | 32 + .../app_eks/external_dns/input/variables.tf | 25 + .../wandb/8.0.0/modules/app_eks/fixture.json | 44 + .../8.0.0/modules/app_eks/input/add-ons.tf | 233 + .../modules/app_eks/input/aws_auth_legacy.tf | 24 + .../cluster_autoscaler/cluster_autoscaler.tf | 62 + .../app_eks/input/cluster_autoscaler/iam.tf | 32 + .../input/cluster_autoscaler/variables.tf | 22 + .../wandb/8.0.0/modules/app_eks/input/efs.tf | 42 + .../input/external_dns/external_dns.tf | 55 + .../modules/app_eks/input/external_dns/iam.tf | 32 + .../app_eks/input/external_dns/variables.tf | 25 + .../modules/app_eks/input/iam-policies.tf | 65 + .../modules/app_eks/input/iam-policy-docs.tf | 129 + .../app_eks/input/iam-role-attachments.tf | 61 + .../app_eks/input/iam-role-policies.tf | 13 + .../8.0.0/modules/app_eks/input/iam-roles.tf | 29 + .../app_eks/input/lb_controller/controller.tf | 51 + .../app_eks/input/lb_controller/iam.tf | 32 + .../app_eks/input/lb_controller/variables.tf | 26 + .../8.0.0/modules/app_eks/input/locals.tf | 0 .../wandb/8.0.0/modules/app_eks/input/main.tf | 379 + .../8.0.0/modules/app_eks/input/moved.tf | 114 + .../8.0.0/modules/app_eks/input/outputs.tf | 39 + .../8.0.0/modules/app_eks/input/variables.tf | 317 + .../modules/app_eks/lb_controller/LICENSE | 201 + .../modules/app_eks/lb_controller/NOTICE | 15 + .../app_eks/lb_controller/fixture.json | 36 + .../app_eks/lb_controller/input/controller.tf | 51 + .../app_eks/lb_controller/input/iam.tf | 32 + .../app_eks/lb_controller/input/variables.tf | 26 + .../wandb/wandb/8.0.0/modules/app_lb/LICENSE | 201 + .../wandb/wandb/8.0.0/modules/app_lb/NOTICE | 15 + .../wandb/8.0.0/modules/app_lb/fixture.json | 33 + .../wandb/8.0.0/modules/app_lb/input/main.tf | 78 + .../8.0.0/modules/app_lb/input/outputs.tf | 6 + .../8.0.0/modules/app_lb/input/variables.tf | 38 + .../wandb/8.0.0/modules/cloudtrail/LICENSE | 201 + .../wandb/8.0.0/modules/cloudtrail/NOTICE | 15 + .../8.0.0/modules/cloudtrail/fixture.json | 30 + .../8.0.0/modules/cloudtrail/input/main.tf | 108 + .../8.0.0/modules/cloudtrail/input/outputs.tf | 19 + .../modules/cloudtrail/input/variables.tf | 54 + .../wandb/8.0.0/modules/database/LICENSE | 201 + .../wandb/wandb/8.0.0/modules/database/NOTICE | 15 + .../wandb/8.0.0/modules/database/fixture.json | 31 + .../8.0.0/modules/database/input/main.tf | 144 + .../8.0.0/modules/database/input/output.tf | 38 + .../8.0.0/modules/database/input/variables.tf | 122 + .../wandb/8.0.0/modules/endpoint/LICENSE | 201 + .../wandb/wandb/8.0.0/modules/endpoint/NOTICE | 15 + .../wandb/8.0.0/modules/endpoint/fixture.json | 27 + .../8.0.0/modules/endpoint/input/main.tf | 21 + .../8.0.0/modules/endpoint/input/outputs.tf | 0 .../8.0.0/modules/endpoint/input/variables.tf | 14 + .../wandb/8.0.0/modules/file_storage/LICENSE | 201 + .../wandb/8.0.0/modules/file_storage/NOTICE | 15 + .../8.0.0/modules/file_storage/fixture.json | 33 + .../8.0.0/modules/file_storage/input/main.tf | 130 + .../modules/file_storage/input/outputs.tf | 23 + .../modules/file_storage/input/variables.tf | 40 + .../wandb/8.0.0/modules/iam_role/LICENSE | 201 + .../wandb/wandb/8.0.0/modules/iam_role/NOTICE | 15 + .../wandb/8.0.0/modules/iam_role/fixture.json | 30 + .../8.0.0/modules/iam_role/input/main.tf | 50 + .../8.0.0/modules/iam_role/input/outputs.tf | 3 + .../8.0.0/modules/iam_role/input/variables.tf | 12 + .../wandb/wandb/8.0.0/modules/kms/LICENSE | 201 + .../wandb/wandb/8.0.0/modules/kms/NOTICE | 15 + .../wandb/8.0.0/modules/kms/fixture.json | 33 + .../wandb/8.0.0/modules/kms/input/main.tf | 164 + .../wandb/8.0.0/modules/kms/input/outputs.tf | 10 + .../8.0.0/modules/kms/input/variables.tf | 45 + .../wandb/8.0.0/modules/networking/LICENSE | 201 + .../wandb/8.0.0/modules/networking/NOTICE | 15 + .../8.0.0/modules/networking/fixture.json | 34 + .../8.0.0/modules/networking/input/main.tf | 109 + .../8.0.0/modules/networking/input/outputs.tf | 69 + .../modules/networking/input/variables.tf | 88 + .../wandb/8.0.0/modules/private_link/LICENSE | 201 + .../wandb/8.0.0/modules/private_link/NOTICE | 15 + .../8.0.0/modules/private_link/fixture.json | 32 + .../8.0.0/modules/private_link/input/main.tf | 61 + .../modules/private_link/input/outputs.tf | 14 + .../modules/private_link/input/variables.tf | 36 + .../wandb/wandb/8.0.0/modules/redis/LICENSE | 201 + .../wandb/wandb/8.0.0/modules/redis/NOTICE | 15 + .../wandb/8.0.0/modules/redis/fixture.json | 31 + .../wandb/8.0.0/modules/redis/input/main.tf | 55 + .../8.0.0/modules/redis/input/outputs.tf | 15 + .../8.0.0/modules/redis/input/variables.tf | 49 + docs/CONFORMANCE.md | 44 +- internal/conformance/collect/archive.go | 293 + internal/conformance/collect/archive_test.go | 88 + internal/conformance/collect/collector.go | 574 ++ internal/conformance/collect/config.go | 153 + internal/conformance/collect/detect.go | 123 + internal/conformance/collect/detect_test.go | 56 + internal/conformance/collect/fixture.go | 174 + internal/conformance/collect/fixture_test.go | 100 + internal/conformance/collect/http.go | 316 + internal/conformance/collect/http_test.go | 35 + internal/conformance/collect/license.go | 41 + internal/conformance/collect/license_test.go | 30 + internal/conformance/collect/lock.go | 154 + internal/conformance/collect/security.go | 91 + internal/conformance/collect/security_test.go | 64 + internal/conformance/collect/select.go | 172 + internal/conformance/collect/select_test.go | 73 + internal/conformance/collect/types.go | 95 + 6961 files changed, 647428 insertions(+), 7 deletions(-) create mode 100644 THIRD_PARTY.md create mode 100644 cmd/openiac-conformance/main.go create mode 100644 conformance/README.md create mode 100644 conformance/collection/README.md create mode 100644 conformance/collection/sources.json create mode 100644 conformance/corpus.lock.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/input/eks.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/input/helm.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/addons.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/eks.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/vpc.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/addons.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/ecr.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/eks.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/vpc.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/input/eks-automode-config.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/eks.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/karpenter.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/vpc.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/eks.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/karpenter.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/vpc.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/input/eks.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/input/helm.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/cache_builder.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/eks.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/helm.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/ecr.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/eks.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/helm.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/input/eks.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/input/helm.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/client.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/eks.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/privatelink.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/sso.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/teams.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/input/okta.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/input/eks.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/input/helm.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/client.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/eks.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/lattice.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/input/eks.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/input/remote_state.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/input/vpc.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/environment/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/environment/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/environment/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/environment/input/main.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/environment/input/outputs.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/environment/input/pca.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/environment/input/variables.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/environment/input/versions.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/wireguard-with-cilium/LICENSE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/wireguard-with-cilium/NOTICE create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/wireguard-with-cilium/fixture.json create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/wireguard-with-cilium/input/eks.tf create mode 100644 conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/wireguard-with-cilium/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/dynamic-roles.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/providers.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/remote-state.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/versions.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/providers.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/versions.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/providers.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/versions.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/versions.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/versions.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/versions.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/versions.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/eventbridge.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/ssm.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/opsgenie.context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/versions.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/versions.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/opsgenie.context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/versions.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/child-stacks.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/providers.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/remote-state.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/root-admin-stack.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/spaces.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/versions.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/workers.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/providers.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/versions.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/LICENSE create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/fixture.json create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/context.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/main.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/outputs.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/variables.tf create mode 100644 conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/versions.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/LICENSE create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/fixture.json create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/main.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/kms.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/locals.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/main.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/outputs.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/variables.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/versions.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/client_secret.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/integration_role.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/locals.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/main.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/outputs.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/variables.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/versions.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/main.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/outputs.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/variables.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/versions.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/govcom.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/main.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/outputs.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/rules.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/variables.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/versions.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/main.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/outputs.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/variables.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/versions.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/main.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/outputs.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/variables.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/versions.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/outputs.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/variables.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/version.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/LICENSE create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/fixture.json create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/kms.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/locals.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/main.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/outputs.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/variables.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/versions.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/LICENSE create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/fixture.json create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/client_secret.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/integration_role.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/locals.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/main.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/outputs.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/variables.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/versions.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/LICENSE create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/fixture.json create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/main.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/outputs.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/variables.tf create mode 100644 conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/versions.tf create mode 100644 conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/LICENSE create mode 100644 conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/fixture.json create mode 100644 conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/_variables.tf create mode 100644 conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/helm.tf create mode 100644 conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/iam.tf create mode 100644 conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/namespace.tf create mode 100644 conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/role.tf create mode 100644 conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/versions.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/LICENSE create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/NOTICE create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/fixture.json create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/main.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/outputs.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/variables.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/versions.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/LICENSE create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/NOTICE create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/fixture.json create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/datadog.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/iam.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/main.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/outputs.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/service.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/variables.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/versions.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/LICENSE create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/NOTICE create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/fixture.json create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/datadog.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/iam.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/main.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/outputs.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/variables.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/versions.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/LICENSE create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/NOTICE create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/fixture.json create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/daemon.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/daemon_task_definition.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/datadog.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/iam.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/outputs.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/variables.tf create mode 100644 conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/versions.tf create mode 100644 conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/LICENSE create mode 100644 conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/NOTICE create mode 100644 conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/fixture.json create mode 100644 conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/main.tf create mode 100644 conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/variables.tf create mode 100644 conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/versions.tf create mode 100644 conformance/fixtures/registry/Guimove/bastion/3.0.6/LICENSE create mode 100644 conformance/fixtures/registry/Guimove/bastion/3.0.6/fixture.json create mode 100644 conformance/fixtures/registry/Guimove/bastion/3.0.6/input/buckets.tf create mode 100644 conformance/fixtures/registry/Guimove/bastion/3.0.6/input/data.tf create mode 100644 conformance/fixtures/registry/Guimove/bastion/3.0.6/input/locals.tf create mode 100644 conformance/fixtures/registry/Guimove/bastion/3.0.6/input/main.tf create mode 100644 conformance/fixtures/registry/Guimove/bastion/3.0.6/input/outputs.tf create mode 100644 conformance/fixtures/registry/Guimove/bastion/3.0.6/input/providers.tf create mode 100644 conformance/fixtures/registry/Guimove/bastion/3.0.6/input/variables.tf create mode 100644 conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/LICENSE create mode 100644 conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/fixture.json create mode 100644 conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/input/main.tf create mode 100644 conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/input/output.tf create mode 100644 conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/input/variables.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/LICENSE create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/fixture.json create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/main.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/variables.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/versions.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/LICENSE create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/fixture.json create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/main.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/outputs.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/variables.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/versions.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/LICENSE create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/fixture.json create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/main.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/outputs.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/variables.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/versions.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/LICENSE create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/fixture.json create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/main.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/outputs.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/variables.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/versions.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/LICENSE create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/fixture.json create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/main.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/outputs.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/variables.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/versions.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/LICENSE create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/fixture.json create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/main.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/outputs.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/variables.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/versions.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/LICENSE create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/fixture.json create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/main.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/outputs.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/variables.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/versions.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/LICENSE create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/fixture.json create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/main.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/outputs.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/variables.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/versions.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/LICENSE create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/fixture.json create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/main.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/outputs.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/variables.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/versions.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/LICENSE create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/fixture.json create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/main.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/outputs.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/variables.tf create mode 100644 conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/crosszone_failover/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/crosszone_failover/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/crosszone_failover/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/crosszone_failover/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/crosszone_failover/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_endpoint/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_endpoint/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_endpoint/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_endpoint/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_endpoint/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_endpoint/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/input/versions.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/LICENSE create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/fixture.json create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/main.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/outputs.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/variables.tf create mode 100644 conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/versions.tf create mode 100644 conformance/fixtures/registry/QuiNovas/lambda/4.0.2/LICENSE create mode 100644 conformance/fixtures/registry/QuiNovas/lambda/4.0.2/fixture.json create mode 100644 conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/destinations.tf create mode 100644 conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/locals.tf create mode 100644 conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/main.tf create mode 100644 conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/variables.tf create mode 100644 conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/versions.tf create mode 100644 conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/LICENSE create mode 100644 conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/fixture.json create mode 100644 conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/asg.tf create mode 100644 conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/ec2.tf create mode 100644 conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/iam.tf create mode 100644 conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/main.tf create mode 100644 conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/output.tf create mode 100644 conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/provider.tf create mode 100644 conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/data.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/iam.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/resource_policy.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/origin-request/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/origin-request/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/origin-request/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/origin-request/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/origin-request/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/origin-request/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/response-headers/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/response-headers/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/response-headers/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/response-headers/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/response-headers/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/response-headers/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/autoscaling-group/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/autoscaling-group/output.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/autoscaling-group/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/autoscaling-group/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/autoscaling-policy/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/autoscaling-policy/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/autoscaling-policy/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/autoscaling-policy/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/cluster/data.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/cluster/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/cluster/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/cluster/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/cluster/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/service/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/service/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/service/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/modules/service/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/autoscaling-group/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/autoscaling-group/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/autoscaling-group/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/autoscaling-group/input/output.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/autoscaling-group/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/autoscaling-group/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/autoscaling-policy/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/autoscaling-policy/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/autoscaling-policy/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/autoscaling-policy/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/autoscaling-policy/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/autoscaling-policy/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/cluster/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/cluster/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/cluster/input/data.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/cluster/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/cluster/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/cluster/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/cluster/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/iam/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/iam/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/iam/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/iam/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/iam/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/iam/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/service-discovery/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/service-discovery/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/service-discovery/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/service-discovery/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/service-discovery/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/service-discovery/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/service/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/service/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/service/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/service/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/service/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/ecs/0.2.24/modules/service/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/data.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/fargate_profile.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/iam.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/karpenter.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/kms.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/eks_managed_nodes/asg_tags.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/eks_managed_nodes/data.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/eks_managed_nodes/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/eks_managed_nodes/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/eks_managed_nodes/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/eks_managed_nodes/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/fargate_profile/data.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/fargate_profile/fargate_logger.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/fargate_profile/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/fargate_profile/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/fargate_profile/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/fargate_profile/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/karpenter/fargate-profile.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/karpenter/irsa.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/karpenter/karpenter.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/karpenter/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/karpenter/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/modules/karpenter/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/node_groups.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/policies.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/eks_managed_nodes/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/eks_managed_nodes/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/eks_managed_nodes/input/asg_tags.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/eks_managed_nodes/input/data.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/eks_managed_nodes/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/eks_managed_nodes/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/eks_managed_nodes/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/eks_managed_nodes/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/fargate_profile/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/fargate_profile/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/fargate_profile/input/data.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/fargate_profile/input/fargate_logger.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/fargate_profile/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/fargate_profile/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/fargate_profile/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/fargate_profile/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/self_managed_nodes/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/self_managed_nodes/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/self_managed_nodes/input/data.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/self_managed_nodes/input/instance_refresh.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/self_managed_nodes/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/self_managed_nodes/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/eks/0.22.26/modules/self_managed_nodes/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/elasticache-redis/1.0.3/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/elasticache-redis/1.0.3/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/elasticache-redis/1.0.3/input/alarms.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/elasticache-redis/1.0.3/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/elasticache-redis/1.0.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/elasticache-redis/1.0.3/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/elasticache-redis/1.0.3/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/kms/1.0.4/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/kms/1.0.4/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/kms/1.0.4/input/data.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/kms/1.0.4/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/kms/1.0.4/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/kms/1.0.4/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/kms/1.0.4/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lambda-github-actions/0.3.5/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lambda-github-actions/0.3.5/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lambda-github-actions/0.3.5/input/data.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lambda-github-actions/0.3.5/input/github_action.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lambda-github-actions/0.3.5/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lambda-github-actions/0.3.5/input/outputs.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lambda-github-actions/0.3.5/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lambda-github-actions/0.3.5/input/versions.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lb-controller/2.0.1/LICENSE create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lb-controller/2.0.1/fixture.json create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lb-controller/2.0.1/input/iam.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lb-controller/2.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lb-controller/2.0.1/input/output.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lb-controller/2.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/SPHTech-Platform/lb-controller/2.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/SweetOps/secretsmanager/0.6.0/LICENSE create mode 100644 conformance/fixtures/registry/SweetOps/secretsmanager/0.6.0/fixture.json create mode 100644 conformance/fixtures/registry/SweetOps/secretsmanager/0.6.0/input/context.tf create mode 100644 conformance/fixtures/registry/SweetOps/secretsmanager/0.6.0/input/main.tf create mode 100644 conformance/fixtures/registry/SweetOps/secretsmanager/0.6.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/SweetOps/secretsmanager/0.6.0/input/variables.tf create mode 100644 conformance/fixtures/registry/SweetOps/secretsmanager/0.6.0/input/versions.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/LICENSE create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/custom/LICENSE create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/custom/fixture.json create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/custom/input/main.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/custom/input/output.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nacl_default/LICENSE create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nacl_default/fixture.json create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nacl_default/input/main.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nacl_default/input/output.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nacl_subnet/LICENSE create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nacl_subnet/fixture.json create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nacl_subnet/input/main.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nacl_subnet/input/output.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_az/LICENSE create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_az/fixture.json create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_az/input/main.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_az/input/output.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_az_existing_eip/LICENSE create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_az_existing_eip/fixture.json create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_az_existing_eip/input/main.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_az_existing_eip/input/output.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_single/LICENSE create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_single/fixture.json create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_single/input/main.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_single/input/output.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_subnet/LICENSE create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_subnet/fixture.json create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_subnet/input/main.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_subnet/input/output.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/output_private_subnet_by_type/LICENSE create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/output_private_subnet_by_type/fixture.json create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/output_private_subnet_by_type/input/main.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/output_private_subnet_by_type/input/output.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/simple/LICENSE create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/simple/fixture.json create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/simple/input/main.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/examples/simple/input/output.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/fixture.json create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/input/data.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/input/locals.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/input/subnets_private.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/input/subnets_pub.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/ViktorUJ/vpc/1.1.0/input/vpc.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/LICENSE create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/LICENSE create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/fixture.json create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/input/cicd.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/input/main.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/input/modules/kubernetes-addons/defaults.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/input/modules/kubernetes-addons/labels.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/input/modules/kubernetes-addons/main.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/input/modules/kubernetes-addons/outputs.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/input/modules/kubernetes-addons/variables.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/input/outputs.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/input/toggles.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/input/variables.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/modules/kubernetes-addons/LICENSE create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/modules/kubernetes-addons/fixture.json create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/modules/kubernetes-addons/input/defaults.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/modules/kubernetes-addons/input/labels.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/modules/kubernetes-addons/input/main.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/modules/kubernetes-addons/input/outputs.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/blueprint/modules/kubernetes-addons/input/variables.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/data-ai/modules/kubeflow/LICENSE create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/data-ai/modules/kubeflow/fixture.json create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/data-ai/modules/kubeflow/input/labels.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/data-ai/modules/kubeflow/input/main.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/examples/data-ai/modules/kubeflow/input/variables.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/fixture.json create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/input/defaults.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/input/labels.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/ecr/LICENSE create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/ecr/fixture.json create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/ecr/input/default.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/ecr/input/labels.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/ecr/input/main.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/ecr/input/outputs.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/ecr/input/variables.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/ecr/input/versions.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/eks-addons/LICENSE create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/eks-addons/fixture.json create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/eks-addons/input/defaults.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/eks-addons/input/labels.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/eks-addons/input/main.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/eks-addons/input/outputs.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/eks-addons/input/variables.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/helm-addons/LICENSE create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/helm-addons/fixture.json create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/helm-addons/input/defaults.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/helm-addons/input/labels.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/helm-addons/input/main.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/helm-addons/input/outputs.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/helm-addons/input/variables.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/helm-addons/input/versions.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/irsa/LICENSE create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/irsa/fixture.json create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/irsa/input/labels.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/irsa/input/main.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/irsa/input/outputs.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/irsa/input/variables.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/irsa/input/versions.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/pod-identity/LICENSE create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/pod-identity/fixture.json create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/pod-identity/input/defaults.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/pod-identity/input/labels.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/pod-identity/input/main.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/pod-identity/input/outputs.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/pod-identity/input/variables.tf create mode 100644 conformance/fixtures/registry/Young-ook/eks/2.1.0/modules/pod-identity/input/versions.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/LICENSE create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/complete/LICENSE create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/complete/fixture.json create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/complete/input/main.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/complete/input/outputs.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/complete/input/variables.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/complete/input/versions.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/simple/LICENSE create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/simple/fixture.json create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/simple/input/main.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/simple/input/outputs.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/simple/input/variables.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/simple/input/versions.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/with-dependencies/LICENSE create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/with-dependencies/fixture.json create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/with-dependencies/input/main.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/with-dependencies/input/outputs.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/with-dependencies/input/variables.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/examples/with-dependencies/input/versions.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/fixture.json create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/input/main.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/input/variables.tf create mode 100644 conformance/fixtures/registry/avlcloudtechnologies/sso/0.5.0/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/cloudwatch-log-group/1.0.1/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/cloudwatch-log-group/1.0.1/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/cloudwatch-log-group/1.0.1/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/cloudwatch-log-group/1.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/cloudwatch-log-group/1.0.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/cloudwatch-log-group/1.0.1/input/provider.tf create mode 100644 conformance/fixtures/registry/aws-ia/cloudwatch-log-group/1.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/azuredevops+tf_cloud/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/azuredevops+tf_cloud/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/azuredevops+tf_cloud/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/azuredevops+tf_cloud/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/bitbucket+tf_enterprise/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/bitbucket+tf_enterprise/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/bitbucket+tf_enterprise/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/bitbucket+tf_enterprise/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/codecommit+tf_oss/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/codecommit+tf_oss/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/codecommit+tf_oss/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/codecommit+tf_oss/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/github+tf_oss/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/github+tf_oss/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/github+tf_oss/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/github+tf_oss/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/githubenterprise+tf_cloud/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/githubenterprise+tf_cloud/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/githubenterprise+tf_cloud/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/githubenterprise+tf_cloud/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/gitlab+tf_oss/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/gitlab+tf_oss/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/gitlab+tf_oss/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/gitlab+tf_oss/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/gitlabselfmanaged+tf_cloud/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/gitlabselfmanaged+tf_cloud/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/gitlabselfmanaged+tf_cloud/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/gitlabselfmanaged+tf_cloud/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/development/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/development/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/development/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/development/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/production/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/production/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/production/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/production/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/security/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/security/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/security/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/security/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-regions-customization/multiple-regions/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-regions-customization/multiple-regions/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-regions-customization/multiple-regions/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-regions-customization/multiple-regions/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-provisioning-framework/cloudwatch.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-provisioning-framework/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-provisioning-framework/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-provisioning-framework/lambda.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-provisioning-framework/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-provisioning-framework/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-provisioning-framework/states.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-provisioning-framework/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-provisioning-framework/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-request-framework/backup.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-request-framework/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-request-framework/ddb.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-request-framework/eventbridge.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-request-framework/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-request-framework/kms.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-request-framework/lambda.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-request-framework/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-request-framework/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-request-framework/sns.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-request-framework/sqs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-request-framework/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-request-framework/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-account-request-framework/vpc.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-archives/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-archives/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-backend/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-backend/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-backend/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-backend/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-code-repositories/codebuild.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-code-repositories/codecommit.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-code-repositories/codepipeline.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-code-repositories/codestar.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-code-repositories/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-code-repositories/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-code-repositories/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-code-repositories/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-code-repositories/s3.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-code-repositories/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-code-repositories/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-customizations/codebuild.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-customizations/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-customizations/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-customizations/lambda.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-customizations/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-customizations/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-customizations/s3.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-customizations/states.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-customizations/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-customizations/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-feature-options/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-feature-options/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-feature-options/kms.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-feature-options/lambda.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-feature-options/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-feature-options/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-feature-options/s3.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-feature-options/states.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-feature-options/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-feature-options/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-iam-roles/admin-role/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-iam-roles/admin-role/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-iam-roles/admin-role/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-iam-roles/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-iam-roles/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-iam-roles/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-iam-roles/oidc.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-iam-roles/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-iam-roles/service-role/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-iam-roles/service-role/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-iam-roles/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-iam-roles/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-lambda-layer/codebuild.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-lambda-layer/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-lambda-layer/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-lambda-layer/lambda.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-lambda-layer/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-lambda-layer/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-lambda-layer/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-lambda-layer/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-lambda-layer/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-ssm-parameters/ssm.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-ssm-parameters/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/modules/aft-ssm-parameters/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-provisioning-framework/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-provisioning-framework/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-provisioning-framework/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-provisioning-framework/input/cloudwatch.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-provisioning-framework/input/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-provisioning-framework/input/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-provisioning-framework/input/lambda.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-provisioning-framework/input/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-provisioning-framework/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-provisioning-framework/input/states.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-provisioning-framework/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-provisioning-framework/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/input/backup.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/input/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/input/ddb.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/input/eventbridge.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/input/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/input/kms.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/input/lambda.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/input/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/input/sns.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/input/sqs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework/input/vpc.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-backend/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-backend/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-backend/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-backend/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-backend/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-backend/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-backend/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories/input/codebuild.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories/input/codecommit.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories/input/codepipeline.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories/input/codestar.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories/input/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories/input/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories/input/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories/input/s3.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-customizations/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-customizations/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-customizations/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-customizations/input/codebuild.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-customizations/input/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-customizations/input/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-customizations/input/lambda.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-customizations/input/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-customizations/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-customizations/input/s3.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-customizations/input/states.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-customizations/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-customizations/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-feature-options/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-feature-options/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-feature-options/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-feature-options/input/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-feature-options/input/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-feature-options/input/kms.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-feature-options/input/lambda.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-feature-options/input/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-feature-options/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-feature-options/input/s3.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-feature-options/input/states.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-feature-options/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-feature-options/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/admin-role/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/admin-role/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/admin-role/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/admin-role/input/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/admin-role/input/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/admin-role/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/input/admin-role/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/input/admin-role/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/input/admin-role/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/input/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/input/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/input/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/input/oidc.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/input/service-role/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/input/service-role/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/service-role/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/service-role/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/service-role/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/service-role/input/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/service-role/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-lambda-layer/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-lambda-layer/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-lambda-layer/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-lambda-layer/input/codebuild.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-lambda-layer/input/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-lambda-layer/input/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-lambda-layer/input/lambda.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-lambda-layer/input/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-lambda-layer/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-lambda-layer/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-lambda-layer/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-lambda-layer/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-ssm-parameters/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-ssm-parameters/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-ssm-parameters/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-ssm-parameters/input/ssm.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-ssm-parameters/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-ssm-parameters/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-common/templates/customizations_pipeline/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-common/templates/customizations_pipeline/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-common/templates/customizations_pipeline/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-common/templates/customizations_pipeline/input/codepipeline.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-common/templates/customizations_pipeline/input/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-common/templates/customizations_pipeline/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-common/templates/customizations_pipeline/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-repos/aft-account-provisioning-customizations/terraform/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-repos/aft-account-provisioning-customizations/terraform/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-repos/aft-account-provisioning-customizations/terraform/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-repos/aft-account-provisioning-customizations/terraform/input/iam.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-repos/aft-account-provisioning-customizations/terraform/input/states.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-repos/aft-account-provisioning-customizations/terraform/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-repos/aft-account-request/terraform/modules/aft-account-request/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-repos/aft-account-request/terraform/modules/aft-account-request/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-repos/aft-account-request/terraform/modules/aft-account-request/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-repos/aft-account-request/terraform/modules/aft-account-request/input/ddb.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-repos/aft-account-request/terraform/modules/aft-account-request/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-repos/aft-account-request/terraform/modules/aft-account-request/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addon/1.3.0/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addon/1.3.0/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addon/1.3.0/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addon/1.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addon/1.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addon/1.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addon/1.3.0/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addons/1.24.3/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addons/1.24.3/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addons/1.24.3/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addons/1.24.3/input/helm.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addons/1.24.3/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addons/1.24.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addons/1.24.3/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-addons/1.24.3/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-teams/1.1.0/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-teams/1.1.0/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-teams/1.1.0/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-teams/1.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-teams/1.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-teams/1.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-blueprints-teams/1.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/airflow.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/aws-efa-k8s-device-plugin.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/aws-neuron-device-plugin.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/cnpg-operator.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/dask-hub.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/dask-operator.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/emr-flink-operator.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/emr-spark-operator.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/flink-operator.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/irsa/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/irsa/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/irsa/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/irsa/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/jupyterhub.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/karpenter-resources.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/kubecost.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/kuberay-operator.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/mlflow-tracking.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/nvidia-device-plugin.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/nvidia-gpu-operator.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/nvidia-triton-server.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/pinot.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/qdrant.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/spark-history-server.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/spark-operator.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/strimzi-kafka-operator.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/superset.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/trino.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/volcano.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/input/yunikorn.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/irsa/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/irsa/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/irsa/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/irsa/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/irsa/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/irsa/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/eks-data-addons/1.38.0/irsa/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/iam-identity-center/1.0.4/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/iam-identity-center/1.0.4/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/iam-identity-center/1.0.4/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/iam-identity-center/1.0.4/input/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/iam-identity-center/1.0.4/input/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/iam-identity-center/1.0.4/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/iam-identity-center/1.0.4/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/iam-identity-center/1.0.4/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/iam-identity-center/1.0.4/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/input/modules/sub_pool/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/input/modules/sub_pool/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/input/modules/sub_pool/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/input/modules/sub_pool/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/modules/sub_pool/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/modules/sub_pool/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/modules/sub_pool/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/modules/sub_pool/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/modules/sub_pool/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/modules/sub_pool/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/ipam/2.1.2/modules/sub_pool/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/label/0.0.6/internal/modules/aws/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/label/0.0.6/internal/modules/aws/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/label/0.0.6/internal/modules/aws/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/label/0.0.6/internal/modules/aws/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/mwaa/0.0.8/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/mwaa/0.0.8/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/mwaa/0.0.8/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/mwaa/0.0.8/input/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/mwaa/0.0.8/input/locals.tf create mode 100644 conformance/fixtures/registry/aws-ia/mwaa/0.0.8/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/mwaa/0.0.8/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/mwaa/0.0.8/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/mwaa/0.0.8/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_with_egress/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_with_egress/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_with_egress/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_with_egress/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_with_egress/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_with_egress/input/policy.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_with_egress/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_with_egress/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_without_egress/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_without_egress/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_without_egress/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_without_egress/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_without_egress/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_without_egress/input/policy.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_without_egress/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_without_egress/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/intra_vpc_inspection/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/intra_vpc_inspection/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/intra_vpc_inspection/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/intra_vpc_inspection/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/intra_vpc_inspection/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/intra_vpc_inspection/input/policy.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/intra_vpc_inspection/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/examples/intra_vpc_inspection/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/modules/central_inspection_with_egress_routing/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/modules/central_inspection_with_egress_routing/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/modules/central_inspection_with_egress_routing/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/modules/central_inspection_with_egress_routing/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/modules/intra_vpc_routing/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/modules/intra_vpc_routing/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/modules/intra_vpc_routing/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/modules/intra_vpc_routing/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/modules/logging/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/modules/logging/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/modules/logging/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/modules/logging/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/moved.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/central_inspection_with_egress_routing/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/central_inspection_with_egress_routing/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/central_inspection_with_egress_routing/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/central_inspection_with_egress_routing/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/central_inspection_with_egress_routing/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/central_inspection_with_egress_routing/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/central_inspection_with_egress_routing/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/intra_vpc_routing/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/intra_vpc_routing/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/intra_vpc_routing/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/intra_vpc_routing/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/intra_vpc_routing/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/intra_vpc_routing/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/intra_vpc_routing/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/logging/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/logging/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/logging/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/logging/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/logging/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/logging/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/networkfirewall/1.0.2/modules/logging/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/data.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/calculate_subnets/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/calculate_subnets/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/calculate_subnets/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/calculate_subnets/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/calculate_subnets_ipv6/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/calculate_subnets_ipv6/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/calculate_subnets_ipv6/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/calculate_subnets_ipv6/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/flow_logs/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/flow_logs/modules/s3_log_bucket/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/flow_logs/modules/s3_log_bucket/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/flow_logs/modules/s3_log_bucket/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/flow_logs/modules/s3_log_bucket/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/flow_logs/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/flow_logs/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/modules/flow_logs/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/calculate_subnets/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/calculate_subnets/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/calculate_subnets/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/calculate_subnets/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/calculate_subnets/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/calculate_subnets/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/calculate_subnets/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/calculate_subnets_ipv6/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/calculate_subnets_ipv6/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/calculate_subnets_ipv6/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/calculate_subnets_ipv6/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/calculate_subnets_ipv6/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/calculate_subnets_ipv6/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/calculate_subnets_ipv6/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/input/modules/s3_log_bucket/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/input/modules/s3_log_bucket/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/input/modules/s3_log_bucket/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/input/modules/s3_log_bucket/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/modules/s3_log_bucket/LICENSE create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/modules/s3_log_bucket/NOTICE create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/modules/s3_log_bucket/fixture.json create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/modules/s3_log_bucket/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/modules/s3_log_bucket/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/modules/s3_log_bucket/input/providers.tf create mode 100644 conformance/fixtures/registry/aws-ia/vpc/4.9.0/modules/flow_logs/modules/s3_log_bucket/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ss/wafv2/4.4.0/modules/ip-set/LICENSE create mode 100644 conformance/fixtures/registry/aws-ss/wafv2/4.4.0/modules/ip-set/fixture.json create mode 100644 conformance/fixtures/registry/aws-ss/wafv2/4.4.0/modules/ip-set/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ss/wafv2/4.4.0/modules/ip-set/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ss/wafv2/4.4.0/modules/ip-set/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ss/wafv2/4.4.0/modules/ip-set/input/versions.tf create mode 100644 conformance/fixtures/registry/aws-ss/wafv2/4.4.0/modules/rule-group/LICENSE create mode 100644 conformance/fixtures/registry/aws-ss/wafv2/4.4.0/modules/rule-group/fixture.json create mode 100644 conformance/fixtures/registry/aws-ss/wafv2/4.4.0/modules/rule-group/input/main.tf create mode 100644 conformance/fixtures/registry/aws-ss/wafv2/4.4.0/modules/rule-group/input/outputs.tf create mode 100644 conformance/fixtures/registry/aws-ss/wafv2/4.4.0/modules/rule-group/input/variables.tf create mode 100644 conformance/fixtures/registry/aws-ss/wafv2/4.4.0/modules/rule-group/input/versions.tf create mode 100644 conformance/fixtures/registry/babbel/acm-global-and-regional/2.0.1/LICENSE create mode 100644 conformance/fixtures/registry/babbel/acm-global-and-regional/2.0.1/fixture.json create mode 100644 conformance/fixtures/registry/babbel/acm-global-and-regional/2.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/babbel/acm-global-and-regional/2.0.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/babbel/acm-global-and-regional/2.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/babbel/acm-global-and-regional/2.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/babbel/acm/2.0.2/LICENSE create mode 100644 conformance/fixtures/registry/babbel/acm/2.0.2/fixture.json create mode 100644 conformance/fixtures/registry/babbel/acm/2.0.2/input/main.tf create mode 100644 conformance/fixtures/registry/babbel/acm/2.0.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/babbel/acm/2.0.2/input/variables.tf create mode 100644 conformance/fixtures/registry/babbel/acm/2.0.2/input/versions.tf create mode 100644 conformance/fixtures/registry/babbel/alb-for-vpc-internal-requests/4.0.1/LICENSE create mode 100644 conformance/fixtures/registry/babbel/alb-for-vpc-internal-requests/4.0.1/fixture.json create mode 100644 conformance/fixtures/registry/babbel/alb-for-vpc-internal-requests/4.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/babbel/alb-for-vpc-internal-requests/4.0.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/babbel/alb-for-vpc-internal-requests/4.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/babbel/alb-for-vpc-internal-requests/4.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/babbel/athena/4.1.1/LICENSE create mode 100644 conformance/fixtures/registry/babbel/athena/4.1.1/fixture.json create mode 100644 conformance/fixtures/registry/babbel/athena/4.1.1/input/main.tf create mode 100644 conformance/fixtures/registry/babbel/athena/4.1.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/babbel/athena/4.1.1/input/variables.tf create mode 100644 conformance/fixtures/registry/babbel/athena/4.1.1/input/versions.tf create mode 100644 conformance/fixtures/registry/babbel/cloudfront-bucket/2.2.0/LICENSE create mode 100644 conformance/fixtures/registry/babbel/cloudfront-bucket/2.2.0/fixture.json create mode 100644 conformance/fixtures/registry/babbel/cloudfront-bucket/2.2.0/input/bucket.tf create mode 100644 conformance/fixtures/registry/babbel/cloudfront-bucket/2.2.0/input/cloudfront.tf create mode 100644 conformance/fixtures/registry/babbel/cloudfront-bucket/2.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/babbel/cloudfront-bucket/2.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/babbel/cloudfront-bucket/2.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/babbel/iam-role-for-github-repository/5.0.0/LICENSE create mode 100644 conformance/fixtures/registry/babbel/iam-role-for-github-repository/5.0.0/fixture.json create mode 100644 conformance/fixtures/registry/babbel/iam-role-for-github-repository/5.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/babbel/iam-role-for-github-repository/5.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/babbel/iam-role-for-github-repository/5.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/babbel/iam-role-for-github-repository/5.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/babbel/secretsmanager-for-database-url/2.1.2/LICENSE create mode 100644 conformance/fixtures/registry/babbel/secretsmanager-for-database-url/2.1.2/fixture.json create mode 100644 conformance/fixtures/registry/babbel/secretsmanager-for-database-url/2.1.2/input/main.tf create mode 100644 conformance/fixtures/registry/babbel/secretsmanager-for-database-url/2.1.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/babbel/secretsmanager-for-database-url/2.1.2/input/variables.tf create mode 100644 conformance/fixtures/registry/babbel/secretsmanager-for-database-url/2.1.2/input/versions.tf create mode 100644 conformance/fixtures/registry/babbel/secretsmanager-for-rollbar-access-tokens/3.0.1/LICENSE create mode 100644 conformance/fixtures/registry/babbel/secretsmanager-for-rollbar-access-tokens/3.0.1/fixture.json create mode 100644 conformance/fixtures/registry/babbel/secretsmanager-for-rollbar-access-tokens/3.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/babbel/secretsmanager-for-rollbar-access-tokens/3.0.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/babbel/secretsmanager-for-rollbar-access-tokens/3.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/babbel/secretsmanager-for-rollbar-access-tokens/3.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/babbel/ses-sending-domain/2.2.0/LICENSE create mode 100644 conformance/fixtures/registry/babbel/ses-sending-domain/2.2.0/fixture.json create mode 100644 conformance/fixtures/registry/babbel/ses-sending-domain/2.2.0/input/dkim.tf create mode 100644 conformance/fixtures/registry/babbel/ses-sending-domain/2.2.0/input/notifications.tf create mode 100644 conformance/fixtures/registry/babbel/ses-sending-domain/2.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/babbel/ses-sending-domain/2.2.0/input/ses.tf create mode 100644 conformance/fixtures/registry/babbel/ses-sending-domain/2.2.0/input/spf.tf create mode 100644 conformance/fixtures/registry/babbel/ses-sending-domain/2.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/babbel/ses-sending-domain/2.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/babbel/sns-to-rollbar/2.0.1/LICENSE create mode 100644 conformance/fixtures/registry/babbel/sns-to-rollbar/2.0.1/fixture.json create mode 100644 conformance/fixtures/registry/babbel/sns-to-rollbar/2.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/babbel/sns-to-rollbar/2.0.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/babbel/sns-to-rollbar/2.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/babbel/sns-to-rollbar/2.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/babbel/wafv2-dashboard/1.2.0/LICENSE create mode 100644 conformance/fixtures/registry/babbel/wafv2-dashboard/1.2.0/fixture.json create mode 100644 conformance/fixtures/registry/babbel/wafv2-dashboard/1.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/babbel/wafv2-dashboard/1.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/babbel/wafv2-dashboard/1.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/baikonur-oss/fargate-scheduled-task/2.0.3/LICENSE create mode 100644 conformance/fixtures/registry/baikonur-oss/fargate-scheduled-task/2.0.3/fixture.json create mode 100644 conformance/fixtures/registry/baikonur-oss/fargate-scheduled-task/2.0.3/input/main.tf create mode 100644 conformance/fixtures/registry/baikonur-oss/fargate-scheduled-task/2.0.3/input/variables.tf create mode 100644 conformance/fixtures/registry/baikonur-oss/fargate-scheduled-task/2.0.3/input/versions.tf create mode 100644 conformance/fixtures/registry/baikonur-oss/iam-nofile/2.0.0/LICENSE create mode 100644 conformance/fixtures/registry/baikonur-oss/iam-nofile/2.0.0/fixture.json create mode 100644 conformance/fixtures/registry/baikonur-oss/iam-nofile/2.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/baikonur-oss/iam-nofile/2.0.0/input/output.tf create mode 100644 conformance/fixtures/registry/baikonur-oss/iam-nofile/2.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/baikonur-oss/iam-nofile/2.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/bbeesley/lambda-do-it-all/4.1.4/LICENSE create mode 100644 conformance/fixtures/registry/bbeesley/lambda-do-it-all/4.1.4/fixture.json create mode 100644 conformance/fixtures/registry/bbeesley/lambda-do-it-all/4.1.4/input/locals.tf create mode 100644 conformance/fixtures/registry/bbeesley/lambda-do-it-all/4.1.4/input/main.tf create mode 100644 conformance/fixtures/registry/bbeesley/lambda-do-it-all/4.1.4/input/outputs.tf create mode 100644 conformance/fixtures/registry/bbeesley/lambda-do-it-all/4.1.4/input/variables.tf create mode 100644 conformance/fixtures/registry/bbeesley/lambda-do-it-all/4.1.4/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/acm/1.0.1/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/acm/1.0.1/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/acm/1.0.1/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/acm/1.0.1/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/acm/1.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/acm/1.0.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/acm/1.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/acm/1.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/tests/supportingResources/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/autoscaling/2.2.0/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/budget/1.0.2/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/budget/1.0.2/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/budget/1.0.2/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/budget/1.0.2/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/budget/1.0.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/budget/1.0.2/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/budget/1.0.2/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/input/certificates.tf create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/client-vpn/1.0.3/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/cloudformation/1.1.2/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/cloudformation/1.1.2/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/cloudformation/1.1.2/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/cloudformation/1.1.2/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/cloudformation/1.1.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/cloudformation/1.1.2/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/cloudformation/1.1.2/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/cloudtrail/1.4.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/cloudtrail/1.4.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/cloudtrail/1.4.0/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/cloudtrail/1.4.0/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/cloudtrail/1.4.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/cloudtrail/1.4.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/cloudtrail/1.4.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/cloudtrail/1.4.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/docdb/1.3.2/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/docdb/1.3.2/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/docdb/1.3.2/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/docdb/1.3.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/docdb/1.3.2/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/docdb/1.3.2/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/docdb/1.3.2/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/docdb/1.3.2/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/docdb/1.3.2/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/docdb/1.3.2/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/docdb/1.3.2/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/docdb/1.3.2/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/docdb/1.3.2/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/dynamodb/1.2.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/dynamodb/1.2.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/dynamodb/1.2.0/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/dynamodb/1.2.0/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/dynamodb/1.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/dynamodb/1.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/dynamodb/1.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/dynamodb/1.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/tests/supportingResources/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/ec2/2.0.7/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr-registry/1.1.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/ecr-registry/1.1.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/ecr-registry/1.1.0/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr-registry/1.1.0/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr-registry/1.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr-registry/1.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr-registry/1.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr-registry/1.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/input/modules/private/main.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/input/modules/private/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/input/modules/private/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/input/modules/private/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/input/modules/public/main.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/input/modules/public/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/input/modules/public/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/input/modules/public/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/modules/private/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/modules/private/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/modules/private/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/modules/private/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/modules/private/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/modules/private/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/modules/public/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/modules/public/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/modules/public/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/modules/public/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/modules/public/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/ecr/2.0.0/modules/public/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/input/ec2.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/tests/supportingResources/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-cluster/3.0.0/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/tests/supportingResources/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/ecs-service/1.13.0/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/efs/1.2.1/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/efs/1.2.1/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/efs/1.2.1/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/efs/1.2.1/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/efs/1.2.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/efs/1.2.1/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/efs/1.2.1/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/efs/1.2.1/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/efs/1.2.1/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/efs/1.2.1/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/efs/1.2.1/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/efs/1.2.1/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/efs/1.2.1/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/efs/1.2.1/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/modules/fargate-profile/data.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/modules/fargate-profile/local.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/modules/fargate-profile/main.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/modules/fargate-profile/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/modules/fargate-profile/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/modules/fargate-profile/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/modules/managed-node-group/data.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/modules/managed-node-group/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/modules/managed-node-group/main.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/modules/managed-node-group/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/modules/managed-node-group/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/modules/managed-node-group/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/node_groups.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/fargate-profile/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/fargate-profile/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/fargate-profile/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/fargate-profile/input/local.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/fargate-profile/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/fargate-profile/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/fargate-profile/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/fargate-profile/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/managed-node-group/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/managed-node-group/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/managed-node-group/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/managed-node-group/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/managed-node-group/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/managed-node-group/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/managed-node-group/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/modules/managed-node-group/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/tests/supportingResources/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/tests/supportingResources/input/settings.tf create mode 100644 conformance/fixtures/registry/boldlink/eks/3.3.6/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/elb/1.3.1/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/elb/1.3.1/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/elb/1.3.1/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/elb/1.3.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/elb/1.3.1/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/elb/1.3.1/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/elb/1.3.1/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/elb/1.3.1/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/elb/1.3.1/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/elb/1.3.1/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/elb/1.3.1/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/elb/1.3.1/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/elb/1.3.1/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/event-bridge/1.0.1/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/event-bridge/1.0.1/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/event-bridge/1.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/event-bridge/1.0.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/event-bridge/1.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/event-bridge/1.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/event-bridge/1.0.1/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/event-bridge/1.0.1/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/event-bridge/1.0.1/tests/supportingResources/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/event-bridge/1.0.1/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/event-bridge/1.0.1/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/event-bridge/1.0.1/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/event-bridge/1.0.1/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/event-bridge/1.0.1/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-group/1.1.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/iam-group/1.1.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/iam-group/1.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-group/1.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-group/1.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-group/1.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-policy/1.1.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/iam-policy/1.1.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/iam-policy/1.1.0/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-policy/1.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-policy/1.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-policy/1.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-policy/1.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-role/2.0.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/iam-role/2.0.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/iam-role/2.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-role/2.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-role/2.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-role/2.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-user/1.0.3/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/iam-user/1.0.3/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/iam-user/1.0.3/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-user/1.0.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-user/1.0.3/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/iam-user/1.0.3/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/kms/1.2.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/kms/1.2.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/kms/1.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/kms/1.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/kms/1.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/kms/1.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/tests/supportingResources/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/lambda/1.1.3/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/lb/1.1.6/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/lb/1.1.6/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/lb/1.1.6/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/lb/1.1.6/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/lb/1.1.6/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/lb/1.1.6/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/lb/1.1.6/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/lb/1.1.6/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/lb/1.1.6/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/lb/1.1.6/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/lb/1.1.6/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/lb/1.1.6/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/lb/1.1.6/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/organizations/1.0.1/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/organizations/1.0.1/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/organizations/1.0.1/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/organizations/1.0.1/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/organizations/1.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/organizations/1.0.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/organizations/1.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/organizations/1.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/modules/global-cluster/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/modules/global-cluster/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/modules/global-cluster/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/modules/global-cluster/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/modules/global-cluster/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/modules/global-cluster/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/tests/supportingResources/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/rds-aurora/1.2.0/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/rds/1.4.1/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/rds/1.4.1/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/rds/1.4.1/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/rds/1.4.1/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/rds/1.4.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/rds/1.4.1/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/rds/1.4.1/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/rds/1.4.1/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/rds/1.4.1/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/rds/1.4.1/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/rds/1.4.1/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/rds/1.4.1/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/rds/1.4.1/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/rds/1.4.1/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/route53-records/1.0.2/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/route53-records/1.0.2/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/route53-records/1.0.2/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/route53-records/1.0.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/route53-records/1.0.2/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/route53-records/1.0.2/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/route53-records/1.0.2/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/route53-records/1.0.2/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/route53-records/1.0.2/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/route53-records/1.0.2/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/route53-records/1.0.2/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/route53-records/1.0.2/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/route53-records/1.0.2/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/route53/1.1.3/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/route53/1.1.3/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/route53/1.1.3/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/route53/1.1.3/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/route53/1.1.3/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/route53/1.1.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/route53/1.1.3/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/route53/1.1.3/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/s3/2.6.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/s3/2.6.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/s3/2.6.0/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/s3/2.6.0/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/s3/2.6.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/s3/2.6.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/s3/2.6.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/s3/2.6.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/scp/1.1.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/scp/1.1.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/scp/1.1.0/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/scp/1.1.0/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/scp/1.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/scp/1.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/scp/1.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/scp/1.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/secretsmanager/1.0.9/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/secretsmanager/1.0.9/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/secretsmanager/1.0.9/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/secretsmanager/1.0.9/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/secretsmanager/1.0.9/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/secretsmanager/1.0.9/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/sns/1.1.2/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/sns/1.1.2/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/sns/1.1.2/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/sns/1.1.2/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/sns/1.1.2/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/sns/1.1.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/sns/1.1.2/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/sns/1.1.2/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/ssm/1.0.2/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/ssm/1.0.2/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/ssm/1.0.2/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/ssm/1.0.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/ssm/1.0.2/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/ssm/1.0.2/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/ssm/1.0.2/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/ssm/1.0.2/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/ssm/1.0.2/tests/supportingResources/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/ssm/1.0.2/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/ssm/1.0.2/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/ssm/1.0.2/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/ssm/1.0.2/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/ssm/1.0.2/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc-endpoints/1.0.3/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/main_subnets.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/modules/internal/main.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/modules/internal/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/modules/internal/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/modules/internal/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/modules/private/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/modules/private/main.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/modules/private/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/modules/private/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/modules/private/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/modules/public/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/modules/public/main.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/modules/public/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/modules/public/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/modules/public/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/internal/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/internal/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/internal/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/internal/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/internal/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/internal/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/private/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/private/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/private/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/private/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/private/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/private/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/private/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/public/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/public/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/public/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/public/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/public/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/public/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/vpc/3.3.0/modules/public/input/versions.tf create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/input/data.tf create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/input/settings.tf create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/tests/supportingResources/LICENSE create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/tests/supportingResources/fixture.json create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/tests/supportingResources/input/locals.tf create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/tests/supportingResources/input/main.tf create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/tests/supportingResources/input/outputs.tf create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/tests/supportingResources/input/variables.tf create mode 100644 conformance/fixtures/registry/boldlink/waf/1.2.0/tests/supportingResources/input/versions.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/LICENSE create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/fixture.json create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/data.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/docker_autoscaler.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/docker_autoscaler_policy.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/docker_autoscaler_security_group.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/docker_machine.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/docker_machine_fleet.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/docker_machine_policy.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/docker_machine_security_group.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/kms.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/locals.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/logging.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/main.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/modules/cache/main.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/modules/cache/outputs.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/modules/cache/state_migration.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/modules/cache/variables.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/modules/cache/versions.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/modules/terminate-agent-hook/cloudwatch.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/modules/terminate-agent-hook/iam.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/modules/terminate-agent-hook/locals.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/modules/terminate-agent-hook/main.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/modules/terminate-agent-hook/outputs.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/modules/terminate-agent-hook/variables.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/modules/terminate-agent-hook/versions.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/runner_policy.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/runner_security_group.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/tags.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/cache/LICENSE create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/cache/fixture.json create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/cache/input/main.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/cache/input/outputs.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/cache/input/state_migration.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/cache/input/variables.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/cache/input/versions.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/terminate-agent-hook/LICENSE create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/terminate-agent-hook/fixture.json create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/terminate-agent-hook/input/cloudwatch.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/terminate-agent-hook/input/iam.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/terminate-agent-hook/input/locals.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/terminate-agent-hook/input/main.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/terminate-agent-hook/input/outputs.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/terminate-agent-hook/input/variables.tf create mode 100644 conformance/fixtures/registry/cattle-ops/gitlab-runner/9.6.0/modules/terminate-agent-hook/input/versions.tf create mode 100644 conformance/fixtures/registry/chime/alternat/0.10.4/LICENSE create mode 100644 conformance/fixtures/registry/chime/alternat/0.10.4/fixture.json create mode 100644 conformance/fixtures/registry/chime/alternat/0.10.4/input/lambda.tf create mode 100644 conformance/fixtures/registry/chime/alternat/0.10.4/input/main.tf create mode 100644 conformance/fixtures/registry/chime/alternat/0.10.4/input/outputs.tf create mode 100644 conformance/fixtures/registry/chime/alternat/0.10.4/input/variables.tf create mode 100644 conformance/fixtures/registry/chime/alternat/0.10.4/input/versions.tf create mode 100644 conformance/fixtures/registry/clouddrove/kms/1.3.4/LICENSE create mode 100644 conformance/fixtures/registry/clouddrove/kms/1.3.4/fixture.json create mode 100644 conformance/fixtures/registry/clouddrove/kms/1.3.4/input/main.tf create mode 100644 conformance/fixtures/registry/clouddrove/kms/1.3.4/input/outputs.tf create mode 100644 conformance/fixtures/registry/clouddrove/kms/1.3.4/input/variables.tf create mode 100644 conformance/fixtures/registry/clouddrove/kms/1.3.4/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/acm-request-certificate/0.18.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/acm-request-certificate/0.18.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/acm-request-certificate/0.18.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/acm-request-certificate/0.18.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/acm-request-certificate/0.18.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/acm-request-certificate/0.18.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/acm-request-certificate/0.18.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb-ingress/0.31.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/alb-ingress/0.31.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/alb-ingress/0.31.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb-ingress/0.31.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb-ingress/0.31.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb-ingress/0.31.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb-ingress/0.31.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb-target-group-cloudwatch-sns-alarms/0.17.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/alb-target-group-cloudwatch-sns-alarms/0.17.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/alb-target-group-cloudwatch-sns-alarms/0.17.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb-target-group-cloudwatch-sns-alarms/0.17.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb-target-group-cloudwatch-sns-alarms/0.17.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb-target-group-cloudwatch-sns-alarms/0.17.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb-target-group-cloudwatch-sns-alarms/0.17.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb/2.5.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/alb/2.5.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/alb/2.5.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb/2.5.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb/2.5.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb/2.5.0/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb/2.5.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/alb/2.5.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/api-gateway/0.9.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/api-gateway/0.9.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/api-gateway/0.9.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/api-gateway/0.9.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/api-gateway/0.9.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/api-gateway/0.9.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/api-gateway/0.9.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/api-gateway/0.9.1/modules/account-settings/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/api-gateway/0.9.1/modules/account-settings/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/api-gateway/0.9.1/modules/account-settings/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/api-gateway/0.9.1/modules/account-settings/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/api-gateway/0.9.1/modules/account-settings/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/api-gateway/0.9.1/modules/account-settings/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/api-gateway/0.9.1/modules/account-settings/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/backup/1.3.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/backup/1.3.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/backup/1.3.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/backup/1.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/backup/1.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/backup/1.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/backup/1.3.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/budgets/0.8.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/budgets/0.8.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/budgets/0.8.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/budgets/0.8.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/budgets/0.8.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/budgets/0.8.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/budgets/0.8.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-cdn/1.8.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-cdn/1.8.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-cdn/1.8.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-cdn/1.8.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-cdn/1.8.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-cdn/1.8.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-cdn/1.8.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/input/deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/modules/lambda@edge/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/modules/lambda@edge/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/modules/lambda@edge/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/modules/lambda@edge/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/modules/lambda@edge/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/modules/lambda@edge/input/package.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/modules/lambda@edge/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudfront-s3-cdn/2.1.1/modules/lambda@edge/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-cloudwatch-alarms/0.14.3/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-cloudwatch-alarms/0.14.3/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-cloudwatch-alarms/0.14.3/input/alarms.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-cloudwatch-alarms/0.14.3/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-cloudwatch-alarms/0.14.3/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-cloudwatch-alarms/0.14.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-cloudwatch-alarms/0.14.3/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-cloudwatch-alarms/0.14.3/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-s3-bucket/0.33.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-s3-bucket/0.33.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-s3-bucket/0.33.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-s3-bucket/0.33.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-s3-bucket/0.33.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-s3-bucket/0.33.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail-s3-bucket/0.33.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail/0.24.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail/0.24.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail/0.24.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail/0.24.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail/0.24.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail/0.24.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudtrail/0.24.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-events/0.10.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-events/0.10.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-events/0.10.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-events/0.10.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-events/0.10.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-events/0.10.0/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-events/0.10.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-events/0.10.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-logs/0.6.9/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-logs/0.6.9/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-logs/0.6.9/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-logs/0.6.9/input/iam.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-logs/0.6.9/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-logs/0.6.9/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-logs/0.6.9/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/cloudwatch-logs/0.6.9/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/code-deploy/0.2.3/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/code-deploy/0.2.3/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/code-deploy/0.2.3/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/code-deploy/0.2.3/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/code-deploy/0.2.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/code-deploy/0.2.3/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/code-deploy/0.2.3/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/codebuild/2.0.2/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/codebuild/2.0.2/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/codebuild/2.0.2/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/codebuild/2.0.2/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/codebuild/2.0.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/codebuild/2.0.2/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/codebuild/2.0.2/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/config-storage/1.0.2/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/config-storage/1.0.2/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/config-storage/1.0.2/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/config-storage/1.0.2/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/config-storage/1.0.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/config-storage/1.0.2/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/config-storage/1.0.2/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/modules/cis-1-2-rules/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/modules/cis-1-2-rules/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/modules/cis-1-2-rules/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/modules/cis-1-2-rules/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/modules/cis-1-2-rules/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/modules/cis-1-2-rules/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/modules/cis-1-2-rules/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/modules/conformance-pack/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/modules/conformance-pack/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/modules/conformance-pack/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/modules/conformance-pack/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/modules/conformance-pack/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/modules/conformance-pack/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/config/2.0.0/modules/conformance-pack/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-integration/3.2.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/datadog-integration/3.2.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/datadog-integration/3.2.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-integration/3.2.0/input/iam-policy-core-integration.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-integration/3.2.0/input/iam-policy-full-integration.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-integration/3.2.0/input/iam-policy-resource-collection.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-integration/3.2.0/input/iam-policy-security-audit.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-integration/3.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-integration/3.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-integration/3.2.0/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-integration/3.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-integration/3.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-lambda-forwarder/1.10.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/datadog-lambda-forwarder/1.10.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/datadog-lambda-forwarder/1.10.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-lambda-forwarder/1.10.1/input/lambda-log.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-lambda-forwarder/1.10.1/input/lambda-rds.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-lambda-forwarder/1.10.1/input/lambda-vpc-logs.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-lambda-forwarder/1.10.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-lambda-forwarder/1.10.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-lambda-forwarder/1.10.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/datadog-lambda-forwarder/1.10.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/documentdb-cluster/1.1.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/documentdb-cluster/1.1.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/documentdb-cluster/1.1.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/documentdb-cluster/1.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/documentdb-cluster/1.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/documentdb-cluster/1.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/documentdb-cluster/1.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamic-subnets/3.1.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/dynamic-subnets/3.1.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/dynamic-subnets/3.1.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamic-subnets/3.1.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamic-subnets/3.1.1/input/moved.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamic-subnets/3.1.1/input/nat-gateway.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamic-subnets/3.1.1/input/nat-instance.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamic-subnets/3.1.1/input/outputs-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamic-subnets/3.1.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamic-subnets/3.1.1/input/private.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamic-subnets/3.1.1/input/public.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamic-subnets/3.1.1/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamic-subnets/3.1.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamic-subnets/3.1.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamodb-autoscaler/0.16.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/dynamodb-autoscaler/0.16.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/dynamodb-autoscaler/0.16.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamodb-autoscaler/0.16.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamodb-autoscaler/0.16.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamodb-autoscaler/0.16.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamodb-autoscaler/0.16.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamodb/0.37.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/dynamodb/0.37.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/dynamodb/0.37.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamodb/0.37.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamodb/0.37.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamodb/0.37.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/dynamodb/0.37.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-autoscale-group/0.43.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ec2-autoscale-group/0.43.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ec2-autoscale-group/0.43.1/input/autoscaling.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-autoscale-group/0.43.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-autoscale-group/0.43.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-autoscale-group/0.43.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-autoscale-group/0.43.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-autoscale-group/0.43.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-bastion-server/0.31.2/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ec2-bastion-server/0.31.2/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ec2-bastion-server/0.31.2/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-bastion-server/0.31.2/input/iam.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-bastion-server/0.31.2/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-bastion-server/0.31.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-bastion-server/0.31.2/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-bastion-server/0.31.2/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-client-vpn/2.0.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ec2-client-vpn/2.0.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ec2-client-vpn/2.0.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-client-vpn/2.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-client-vpn/2.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-client-vpn/2.0.0/input/security_group_inputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-client-vpn/2.0.0/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-client-vpn/2.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-client-vpn/2.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-instance/2.0.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ec2-instance/2.0.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ec2-instance/2.0.0/input/cloudwatch-alarm.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-instance/2.0.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-instance/2.0.0/input/eni.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-instance/2.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-instance/2.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-instance/2.0.0/input/security_group.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-instance/2.0.0/input/ssm_patch.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-instance/2.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ec2-instance/2.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecr/1.0.2/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ecr/1.0.2/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ecr/1.0.2/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecr/1.0.2/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecr/1.0.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecr/1.0.2/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecr/1.0.2/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecr/1.0.2/modules/scanning_configuration/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ecr/1.0.2/modules/scanning_configuration/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ecr/1.0.2/modules/scanning_configuration/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecr/1.0.2/modules/scanning_configuration/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecr/1.0.2/modules/scanning_configuration/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecr/1.0.2/modules/scanning_configuration/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecr/1.0.2/modules/scanning_configuration/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-alb-service-task/1.0.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ecs-alb-service-task/1.0.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ecs-alb-service-task/1.0.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-alb-service-task/1.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-alb-service-task/1.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-alb-service-task/1.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-alb-service-task/1.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cloudwatch-autoscaling/1.0.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cloudwatch-autoscaling/1.0.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cloudwatch-autoscaling/1.0.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cloudwatch-autoscaling/1.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cloudwatch-autoscaling/1.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cloudwatch-autoscaling/1.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cloudwatch-autoscaling/1.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cloudwatch-sns-alarms/0.13.2/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cloudwatch-sns-alarms/0.13.2/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cloudwatch-sns-alarms/0.13.2/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cloudwatch-sns-alarms/0.13.2/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cloudwatch-sns-alarms/0.13.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cloudwatch-sns-alarms/0.13.2/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cloudwatch-sns-alarms/0.13.2/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cluster/2.0.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cluster/2.0.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cluster/2.0.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cluster/2.0.1/input/ec2.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cluster/2.0.1/input/iam.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cluster/2.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cluster/2.0.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cluster/2.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-cluster/2.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-codepipeline/0.34.2/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ecs-codepipeline/0.34.2/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ecs-codepipeline/0.34.2/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-codepipeline/0.34.2/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-codepipeline/0.34.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-codepipeline/0.34.2/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-codepipeline/0.34.2/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-web-app/2.5.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ecs-web-app/2.5.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ecs-web-app/2.5.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-web-app/2.5.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-web-app/2.5.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-web-app/2.5.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ecs-web-app/2.5.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/efs/1.5.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/efs/1.5.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/efs/1.5.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/efs/1.5.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/efs/1.5.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/efs/1.5.0/input/security_group_inputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/efs/1.5.0/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/efs/1.5.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/efs/1.5.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/examples/obsolete-version2/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/examples/obsolete-version2/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/examples/obsolete-version2/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/examples/obsolete-version2/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/examples/obsolete-version2/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/examples/obsolete-version2/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/examples/obsolete-version2/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/input/auth.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/input/capabilities.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/input/iam.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/input/security-group.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-cluster/4.15.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-fargate-profile/1.3.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/eks-fargate-profile/1.3.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/eks-fargate-profile/1.3.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-fargate-profile/1.3.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-fargate-profile/1.3.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-fargate-profile/1.3.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-fargate-profile/1.3.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-iam-role/2.2.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/eks-iam-role/2.2.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/eks-iam-role/2.2.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-iam-role/2.2.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-iam-role/2.2.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-iam-role/2.2.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-iam-role/2.2.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-node-group/3.4.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/eks-node-group/3.4.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/eks-node-group/3.4.0/input/ami.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-node-group/3.4.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-node-group/3.4.0/input/iam.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-node-group/3.4.0/input/launch-template.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-node-group/3.4.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-node-group/3.4.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-node-group/3.4.0/input/security-group.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-node-group/3.4.0/input/userdata.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-node-group/3.4.0/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-node-group/3.4.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/eks-node-group/3.4.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-application/0.13.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-application/0.13.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-application/0.13.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-application/0.13.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-application/0.13.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-application/0.13.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-application/0.13.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-environment/0.56.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-environment/0.56.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-environment/0.56.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-environment/0.56.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-environment/0.56.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-environment/0.56.0/input/security-group-variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-environment/0.56.0/input/security-group.tf create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-environment/0.56.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/elastic-beanstalk-environment/0.56.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-memcached/0.20.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-memcached/0.20.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-memcached/0.20.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-memcached/0.20.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-memcached/0.20.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-memcached/0.20.0/input/security-group-inputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-memcached/0.20.0/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-memcached/0.20.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-memcached/0.20.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-redis/2.1.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-redis/2.1.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-redis/2.1.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-redis/2.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-redis/2.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-redis/2.1.0/input/security_group_inputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-redis/2.1.0/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-redis/2.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticache-redis/2.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticsearch/2.1.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/elasticsearch/2.1.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/elasticsearch/2.1.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticsearch/2.1.0/input/elasticsearch_domain.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticsearch/2.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticsearch/2.1.0/input/opensearch_domain.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticsearch/2.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticsearch/2.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/elasticsearch/2.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/examples/modules/ecs/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/examples/modules/ecs/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/examples/modules/ecs/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/examples/modules/ecs/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/examples/modules/ecs/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/examples/modules/ecs/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/modules/endpoint-group/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/modules/endpoint-group/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/modules/endpoint-group/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/modules/endpoint-group/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/modules/endpoint-group/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/modules/endpoint-group/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/global-accelerator/0.6.1/modules/endpoint-group/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-catalog-database/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-catalog-database/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-catalog-database/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-catalog-database/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-catalog-database/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-catalog-database/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-catalog-database/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-catalog-table/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-catalog-table/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-catalog-table/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-catalog-table/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-catalog-table/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-catalog-table/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-catalog-table/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-connection/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-connection/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-connection/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-connection/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-connection/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-connection/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-connection/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-crawler/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-crawler/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-crawler/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-crawler/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-crawler/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-crawler/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-crawler/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-job/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-job/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-job/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-job/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-job/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-job/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-job/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-registry/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-registry/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-registry/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-registry/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-registry/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-registry/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-registry/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-schema/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-schema/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-schema/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-schema/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-schema/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-schema/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-schema/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-trigger/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-trigger/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-trigger/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-trigger/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-trigger/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-trigger/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-trigger/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-workflow/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-workflow/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-workflow/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-workflow/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-workflow/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-workflow/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/glue/0.4.0/modules/glue-workflow/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/guardduty/1.0.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/guardduty/1.0.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/guardduty/1.0.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/guardduty/1.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/guardduty/1.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/guardduty/1.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/guardduty/1.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/helm-release/0.10.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/helm-release/0.10.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/helm-release/0.10.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/helm-release/0.10.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/helm-release/0.10.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/helm-release/0.10.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/helm-release/0.10.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-policy-document-aggregator/0.8.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/iam-policy-document-aggregator/0.8.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/iam-policy-document-aggregator/0.8.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-policy-document-aggregator/0.8.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-policy-document-aggregator/0.8.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-policy-document-aggregator/0.8.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-policy/2.0.2/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/iam-policy/2.0.2/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/iam-policy/2.0.2/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-policy/2.0.2/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-policy/2.0.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-policy/2.0.2/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-policy/2.0.2/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-policy/2.0.2/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-role/1.0.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/iam-role/1.0.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/iam-role/1.0.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-role/1.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-role/1.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-role/1.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-role/1.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-s3-user/1.2.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/iam-s3-user/1.2.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/iam-s3-user/1.2.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-s3-user/1.2.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-s3-user/1.2.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-s3-user/1.2.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-s3-user/1.2.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-system-user/1.2.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/iam-system-user/1.2.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/iam-system-user/1.2.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-system-user/1.2.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-system-user/1.2.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-system-user/1.2.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/iam-system-user/1.2.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/inspector/0.4.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/inspector/0.4.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/inspector/0.4.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/inspector/0.4.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/inspector/0.4.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/inspector/0.4.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/inspector/0.4.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/key-pair/0.20.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/key-pair/0.20.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/key-pair/0.20.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/key-pair/0.20.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/key-pair/0.20.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/key-pair/0.20.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/key-pair/0.20.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/kinesis-stream/0.4.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/kinesis-stream/0.4.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/kinesis-stream/0.4.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/kinesis-stream/0.4.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/kinesis-stream/0.4.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/kinesis-stream/0.4.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/kinesis-stream/0.4.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/kms-key/0.12.2/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/kms-key/0.12.2/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/kms-key/0.12.2/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/kms-key/0.12.2/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/kms-key/0.12.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/kms-key/0.12.2/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/kms-key/0.12.2/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/lambda-function/0.6.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/lambda-function/0.6.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/lambda-function/0.6.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/lambda-function/0.6.1/input/iam-role.tf create mode 100644 conformance/fixtures/registry/cloudposse/lambda-function/0.6.1/input/lambda-permissions.tf create mode 100644 conformance/fixtures/registry/cloudposse/lambda-function/0.6.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/lambda-function/0.6.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/lambda-function/0.6.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/lambda-function/0.6.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/lb-s3-bucket/0.20.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/lb-s3-bucket/0.20.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/lb-s3-bucket/0.20.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/lb-s3-bucket/0.20.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/lb-s3-bucket/0.20.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/lb-s3-bucket/0.20.0/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/lb-s3-bucket/0.20.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/lb-s3-bucket/0.20.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/mq-broker/3.6.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/mq-broker/3.6.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/mq-broker/3.6.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/mq-broker/3.6.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/mq-broker/3.6.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/mq-broker/3.6.0/input/security-group-variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/mq-broker/3.6.0/input/sg.tf create mode 100644 conformance/fixtures/registry/cloudposse/mq-broker/3.6.0/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/mq-broker/3.6.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/mq-broker/3.6.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/msk-apache-kafka-cluster/2.6.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/msk-apache-kafka-cluster/2.6.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/msk-apache-kafka-cluster/2.6.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/msk-apache-kafka-cluster/2.6.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/msk-apache-kafka-cluster/2.6.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/msk-apache-kafka-cluster/2.6.0/input/security-group-variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/msk-apache-kafka-cluster/2.6.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/msk-apache-kafka-cluster/2.6.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/multi-az-subnets/0.15.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/multi-az-subnets/0.15.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/multi-az-subnets/0.15.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/multi-az-subnets/0.15.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/multi-az-subnets/0.15.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/multi-az-subnets/0.15.0/input/private.tf create mode 100644 conformance/fixtures/registry/cloudposse/multi-az-subnets/0.15.0/input/public.tf create mode 100644 conformance/fixtures/registry/cloudposse/multi-az-subnets/0.15.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/multi-az-subnets/0.15.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/mwaa/0.16.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/mwaa/0.16.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/mwaa/0.16.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/mwaa/0.16.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/mwaa/0.16.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/mwaa/0.16.0/input/security-group-variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/mwaa/0.16.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/mwaa/0.16.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/nlb/0.18.3/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/nlb/0.18.3/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/nlb/0.18.3/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/nlb/0.18.3/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/nlb/0.18.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/nlb/0.18.3/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/nlb/0.18.3/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/nlb/0.18.3/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds-cluster/2.6.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/rds-cluster/2.6.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/rds-cluster/2.6.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds-cluster/2.6.0/input/enhanced-monitoring.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds-cluster/2.6.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds-cluster/2.6.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds-cluster/2.6.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds-cluster/2.6.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds-db-proxy/1.1.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/rds-db-proxy/1.1.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/rds-db-proxy/1.1.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds-db-proxy/1.1.1/input/iam.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds-db-proxy/1.1.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds-db-proxy/1.1.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds-db-proxy/1.1.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds-db-proxy/1.1.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds/1.3.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/rds/1.3.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/rds/1.3.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds/1.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds/1.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds/1.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/rds/1.3.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-alias/0.13.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/route53-alias/0.13.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/route53-alias/0.13.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-alias/0.13.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-alias/0.13.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-alias/0.13.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-alias/0.13.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-cluster-hostname/0.13.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/route53-cluster-hostname/0.13.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/route53-cluster-hostname/0.13.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-cluster-hostname/0.13.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-cluster-hostname/0.13.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-cluster-hostname/0.13.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-cluster-hostname/0.13.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-cluster-zone/0.16.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/route53-cluster-zone/0.16.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/route53-cluster-zone/0.16.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-cluster-zone/0.16.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-cluster-zone/0.16.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-cluster-zone/0.16.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/route53-cluster-zone/0.16.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-bucket/4.15.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/s3-bucket/4.15.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/s3-bucket/4.15.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-bucket/4.15.0/input/lifecycle.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-bucket/4.15.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-bucket/4.15.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-bucket/4.15.0/input/replication.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-bucket/4.15.0/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-bucket/4.15.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-bucket/4.15.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-log-storage/2.1.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/s3-log-storage/2.1.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/s3-log-storage/2.1.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-log-storage/2.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-log-storage/2.1.0/input/moved.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-log-storage/2.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-log-storage/2.1.0/input/sqs_notifications.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-log-storage/2.1.0/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-log-storage/2.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/s3-log-storage/2.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-group/2.2.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/security-group/2.2.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/security-group/2.2.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-group/2.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-group/2.2.0/input/normalize.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-group/2.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-group/2.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-group/2.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/input/eventbridge.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/modules/control-disablements/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/modules/control-disablements/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/modules/control-disablements/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/modules/control-disablements/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/modules/control-disablements/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/modules/control-disablements/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/security-hub/0.13.0/modules/control-disablements/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/service-control-policies/0.16.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/service-control-policies/0.16.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/service-control-policies/0.16.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/service-control-policies/0.16.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/service-control-policies/0.16.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/service-control-policies/0.16.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/service-control-policies/0.16.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ses/0.25.2/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ses/0.25.2/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ses/0.25.2/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ses/0.25.2/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ses/0.25.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ses/0.25.2/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ses/0.25.2/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/sns-lambda-notify-slack/0.9.3/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/sns-lambda-notify-slack/0.9.3/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/sns-lambda-notify-slack/0.9.3/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/sns-lambda-notify-slack/0.9.3/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/sns-lambda-notify-slack/0.9.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/sns-lambda-notify-slack/0.9.3/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/sns-lambda-notify-slack/0.9.3/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-parameter-chamber-reader/0.2.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ssm-parameter-chamber-reader/0.2.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ssm-parameter-chamber-reader/0.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-parameter-chamber-reader/0.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-parameter-chamber-reader/0.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-parameter-chamber-reader/0.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-parameter-store/0.13.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ssm-parameter-store/0.13.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ssm-parameter-store/0.13.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-parameter-store/0.13.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-parameter-store/0.13.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-parameter-store/0.13.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-parameter-store/0.13.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-self-signed-cert/1.3.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-self-signed-cert/1.3.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-self-signed-cert/1.3.0/input/acm.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-self-signed-cert/1.3.0/input/asm.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-self-signed-cert/1.3.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-self-signed-cert/1.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-self-signed-cert/1.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-self-signed-cert/1.3.0/input/ssm.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-self-signed-cert/1.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-self-signed-cert/1.3.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-ssh-key-pair/0.10.2/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-ssh-key-pair/0.10.2/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-ssh-key-pair/0.10.2/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-ssh-key-pair/0.10.2/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-ssh-key-pair/0.10.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-ssh-key-pair/0.10.2/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/ssm-tls-ssh-key-pair/0.10.2/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/sso/1.2.1/modules/account-assignments/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/sso/1.2.1/modules/account-assignments/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/sso/1.2.1/modules/account-assignments/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/sso/1.2.1/modules/account-assignments/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/sso/1.2.1/modules/account-assignments/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/sso/1.2.1/modules/account-assignments/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/sso/1.2.1/modules/account-assignments/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/sso/1.2.1/modules/permission-sets/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/sso/1.2.1/modules/permission-sets/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/sso/1.2.1/modules/permission-sets/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/sso/1.2.1/modules/permission-sets/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/sso/1.2.1/modules/permission-sets/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/sso/1.2.1/modules/permission-sets/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/sso/1.2.1/modules/permission-sets/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/tfstate-backend/1.9.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/tfstate-backend/1.9.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/tfstate-backend/1.9.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/tfstate-backend/1.9.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/tfstate-backend/1.9.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/tfstate-backend/1.9.1/input/replication.tf create mode 100644 conformance/fixtures/registry/cloudposse/tfstate-backend/1.9.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/tfstate-backend/1.9.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/input/modules/subnet_route/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/input/modules/subnet_route/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/input/modules/subnet_route/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/input/modules/subnet_route/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/input/modules/transit_gateway_route/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/input/modules/transit_gateway_route/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/input/modules/transit_gateway_route/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/input/modules/transit_gateway_route/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/input/ram.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/modules/subnet_route/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/modules/subnet_route/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/modules/subnet_route/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/modules/subnet_route/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/modules/subnet_route/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/modules/subnet_route/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/modules/transit_gateway_route/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/modules/transit_gateway_route/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/modules/transit_gateway_route/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/modules/transit_gateway_route/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/modules/transit_gateway_route/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/transit-gateway/0.13.1/modules/transit_gateway_route/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/utils/1.4.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/utils/1.4.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/utils/1.4.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/utils/1.4.0/input/elb.tf create mode 100644 conformance/fixtures/registry/cloudposse/utils/1.4.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/utils/1.4.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/utils/1.4.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/utils/1.4.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-flow-logs-s3-bucket/1.4.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/vpc-flow-logs-s3-bucket/1.4.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/vpc-flow-logs-s3-bucket/1.4.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-flow-logs-s3-bucket/1.4.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-flow-logs-s3-bucket/1.4.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-flow-logs-s3-bucket/1.4.0/input/variables-deprecated.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-flow-logs-s3-bucket/1.4.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-flow-logs-s3-bucket/1.4.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/examples/vpc-only/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/examples/vpc-only/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/examples/vpc-only/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/examples/vpc-only/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/examples/vpc-only/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/examples/vpc-only/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/examples/vpc-only/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/input/accepter.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/input/requester.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering-multi-account/2.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering/1.0.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering/1.0.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering/1.0.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering/1.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering/1.0.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering/1.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc-peering/1.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc/3.0.0/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/vpc/3.0.0/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/vpc/3.0.0/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc/3.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc/3.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc/3.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc/3.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc/3.0.0/modules/vpc-endpoints/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/vpc/3.0.0/modules/vpc-endpoints/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/vpc/3.0.0/modules/vpc-endpoints/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc/3.0.0/modules/vpc-endpoints/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc/3.0.0/modules/vpc-endpoints/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc/3.0.0/modules/vpc-endpoints/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/vpc/3.0.0/modules/vpc-endpoints/input/versions.tf create mode 100644 conformance/fixtures/registry/cloudposse/waf/1.18.1/LICENSE create mode 100644 conformance/fixtures/registry/cloudposse/waf/1.18.1/fixture.json create mode 100644 conformance/fixtures/registry/cloudposse/waf/1.18.1/input/context.tf create mode 100644 conformance/fixtures/registry/cloudposse/waf/1.18.1/input/ipset.tf create mode 100644 conformance/fixtures/registry/cloudposse/waf/1.18.1/input/main.tf create mode 100644 conformance/fixtures/registry/cloudposse/waf/1.18.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cloudposse/waf/1.18.1/input/rules.tf create mode 100644 conformance/fixtures/registry/cloudposse/waf/1.18.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cloudposse/waf/1.18.1/input/versions.tf create mode 100644 conformance/fixtures/registry/clowdhaus/datadog-forwarders/7.0.1/modules/rds_enhanced_monitoring_forwarder/LICENSE create mode 100644 conformance/fixtures/registry/clowdhaus/datadog-forwarders/7.0.1/modules/rds_enhanced_monitoring_forwarder/fixture.json create mode 100644 conformance/fixtures/registry/clowdhaus/datadog-forwarders/7.0.1/modules/rds_enhanced_monitoring_forwarder/input/main.tf create mode 100644 conformance/fixtures/registry/clowdhaus/datadog-forwarders/7.0.1/modules/rds_enhanced_monitoring_forwarder/input/outputs.tf create mode 100644 conformance/fixtures/registry/clowdhaus/datadog-forwarders/7.0.1/modules/rds_enhanced_monitoring_forwarder/input/variables.tf create mode 100644 conformance/fixtures/registry/clowdhaus/datadog-forwarders/7.0.1/modules/rds_enhanced_monitoring_forwarder/input/versions.tf create mode 100644 conformance/fixtures/registry/clowdhaus/datadog-forwarders/7.0.1/modules/vpc_flow_log_forwarder/LICENSE create mode 100644 conformance/fixtures/registry/clowdhaus/datadog-forwarders/7.0.1/modules/vpc_flow_log_forwarder/fixture.json create mode 100644 conformance/fixtures/registry/clowdhaus/datadog-forwarders/7.0.1/modules/vpc_flow_log_forwarder/input/main.tf create mode 100644 conformance/fixtures/registry/clowdhaus/datadog-forwarders/7.0.1/modules/vpc_flow_log_forwarder/input/outputs.tf create mode 100644 conformance/fixtures/registry/clowdhaus/datadog-forwarders/7.0.1/modules/vpc_flow_log_forwarder/input/variables.tf create mode 100644 conformance/fixtures/registry/clowdhaus/datadog-forwarders/7.0.1/modules/vpc_flow_log_forwarder/input/versions.tf create mode 100644 conformance/fixtures/registry/clowdhaus/msk-kafka-cluster/2.13.0/LICENSE create mode 100644 conformance/fixtures/registry/clowdhaus/msk-kafka-cluster/2.13.0/fixture.json create mode 100644 conformance/fixtures/registry/clowdhaus/msk-kafka-cluster/2.13.0/input/kafka_connect.tf create mode 100644 conformance/fixtures/registry/clowdhaus/msk-kafka-cluster/2.13.0/input/main.tf create mode 100644 conformance/fixtures/registry/clowdhaus/msk-kafka-cluster/2.13.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/clowdhaus/msk-kafka-cluster/2.13.0/input/variables.tf create mode 100644 conformance/fixtures/registry/clowdhaus/msk-kafka-cluster/2.13.0/input/versions.tf create mode 100644 conformance/fixtures/registry/clowdhaus/msk-kafka-cluster/2.13.0/modules/serverless/LICENSE create mode 100644 conformance/fixtures/registry/clowdhaus/msk-kafka-cluster/2.13.0/modules/serverless/fixture.json create mode 100644 conformance/fixtures/registry/clowdhaus/msk-kafka-cluster/2.13.0/modules/serverless/input/main.tf create mode 100644 conformance/fixtures/registry/clowdhaus/msk-kafka-cluster/2.13.0/modules/serverless/input/outputs.tf create mode 100644 conformance/fixtures/registry/clowdhaus/msk-kafka-cluster/2.13.0/modules/serverless/input/variables.tf create mode 100644 conformance/fixtures/registry/clowdhaus/msk-kafka-cluster/2.13.0/modules/serverless/input/versions.tf create mode 100644 conformance/fixtures/registry/clowdhaus/rds-proxy/3.2.1/LICENSE create mode 100644 conformance/fixtures/registry/clowdhaus/rds-proxy/3.2.1/fixture.json create mode 100644 conformance/fixtures/registry/clowdhaus/rds-proxy/3.2.1/input/main.tf create mode 100644 conformance/fixtures/registry/clowdhaus/rds-proxy/3.2.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/clowdhaus/rds-proxy/3.2.1/input/variables.tf create mode 100644 conformance/fixtures/registry/clowdhaus/rds-proxy/3.2.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cn-terraform/cloudwatch-logs/1.0.13/LICENSE create mode 100644 conformance/fixtures/registry/cn-terraform/cloudwatch-logs/1.0.13/fixture.json create mode 100644 conformance/fixtures/registry/cn-terraform/cloudwatch-logs/1.0.13/input/main.tf create mode 100644 conformance/fixtures/registry/cn-terraform/cloudwatch-logs/1.0.13/input/outputs.tf create mode 100644 conformance/fixtures/registry/cn-terraform/cloudwatch-logs/1.0.13/input/variables.tf create mode 100644 conformance/fixtures/registry/cn-terraform/cloudwatch-logs/1.0.13/input/versions.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-alb/1.0.37/LICENSE create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-alb/1.0.37/fixture.json create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-alb/1.0.37/input/main.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-alb/1.0.37/input/outputs.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-alb/1.0.37/input/variables.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-alb/1.0.37/input/versions.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-cluster/2.0.1/LICENSE create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-cluster/2.0.1/fixture.json create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-cluster/2.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-cluster/2.0.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-cluster/2.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-cluster/2.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-scheduled-task/2.1.0/LICENSE create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-scheduled-task/2.1.0/fixture.json create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-scheduled-task/2.1.0/input/iam.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-scheduled-task/2.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-scheduled-task/2.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-scheduled-task/2.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-scheduled-task/2.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-service/2.0.50/LICENSE create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-service/2.0.50/fixture.json create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-service/2.0.50/input/main.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-service/2.0.50/input/outputs.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-service/2.0.50/input/variables.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-service/2.0.50/input/versions.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-task-definition/1.0.38/LICENSE create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-task-definition/1.0.38/fixture.json create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-task-definition/1.0.38/input/main.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-task-definition/1.0.38/input/outputs.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-task-definition/1.0.38/input/variables.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-fargate-task-definition/1.0.38/input/versions.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-service-autoscaling/1.0.12/LICENSE create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-service-autoscaling/1.0.12/fixture.json create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-service-autoscaling/1.0.12/input/main.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-service-autoscaling/1.0.12/input/outputs.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-service-autoscaling/1.0.12/input/variables.tf create mode 100644 conformance/fixtures/registry/cn-terraform/ecs-service-autoscaling/1.0.12/input/versions.tf create mode 100644 conformance/fixtures/registry/cn-terraform/logs-s3-bucket/2.0.1/LICENSE create mode 100644 conformance/fixtures/registry/cn-terraform/logs-s3-bucket/2.0.1/fixture.json create mode 100644 conformance/fixtures/registry/cn-terraform/logs-s3-bucket/2.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/cn-terraform/logs-s3-bucket/2.0.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/cn-terraform/logs-s3-bucket/2.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/cn-terraform/logs-s3-bucket/2.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/alb-to-s3-to-cloudwatch-lambda/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/alb-to-s3-to-cloudwatch-lambda/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/alb-to-s3-to-cloudwatch-lambda/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/alb-to-s3-to-cloudwatch-lambda/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/alb-to-s3-to-cloudwatch-lambda/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/input/alb-to-s3-to-cloudwatch-lambda/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/input/alb-to-s3-to-cloudwatch-lambda/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/input/alb-to-s3-to-cloudwatch-lambda/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/input/bucket.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/input/logs-to-cloudwatch.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/api-gateway-account-settings/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/api-gateway-account-settings/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/api-gateway-account-settings/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/api-gateway-account-settings/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/api-gateway/custom-domain/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/api-gateway/custom-domain/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/api-gateway/custom-domain/input/certificate.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/api-gateway/custom-domain/input/data.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/api-gateway/custom-domain/input/locals.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/api-gateway/custom-domain/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/api-gateway/custom-domain/input/r53.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/api-gateway/custom-domain/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/appconfig/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/appconfig/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/appconfig/input/application.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/appconfig/input/configs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/appconfig/input/deployment-strategies.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/appconfig/input/environments.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/appconfig/input/locals.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/appconfig/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/appconfig/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/appconfig/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-alb-to-cloudwatch-lambda/tests/changes/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-alb-to-cloudwatch-lambda/tests/changes/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-alb-to-cloudwatch-lambda/tests/changes/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-cloudfront-security-headers/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-cloudfront-security-headers/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-cloudfront-security-headers/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-cloudfront-security-headers/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-cloudfront-security-headers/input/requirements.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-cloudfront-security-headers/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-cloudwatch-prometheus-metrics/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-cloudwatch-prometheus-metrics/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-cloudwatch-prometheus-metrics/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-cloudwatch-prometheus-metrics/input/namespace.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-cloudwatch-prometheus-metrics/input/role.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-cloudwatch-prometheus-metrics/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-cloudwatch-prometheus-metrics/input/version.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-rds-postgres/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-rds-postgres/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-rds-postgres/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-rds-postgres/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-rds-postgres/input/security-group.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-rds-postgres/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-site-to-site-vpn/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-site-to-site-vpn/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-site-to-site-vpn/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-site-to-site-vpn/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-site-to-site-vpn/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-site-to-site-vpn/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-vpc-peering/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-vpc-peering/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-vpc-peering/input/data.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-vpc-peering/input/locals.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-vpc-peering/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-vpc-peering/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-vpc-peering/input/provider.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-vpc-peering/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/aws-vpc-peering/input/version.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/budgets/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/budgets/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/budgets/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/budgets/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/budgets/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/budgets/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-ssl-hsts/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-ssl-hsts/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-ssl-hsts/input/bucket-origin.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-ssl-hsts/input/lamda-security-headers.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-ssl-hsts/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-ssl-hsts/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-ssl-hsts/input/ssl-certificate.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-ssl-hsts/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-ssl-hsts/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/cloudfront-to-s3-to-cloudwatch/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/cloudfront-to-s3-to-cloudwatch/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/cloudfront-to-s3-to-cloudwatch/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/cloudfront-to-s3-to-cloudwatch/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/cloudfront-to-s3-to-cloudwatch/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/input/bucket.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/input/cloudfront-to-s3-to-cloudwatch/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/input/cloudfront-to-s3-to-cloudwatch/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/input/cloudfront-to-s3-to-cloudwatch/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/input/logs-to-cloudwatch.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront/modules/cloudfront_functions/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront/modules/cloudfront_functions/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront/modules/cloudfront_functions/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront/modules/cloudfront_functions/input/output.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront/modules/cloudfront_functions/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront/modules/response_headers/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront/modules/response_headers/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront/modules/response_headers/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront/modules/response_headers/input/output.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudfront/modules/response_headers/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/cloudtrail-log-to-cloudwatch/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/cloudtrail-log-to-cloudwatch/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/cloudtrail-log-to-cloudwatch/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/cloudtrail-log-to-cloudwatch/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/cloudtrail-log-to-cloudwatch/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/input/bucket.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/input/cloudtrail-log-to-cloudwatch/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/input/cloudtrail-log-to-cloudwatch/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/input/cloudtrail-log-to-cloudwatch/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/input/logs-to-cloudwatch.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/input/alerts.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/input/cloudtrail.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/input/cloudwatch.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/input/cmdb-lambda.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/input/log-metrics.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/input/modules/cmdb-integration/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/input/modules/cmdb-integration/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/input/modules/cmdb-integration/subscription.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/input/modules/cmdb-integration/topic.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/input/modules/cmdb-integration/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/input/output.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/input/role.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/input/s3.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/modules/cmdb-integration/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/modules/cmdb-integration/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/modules/cmdb-integration/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/modules/cmdb-integration/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/modules/cmdb-integration/input/subscription.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/modules/cmdb-integration/input/topic.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudtrail/modules/cmdb-integration/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch-alarm-notify/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch-alarm-notify/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch-alarm-notify/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch-alarm-notify/input/output.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch-alarm-notify/input/sns_email_topic_subscription.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch-alarm-notify/input/sns_lambda_slack_subscription.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch-alarm-notify/input/sns_opesgenie_topic_subscription.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch-alarm-notify/input/sns_sms_topic_subscription.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch-alarm-notify/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch-cross-account-share-data/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch-cross-account-share-data/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch-cross-account-share-data/input/role.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch-cross-account-share-data/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch/input/dashboard.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cloudwatch/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/codecommit/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/codecommit/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/codecommit/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/codecommit/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/codecommit/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/codecommit/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identitiy-pool/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identitiy-pool/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identitiy-pool/input/pool.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identitiy-pool/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identity-pool-final/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identity-pool-final/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identity-pool-final/input/client.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identity-pool-final/input/iam-policy.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identity-pool-final/input/iam-role.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identity-pool-final/input/identity-pool.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identity-pool-final/input/roles-attachment.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identity-pool-final/input/user-pool.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identity-pool-final/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identity/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identity/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identity/input/identity.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identity/input/roles-attachment.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-identity/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-user-pool/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-user-pool/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-user-pool/input/clients.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-user-pool/input/domain.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-user-pool/input/group.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-user-pool/input/output.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-user-pool/input/pool.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-user-pool/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/cognito-user-pool/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ec2/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ec2/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ec2/input/alarms.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ec2/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ecr/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ecr/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ecr/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ecr/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ecr/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ecr/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/efs/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/efs/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/efs/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/efs/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/efs/input/security-group.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/efs/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/efs/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/efs/tests/regular-with-mount-points/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/efs/tests/regular-with-mount-points/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/efs/tests/regular-with-mount-points/input/efs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/eks-iam-user-constrain/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/eks-iam-user-constrain/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/eks-iam-user-constrain/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/eks-iam-user-constrain/input/output.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/eks-iam-user-constrain/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/elastic-search/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/elastic-search/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/elastic-search/input/data.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/elastic-search/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/elastic-search/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/elastic-search/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/elastic-search/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/external-secret-store/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/external-secret-store/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/external-secret-store/input/iam.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/external-secret-store/input/locals.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/external-secret-store/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/external-secret-store/input/store.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/external-secret-store/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/external-secret-store/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/fb-s3-cloudwatch/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/fb-s3-cloudwatch/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/fb-s3-cloudwatch/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/fb-s3-cloudwatch/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/fb-s3-cloudwatch/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/input/bucket.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/input/fb-s3-cloudwatch/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/input/fb-s3-cloudwatch/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/input/fb-s3-cloudwatch/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/input/logs-to-cloudwatch.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-to-s3/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-to-s3/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-to-s3/input/helm-chart.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-to-s3/input/locals.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-to-s3/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-to-s3/input/namespace.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-to-s3/input/output.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-to-s3/input/providers.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-to-s3/input/role.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-to-s3/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/fluent-bit-to-s3/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/global-accelerator/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/global-accelerator/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/global-accelerator/input/locals.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/global-accelerator/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/global-accelerator/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/global-accelerator/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/global-accelerator/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/iam-account-password-policy/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/iam-account-password-policy/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/iam-account-password-policy/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/iam-account-password-policy/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/iam-account-password-policy/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/iam-group/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/iam-group/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/iam-group/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/iam-group/input/output.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/iam-group/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ingress/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ingress/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ingress/input/alarms.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ingress/input/alb-logs-cloudwatch.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ingress/input/data.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ingress/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ingress/input/output.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ingress/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/ingress/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/kms/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/kms/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/kms/input/data.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/kms/input/locals.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/kms/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/kms/input/output.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/kms/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/metric-filter/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/metric-filter/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/metric-filter/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/metric-filter/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/mongodb-atlas/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/mongodb-atlas/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/mongodb-atlas/input/access_user.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/mongodb-atlas/input/alerts.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/mongodb-atlas/input/auditing.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/mongodb-atlas/input/backup.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/mongodb-atlas/input/cluster.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/mongodb-atlas/input/network.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/mongodb-atlas/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/mongodb-atlas/input/project.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/mongodb-atlas/input/team.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/mongodb-atlas/input/users.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/mongodb-atlas/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/mongodb-atlas/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/nlb/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/nlb/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/nlb/input/main.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/nlb/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/nlb/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/nlb/input/versions.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/route53-alerts-notify/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/route53-alerts-notify/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/route53-alerts-notify/input/cloudwatch_alarm.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/route53-alerts-notify/input/health_check.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/route53-alerts-notify/input/lambdas.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/route53-alerts-notify/input/locals.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/route53-alerts-notify/input/requirements.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/route53-alerts-notify/input/sns_email_topic_subscription.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/route53-alerts-notify/input/sns_opesgenie_topic_subscription.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/route53-alerts-notify/input/sns_sms_topic_subscription.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/route53-alerts-notify/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/secret-reader/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/secret-reader/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/secret-reader/input/data.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/secret-reader/input/output.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/secret-reader/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/secret/LICENSE create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/secret/fixture.json create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/secret/input/outputs.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/secret/input/secret.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/secret/input/variables.tf create mode 100644 conformance/fixtures/registry/dasmeta/modules/3.1.0/modules/secret/input/versions.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/bootstrap/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/bootstrap/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/bootstrap/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/bootstrap/0.3.0/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/bootstrap/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/bootstrap/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/docs/published/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/docs/published/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/docs/published/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/examples/calico/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/examples/calico/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/examples/calico/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/examples/pull-request-open-source/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/examples/pull-request-open-source/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/examples/pull-request-open-source/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/examples/simple-enterprise-edition/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/examples/simple-enterprise-edition/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/examples/simple-enterprise-edition/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/examples/simple-open-source/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/examples/simple-open-source/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/dcos/0.3.4/examples/simple-open-source/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/iam/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/iam/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/iam/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/iam/0.3.0/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/iam/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/iam/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/infrastructure/0.3.2/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/infrastructure/0.3.2/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/infrastructure/0.3.2/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/infrastructure/0.3.2/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/infrastructure/0.3.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/infrastructure/0.3.2/input/variables.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/instance/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/instance/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/instance/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/instance/0.3.0/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/instance/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/instance/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-dcos/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-dcos/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-dcos/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-dcos/0.3.0/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-dcos/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-dcos/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-masters-internal/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-masters-internal/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-masters-internal/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-masters-internal/0.3.0/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-masters-internal/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-masters-internal/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-masters/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-masters/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-masters/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-masters/0.3.0/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-masters/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-masters/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-public-agents/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-public-agents/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-public-agents/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-public-agents/0.3.0/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-public-agents/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb-public-agents/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb/0.3.1/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/lb/0.3.1/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/lb/0.3.1/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb/0.3.1/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb/0.3.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/lb/0.3.1/input/variables.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/masters/0.3.1/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/masters/0.3.1/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/masters/0.3.1/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/masters/0.3.1/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/masters/0.3.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/masters/0.3.1/input/variables.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/private-agents/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/private-agents/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/private-agents/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/private-agents/0.3.0/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/private-agents/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/private-agents/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/public-agents/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/public-agents/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/public-agents/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/public-agents/0.3.0/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/public-agents/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/public-agents/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/security-groups/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/security-groups/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/security-groups/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/security-groups/0.3.0/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/security-groups/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/security-groups/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/tested-oses/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/tested-oses/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/tested-oses/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/tested-oses/0.3.0/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/tested-oses/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/tested-oses/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/vpc/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/dcos-terraform/vpc/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/dcos-terraform/vpc/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/vpc/0.3.0/input/meta.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/vpc/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/dcos-terraform/vpc/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/LICENSE create mode 100644 conformance/fixtures/registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/examples/autoscaling-scheduler/test-execution/LICENSE create mode 100644 conformance/fixtures/registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/examples/autoscaling-scheduler/test-execution/fixture.json create mode 100644 conformance/fixtures/registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/examples/autoscaling-scheduler/test-execution/input/main.tf create mode 100644 conformance/fixtures/registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/examples/autoscaling-scheduler/test-execution/input/outputs.tf create mode 100644 conformance/fixtures/registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/examples/autoscaling-scheduler/test-execution/input/variables.tf create mode 100644 conformance/fixtures/registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/examples/autoscaling-scheduler/test-execution/input/versions.tf create mode 100644 conformance/fixtures/registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/fixture.json create mode 100644 conformance/fixtures/registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/input/cloudwatch.tf create mode 100644 conformance/fixtures/registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/input/iam.tf create mode 100644 conformance/fixtures/registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/input/main.tf create mode 100644 conformance/fixtures/registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/input/variables.tf create mode 100644 conformance/fixtures/registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/input/versions.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/agentless-scanning/LICENSE create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/agentless-scanning/fixture.json create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/agentless-scanning/input/locals.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/agentless-scanning/input/main.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/agentless-scanning/input/organizational.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/agentless-scanning/input/outputs.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/agentless-scanning/input/variables.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/agentless-scanning/input/versions.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/cloud-logs/LICENSE create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/cloud-logs/fixture.json create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/cloud-logs/input/main.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/cloud-logs/input/outputs.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/cloud-logs/input/variables.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/cloud-logs/input/versions.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/eks/LICENSE create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/eks/fixture.json create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/eks/input/datasources.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/eks/input/eks.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/eks/input/iam.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/eks/input/locals.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/eks/input/variables.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/eks/input/versions.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/event-bridge/LICENSE create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/event-bridge/fixture.json create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/event-bridge/input/main.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/event-bridge/input/organizational.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/event-bridge/input/outputs.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/event-bridge/input/variables.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/event-bridge/input/versions.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/trust-relationship/LICENSE create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/trust-relationship/fixture.json create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/trust-relationship/input/main.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/trust-relationship/input/outputs.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/trust-relationship/input/variables.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/trust-relationship/input/versions.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/workload-scanning/LICENSE create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/workload-scanning/fixture.json create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/workload-scanning/input/main.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/workload-scanning/input/organizational.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/workload-scanning/input/outputs.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/workload-scanning/input/variables.tf create mode 100644 conformance/fixtures/registry/draios/secure-for-cloud/0.10.29/modules/services/workload-scanning/input/versions.tf create mode 100644 conformance/fixtures/registry/dubiety/elasticsearch-cloudwatch-sns-alarms/3.0.3/LICENSE create mode 100644 conformance/fixtures/registry/dubiety/elasticsearch-cloudwatch-sns-alarms/3.0.3/fixture.json create mode 100644 conformance/fixtures/registry/dubiety/elasticsearch-cloudwatch-sns-alarms/3.0.3/input/alarms.tf create mode 100644 conformance/fixtures/registry/dubiety/elasticsearch-cloudwatch-sns-alarms/3.0.3/input/main.tf create mode 100644 conformance/fixtures/registry/dubiety/elasticsearch-cloudwatch-sns-alarms/3.0.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/dubiety/elasticsearch-cloudwatch-sns-alarms/3.0.3/input/variables.tf create mode 100644 conformance/fixtures/registry/dubiety/elasticsearch-cloudwatch-sns-alarms/3.0.3/input/versions.tf create mode 100644 conformance/fixtures/registry/dwp/vpc/3.0.24/LICENSE create mode 100644 conformance/fixtures/registry/dwp/vpc/3.0.24/fixture.json create mode 100644 conformance/fixtures/registry/dwp/vpc/3.0.24/input/locals.tf create mode 100644 conformance/fixtures/registry/dwp/vpc/3.0.24/input/outputs.tf create mode 100644 conformance/fixtures/registry/dwp/vpc/3.0.24/input/ssm_role.tf create mode 100644 conformance/fixtures/registry/dwp/vpc/3.0.24/input/variables.tf create mode 100644 conformance/fixtures/registry/dwp/vpc/3.0.24/input/vpc.tf create mode 100644 conformance/fixtures/registry/dwp/vpc/3.0.24/input/vpc_endpoints.tf create mode 100644 conformance/fixtures/registry/fdmsantos/kinesis-firehose/4.0.0/LICENSE create mode 100644 conformance/fixtures/registry/fdmsantos/kinesis-firehose/4.0.0/fixture.json create mode 100644 conformance/fixtures/registry/fdmsantos/kinesis-firehose/4.0.0/input/iam.tf create mode 100644 conformance/fixtures/registry/fdmsantos/kinesis-firehose/4.0.0/input/locals.tf create mode 100644 conformance/fixtures/registry/fdmsantos/kinesis-firehose/4.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/fdmsantos/kinesis-firehose/4.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/fdmsantos/kinesis-firehose/4.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/fdmsantos/kinesis-firehose/4.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/alb-default-forward/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/alb-default-forward/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/alb-default-forward/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/alb-default-forward/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/alb-default-forward/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/alb-redirect/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/alb-redirect/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/alb-redirect/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/alb-redirect/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/alb/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/alb/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/alb/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/alb/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/alb/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ami-centos/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ami-centos/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ami-centos/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ami-centos/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ami-ubuntu/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ami-ubuntu/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ami-ubuntu/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ami-ubuntu/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/asg/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/asg/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/asg/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/asg/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/asg/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/asg/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/autoscaling-policy-metric-alarm-pair/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/autoscaling-policy-metric-alarm-pair/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/autoscaling-policy-metric-alarm-pair/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/autoscaling-policy-metric-alarm-pair/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/aws-ipsec-vpn/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/aws-ipsec-vpn/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/aws-ipsec-vpn/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/aws-ipsec-vpn/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/aws-ipsec-vpn/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/bind-server-sg/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/bind-server-sg/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/bind-server-sg/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/bind-server-sg/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudtrail/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudtrail/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudtrail/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudtrail/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudtrail/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudtrail/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-auto-recover-existing-ec2/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-auto-recover-existing-ec2/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-auto-recover-existing-ec2/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-auto-recover-existing-ec2/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-auto-recover-existing-ec2/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-exporter-iam/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-exporter-iam/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-exporter-iam/input/data.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-exporter-iam/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-exporter-iam/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-exporter-iam/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-exporter-iam/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-logs-s3-bucket/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-logs-s3-bucket/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-logs-s3-bucket/input/iam.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-logs-s3-bucket/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-logs-s3-bucket/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-logs-s3-bucket/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cloudwatch-logs-s3-bucket/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cluster-network/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cluster-network/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cluster-network/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cluster-network/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cluster-network/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cluster-network/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/consul-leader-wan-sg/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/consul-leader-wan-sg/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/consul-leader-wan-sg/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/consul-leader-wan-sg/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-grant-reader/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-grant-reader/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-grant-reader/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-grant-reader/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-grant-writer/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-grant-writer/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-grant-writer/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-grant-writer/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-setup/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-setup/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-setup/input/data.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-setup/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-setup/input/output.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-setup/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/credstash-setup/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cross-account-assume-role-policy/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cross-account-assume-role-policy/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cross-account-assume-role-policy/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cross-account-assume-role-policy/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cross-account-role/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cross-account-role/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cross-account-role/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/cross-account-role/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/dlm-lifecycle-policy/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/dlm-lifecycle-policy/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/dlm-lifecycle-policy/input/iam.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/dlm-lifecycle-policy/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/dlm-lifecycle-policy/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/dlm-lifecycle-policy/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ebs-snapshot-iam/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ebs-snapshot-iam/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ebs-snapshot-iam/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ebs-snapshot-iam/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ec2-auto-recover-instances/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ec2-auto-recover-instances/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ec2-auto-recover-instances/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ec2-auto-recover-instances/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ec2-auto-recover-instances/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ec2-auto-recover-instances/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/elk-r53/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/elk-r53/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/elk-r53/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/elk-r53/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/elk-r53/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/etcd-server-sg/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/etcd-server-sg/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/etcd-server-sg/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/etcd-server-sg/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/external-dns-iam/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/external-dns-iam/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/external-dns-iam/input/data.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/external-dns-iam/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/external-dns-iam/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/external-dns-iam/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/external-dns-iam/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/iam-group/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/iam-group/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/iam-group/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/iam-group/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/iam-instance-profile/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/iam-instance-profile/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/iam-instance-profile/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/iam-instance-profile/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/iam-users/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/iam-users/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/iam-users/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/iam-users/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kibana/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kibana/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kibana/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kibana/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kibana/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kibana/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kube-controller-iam/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kube-controller-iam/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kube-controller-iam/input/data.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kube-controller-iam/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kube-controller-iam/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kube-controller-iam/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kube-controller-iam/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kube-worker-iam/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kube-worker-iam/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kube-worker-iam/input/data.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kube-worker-iam/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kube-worker-iam/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kube-worker-iam/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kube-worker-iam/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kubernetes-vpc/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kubernetes-vpc/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kubernetes-vpc/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kubernetes-vpc/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kubernetes-vpc/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/kubernetes-vpc/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/leader-dns/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/leader-dns/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/leader-dns/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/leader-dns/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/leader-dns/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/leader-dns/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/mongo-server-sg/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/mongo-server-sg/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/mongo-server-sg/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/mongo-server-sg/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/multi-volumes/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/multi-volumes/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/multi-volumes/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/multi-volumes/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nat-gateways/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nat-gateways/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nat-gateways/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nat-gateways/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nat-gateways/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nat-gateways/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nomad-agent-sg/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nomad-agent-sg/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nomad-agent-sg/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nomad-agent-sg/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nomad-agent-worker-ports-sg/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nomad-agent-worker-ports-sg/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nomad-agent-worker-ports-sg/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nomad-agent-worker-ports-sg/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nomad-server-sg/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nomad-server-sg/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nomad-server-sg/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/nomad-server-sg/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/open-egress-sg/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/open-egress-sg/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/open-egress-sg/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/open-egress-sg/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/open-ingress-sg/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/open-ingress-sg/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/open-ingress-sg/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/open-ingress-sg/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/packer-vpc/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/packer-vpc/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/packer-vpc/input/data.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/packer-vpc/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/packer-vpc/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/packer-vpc/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/packer-vpc/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/persistent-ebs-volumes/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/persistent-ebs-volumes/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/persistent-ebs-volumes/input/iam.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/persistent-ebs-volumes/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/persistent-ebs-volumes/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/persistent-ebs-volumes/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/persistent-ebs-volumes/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/persistent-ebs/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/persistent-ebs/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/persistent-ebs/input/data.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/persistent-ebs/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/persistent-ebs/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/persistent-ebs/input/variables.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/persistent-ebs/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ping-request-sg/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ping-request-sg/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ping-request-sg/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ping-request-sg/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ping-respond-sg/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ping-respond-sg/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ping-respond-sg/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/ping-respond-sg/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/prometheus-node-exporter-sg/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/prometheus-node-exporter-sg/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/prometheus-node-exporter-sg/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/prometheus-node-exporter-sg/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/r53-subdomain/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/r53-subdomain/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/r53-subdomain/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/r53-subdomain/input/versions.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/rds/LICENSE create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/rds/fixture.json create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/rds/input/iam.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/rds/input/main.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/rds/input/outputs.tf create mode 100644 conformance/fixtures/registry/fpco/foundation/0.9.16/modules/rds/input/variables.tf create mode 100644 conformance/fixtures/registry/gazoakley/session-manager-settings/2.2.0/LICENSE create mode 100644 conformance/fixtures/registry/gazoakley/session-manager-settings/2.2.0/fixture.json create mode 100644 conformance/fixtures/registry/gazoakley/session-manager-settings/2.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/gazoakley/session-manager-settings/2.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/gazoakley/session-manager-settings/2.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/gazoakley/session-manager-settings/2.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/examples/base/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/examples/base/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/examples/base/input/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/examples/base/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/examples/base/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/examples/base/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/examples/base/input/vpc.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/examples/dedicated-mac-hosts/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/examples/dedicated-mac-hosts/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/examples/dedicated-mac-hosts/input/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/examples/dedicated-mac-hosts/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/examples/dedicated-mac-hosts/input/providers.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/examples/dedicated-mac-hosts/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/examples/dedicated-mac-hosts/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/ami-housekeeper/ami.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/ami-housekeeper/iam.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/ami-housekeeper/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/ami-housekeeper/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/ami-housekeeper/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/ami-housekeeper/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/lambda/iam.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/lambda/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/lambda/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/lambda/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/lambda/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runner-binaries-syncer/iam.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runner-binaries-syncer/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runner-binaries-syncer/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runner-binaries-syncer/runner-binaries-syncer.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runner-binaries-syncer/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runner-binaries-syncer/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/job-retry.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/job-retry/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/job-retry/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/job-retry/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/job-retry/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/local.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/logging.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/policies-lambda-common.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/policies-runner.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/pool.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/pool/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/pool/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/pool/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/pool/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/runner-config.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/scale-down.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/scale-up.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/ssm-housekeeper.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/runners/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/storage-providers/aws/ssm/local.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/storage-providers/aws/ssm/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/storage-providers/aws/ssm/ssm.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/storage-providers/aws/ssm/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/storage-providers/aws/ssm/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/deregister-retry.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/notification.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/notification/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/notification/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/notification/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/notification/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/termination.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/termination/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/termination/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/termination/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/termination/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/termination-watcher/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/direct/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/direct/policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/direct/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/direct/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/direct/webhook.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/eventbridge/dispatcher.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/eventbridge/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/eventbridge/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/eventbridge/policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/eventbridge/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/eventbridge/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/eventbridge/webhook.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/modules/webhook/webhook.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/variables.ami-housekeeper.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/variables.deprecated.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/ami-housekeeper/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/ami-housekeeper/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/ami-housekeeper/input/ami.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/ami-housekeeper/input/iam.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/ami-housekeeper/input/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/ami-housekeeper/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/ami-housekeeper/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/ami-housekeeper/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/input/control-plane.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/input/instance-profile.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/input/logging.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/input/policies-runner.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/input/provider-contract.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/input/runner-config.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/input/runner-instances.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/input/scale-set.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/input/validations.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/trust-policy/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/trust-policy/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/trust-policy/input/assume-role.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/trust-policy/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/trust-policy/input/validations.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/trust-policy/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/trust-policy/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/lambda/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/lambda/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/lambda/input/iam.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/lambda/input/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/lambda/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/lambda/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/lambda/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/input/cluster.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/input/config-store.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/input/data.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/input/iam.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/input/locals.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/input/logging.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/input/networking.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/input/service.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/input/task.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/input/validations.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/job-retry.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/job-retry/iam-policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/job-retry/job-retry.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/job-retry/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/job-retry/validations.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/job-retry/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/job-retry/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/pool.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/pool/iam-policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/pool/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/pool/pool.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/pool/validations.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/pool/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/pool/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/scale-runners.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/scale-runners/common-config.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/scale-runners/lambda-iam-policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/scale-runners/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/scale-runners/scale-down-iam-policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/scale-runners/scale-down.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/scale-runners/scale-up-iam-policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/scale-runners/scale-up.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/scale-runners/validations.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/scale-runners/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/scale-runners/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/validations.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/job-retry/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/job-retry/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/job-retry/input/iam-policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/job-retry/input/job-retry.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/job-retry/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/job-retry/input/validations.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/job-retry/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/job-retry/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/pool/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/pool/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/pool/input/iam-policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/pool/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/pool/input/pool.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/pool/input/validations.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/pool/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/pool/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/scale-runners/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/scale-runners/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/scale-runners/input/common-config.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/scale-runners/input/lambda-iam-policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/scale-runners/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/scale-runners/input/scale-down-iam-policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/scale-runners/input/scale-down.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/scale-runners/input/scale-up-iam-policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/scale-runners/input/scale-up.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/scale-runners/input/validations.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/scale-runners/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/scale-runners/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-binaries-syncer/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-binaries-syncer/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-binaries-syncer/input/iam.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-binaries-syncer/input/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-binaries-syncer/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-binaries-syncer/input/runner-binaries-syncer.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-binaries-syncer/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-binaries-syncer/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-config/ssm-housekeeper/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-config/ssm-housekeeper/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-config/ssm-housekeeper/input/iam-policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-config/ssm-housekeeper/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-config/ssm-housekeeper/input/ssm-housekeeper.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-config/ssm-housekeeper/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runner-config/ssm-housekeeper/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runners/pool/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runners/pool/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runners/pool/input/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runners/pool/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runners/pool/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/runners/pool/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/setup-iam-permissions/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/setup-iam-permissions/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/setup-iam-permissions/input/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/setup-iam-permissions/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/setup-iam-permissions/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/setup-iam-permissions/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/storage-providers/aws/ssm/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/storage-providers/aws/ssm/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/storage-providers/aws/ssm/input/local.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/storage-providers/aws/ssm/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/storage-providers/aws/ssm/input/ssm.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/storage-providers/aws/ssm/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/storage-providers/aws/ssm/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/direct/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/direct/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/direct/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/direct/input/policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/direct/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/direct/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/direct/input/webhook.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/eventbridge/LICENSE create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/eventbridge/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/eventbridge/input/dispatcher.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/eventbridge/input/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/eventbridge/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/eventbridge/input/policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/eventbridge/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/eventbridge/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/eventbridge/input/webhook.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/fixture.json create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/direct/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/direct/policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/direct/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/direct/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/direct/webhook.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/eventbridge/dispatcher.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/eventbridge/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/eventbridge/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/eventbridge/policies.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/eventbridge/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/eventbridge/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/eventbridge/webhook.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/main.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/outputs.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/variables.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/versions.tf create mode 100644 conformance/fixtures/registry/github-aws-runners/github-runner/8.0.0/modules/webhook/input/webhook.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/LICENSE create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/fixture.json create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/input/data.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/input/locals.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/input/provider.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/input/version.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/associated-cidr/LICENSE create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/associated-cidr/fixture.json create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/associated-cidr/input/main.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/associated-cidr/input/outputs.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/associated-cidr/input/provider.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/custom-name/LICENSE create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/custom-name/fixture.json create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/custom-name/input/main.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/custom-name/input/outputs.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/custom-name/input/provider.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/custom-name/input/variables.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/default-name/LICENSE create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/default-name/fixture.json create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/default-name/input/main.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/default-name/input/outputs.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/default-name/input/provider.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/default-name/input/variables.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-multi-region/LICENSE create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-multi-region/fixture.json create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-multi-region/input/main.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-multi-region/input/outputs.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-multi-region/input/provider.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-multi-region/input/variables.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-single-region-both-dualstack/LICENSE create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-single-region-both-dualstack/fixture.json create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-single-region-both-dualstack/input/main.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-single-region-both-dualstack/input/outputs.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-single-region-both-dualstack/input/provider.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-single-region-both-dualstack/input/variables.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-single-region/LICENSE create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-single-region/fixture.json create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-single-region/input/main.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-single-region/input/outputs.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-single-region/input/provider.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-single-region/input/variables.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/partial-subnets/LICENSE create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/partial-subnets/fixture.json create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/partial-subnets/input/data.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/partial-subnets/input/main.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/partial-subnets/input/outputs.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/partial-subnets/input/provider.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/partial-subnets/input/variables.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-multi-region/LICENSE create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-multi-region/fixture.json create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-multi-region/input/main.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-multi-region/input/outputs.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-multi-region/input/provider.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-multi-region/input/variables.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region-one-dualstack/LICENSE create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region-one-dualstack/fixture.json create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region-one-dualstack/input/main.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region-one-dualstack/input/outputs.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region-one-dualstack/input/provider.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region-one-dualstack/input/variables.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region-with-options/LICENSE create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region-with-options/fixture.json create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region-with-options/input/main.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region-with-options/input/outputs.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region-with-options/input/provider.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region-with-options/input/variables.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region/LICENSE create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region/fixture.json create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region/input/main.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region/input/outputs.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region/input/provider.tf create mode 100644 conformance/fixtures/registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region/input/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/LICENSE create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/NOTICE create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/fixture.json create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/input/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/input/modules/consul-client-security-group-rules/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/input/modules/consul-client-security-group-rules/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/input/modules/consul-cluster/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/input/modules/consul-cluster/outputs.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/input/modules/consul-cluster/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/input/modules/consul-iam-policies/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/input/modules/consul-iam-policies/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/input/modules/consul-security-group-rules/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/input/modules/consul-security-group-rules/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/input/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/modules/consul-client-security-group-rules/LICENSE create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/modules/consul-client-security-group-rules/NOTICE create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/modules/consul-client-security-group-rules/fixture.json create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/modules/consul-client-security-group-rules/input/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/modules/consul-client-security-group-rules/input/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/modules/consul-iam-policies/LICENSE create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/modules/consul-iam-policies/NOTICE create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/modules/consul-iam-policies/fixture.json create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/modules/consul-iam-policies/input/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/consul/0.11.0/modules/consul-iam-policies/input/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/hashicorp-vault-eks-addon/1.0.0-rc2/blueprints/getting-started/LICENSE create mode 100644 conformance/fixtures/registry/hashicorp/hashicorp-vault-eks-addon/1.0.0-rc2/blueprints/getting-started/fixture.json create mode 100644 conformance/fixtures/registry/hashicorp/hashicorp-vault-eks-addon/1.0.0-rc2/blueprints/getting-started/input/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/hashicorp-vault-eks-addon/1.0.0-rc2/blueprints/getting-started/input/outputs.tf create mode 100644 conformance/fixtures/registry/hashicorp/hashicorp-vault-eks-addon/1.0.0-rc2/blueprints/getting-started/input/terraform.tf create mode 100644 conformance/fixtures/registry/hashicorp/hashicorp-vault-eks-addon/1.0.0-rc2/blueprints/getting-started/input/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/LICENSE create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/NOTICE create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/examples/vault-dynamodb-backend/dynamodb/LICENSE create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/examples/vault-dynamodb-backend/dynamodb/NOTICE create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/examples/vault-dynamodb-backend/dynamodb/fixture.json create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/examples/vault-dynamodb-backend/dynamodb/input/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/examples/vault-dynamodb-backend/dynamodb/input/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/fixture.json create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/input/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/input/modules/vault-cluster/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/input/modules/vault-cluster/outputs.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/input/modules/vault-cluster/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/input/modules/vault-elb/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/input/modules/vault-elb/outputs.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/input/modules/vault-elb/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/input/modules/vault-security-group-rules/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/input/modules/vault-security-group-rules/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/input/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/modules/vault-elb/LICENSE create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/modules/vault-elb/NOTICE create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/modules/vault-elb/fixture.json create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/modules/vault-elb/input/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/modules/vault-elb/input/outputs.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/modules/vault-elb/input/variables.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/modules/vault-security-group-rules/LICENSE create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/modules/vault-security-group-rules/NOTICE create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/modules/vault-security-group-rules/fixture.json create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/modules/vault-security-group-rules/input/main.tf create mode 100644 conformance/fixtures/registry/hashicorp/vault/0.17.0/modules/vault-security-group-rules/input/variables.tf create mode 100644 conformance/fixtures/registry/hmrc/s3-bucket-core/3.2.2/LICENSE create mode 100644 conformance/fixtures/registry/hmrc/s3-bucket-core/3.2.2/fixture.json create mode 100644 conformance/fixtures/registry/hmrc/s3-bucket-core/3.2.2/input/main.tf create mode 100644 conformance/fixtures/registry/hmrc/s3-bucket-core/3.2.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/hmrc/s3-bucket-core/3.2.2/input/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/LICENSE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/NOTICE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/cloudwatch-logs/LICENSE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/cloudwatch-logs/NOTICE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/cloudwatch-logs/fixture.json create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/cloudwatch-logs/input/main.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/cloudwatch-logs/input/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/cloudwatch-metrics/LICENSE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/cloudwatch-metrics/NOTICE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/cloudwatch-metrics/fixture.json create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/cloudwatch-metrics/input/main.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/cloudwatch-metrics/input/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/complete/LICENSE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/complete/NOTICE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/complete/fixture.json create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/complete/input/main.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/complete/input/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/rds-logs/mysql/LICENSE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/rds-logs/mysql/NOTICE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/rds-logs/mysql/fixture.json create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/rds-logs/mysql/input/main.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/rds-logs/mysql/input/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/rds-logs/postgresql/LICENSE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/rds-logs/postgresql/NOTICE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/rds-logs/postgresql/fixture.json create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/rds-logs/postgresql/input/main.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/rds-logs/postgresql/input/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/s3-logfile/LICENSE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/s3-logfile/NOTICE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/s3-logfile/fixture.json create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/s3-logfile/input/main.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/examples/s3-logfile/input/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/fixture.json create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/main.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/cloudwatch-logs/iam.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/cloudwatch-logs/main.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/cloudwatch-logs/outputs.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/cloudwatch-logs/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/cloudwatch-logs/versions.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/cloudwatch-metrics/iam.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/cloudwatch-metrics/main.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/cloudwatch-metrics/outputs.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/cloudwatch-metrics/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/cloudwatch-metrics/versions.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/kinesis-firehose-honeycomb/main.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/kinesis-firehose-honeycomb/outputs.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/kinesis-firehose-honeycomb/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/kinesis-firehose-honeycomb/versions.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/rds-logs/main.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/rds-logs/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/rds-logs/versions.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/s3-logfile/main.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/s3-logfile/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/modules/s3-logfile/versions.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/input/versions.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/modules/kinesis-firehose-honeycomb/LICENSE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/modules/kinesis-firehose-honeycomb/NOTICE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/modules/kinesis-firehose-honeycomb/fixture.json create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/modules/kinesis-firehose-honeycomb/input/main.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/modules/kinesis-firehose-honeycomb/input/outputs.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/modules/kinesis-firehose-honeycomb/input/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/modules/kinesis-firehose-honeycomb/input/versions.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/modules/s3-logfile/LICENSE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/modules/s3-logfile/NOTICE create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/modules/s3-logfile/fixture.json create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/modules/s3-logfile/input/main.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/modules/s3-logfile/input/variables.tf create mode 100644 conformance/fixtures/registry/honeycombio/integrations/2.3.1/modules/s3-logfile/input/versions.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/LICENSE create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/fixture.json create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/input/account.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/input/defaults.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/input/igw.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/input/main.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/input/nat.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/input/private_subnets.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/input/public_subnets.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/input/terraform.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/input/variables.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/input/vpc.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/spec/unit/infra/prerequisites/LICENSE create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/spec/unit/infra/prerequisites/fixture.json create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/spec/unit/infra/prerequisites/input/main.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/spec/unit/infra/prerequisites/input/outputs.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/spec/unit/infra/prerequisites/input/provider.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/spec/unit/infra/prerequisites/input/terraform.tf create mode 100644 conformance/fixtures/registry/infrablocks/base-networking/6.1.0-rc.1/spec/unit/infra/prerequisites/input/variables.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-cluster/6.2.0-rc.2/spec/unit/infra/prerequisites/LICENSE create mode 100644 conformance/fixtures/registry/infrablocks/ecs-cluster/6.2.0-rc.2/spec/unit/infra/prerequisites/fixture.json create mode 100644 conformance/fixtures/registry/infrablocks/ecs-cluster/6.2.0-rc.2/spec/unit/infra/prerequisites/input/main.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-cluster/6.2.0-rc.2/spec/unit/infra/prerequisites/input/outputs.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-cluster/6.2.0-rc.2/spec/unit/infra/prerequisites/input/providers.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-cluster/6.2.0-rc.2/spec/unit/infra/prerequisites/input/security_groups.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-cluster/6.2.0-rc.2/spec/unit/infra/prerequisites/input/terraform.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-cluster/6.2.0-rc.2/spec/unit/infra/prerequisites/input/variables.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/LICENSE create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/fixture.json create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/input/log_group.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/input/main.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/input/outputs.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/input/security_groups.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/input/service.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/input/service_discovery.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/input/task_definition.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/input/terraform.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/input/variables.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/spec/unit/infra/prerequisites/LICENSE create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/spec/unit/infra/prerequisites/fixture.json create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/spec/unit/infra/prerequisites/input/alb.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/spec/unit/infra/prerequisites/input/main.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/spec/unit/infra/prerequisites/input/outputs.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/spec/unit/infra/prerequisites/input/provider.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/spec/unit/infra/prerequisites/input/service_discovery.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/spec/unit/infra/prerequisites/input/terraform.tf create mode 100644 conformance/fixtures/registry/infrablocks/ecs-service/5.2.0-rc.4/spec/unit/infra/prerequisites/input/variables.tf create mode 100644 conformance/fixtures/registry/int128/nat-instance/2.1.0/LICENSE create mode 100644 conformance/fixtures/registry/int128/nat-instance/2.1.0/fixture.json create mode 100644 conformance/fixtures/registry/int128/nat-instance/2.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/int128/nat-instance/2.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/int128/nat-instance/2.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/jeromegamez/enforce-mfa/2.0.0/LICENSE create mode 100644 conformance/fixtures/registry/jeromegamez/enforce-mfa/2.0.0/fixture.json create mode 100644 conformance/fixtures/registry/jeromegamez/enforce-mfa/2.0.0/input/data.tf create mode 100644 conformance/fixtures/registry/jeromegamez/enforce-mfa/2.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/jeromegamez/enforce-mfa/2.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/jmgreg31/cloudfront/5.0.1/cloudfront/LICENSE create mode 100644 conformance/fixtures/registry/jmgreg31/cloudfront/5.0.1/cloudfront/fixture.json create mode 100644 conformance/fixtures/registry/jmgreg31/cloudfront/5.0.1/cloudfront/input/main.tf create mode 100644 conformance/fixtures/registry/jmgreg31/cloudfront/5.0.1/cloudfront/input/outputs.tf create mode 100644 conformance/fixtures/registry/jmgreg31/cloudfront/5.0.1/cloudfront/input/variables.tf create mode 100644 conformance/fixtures/registry/jmgreg31/cloudfront/5.0.1/cloudfront/input/versions.tf create mode 100644 conformance/fixtures/registry/jmgreg31/cloudfront/5.0.1/example/LICENSE create mode 100644 conformance/fixtures/registry/jmgreg31/cloudfront/5.0.1/example/fixture.json create mode 100644 conformance/fixtures/registry/jmgreg31/cloudfront/5.0.1/example/input/main.tf create mode 100644 conformance/fixtures/registry/jpamies/certificate/2.0.0/LICENSE create mode 100644 conformance/fixtures/registry/jpamies/certificate/2.0.0/fixture.json create mode 100644 conformance/fixtures/registry/jpamies/certificate/2.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/jpamies/certificate/2.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/jpamies/certificate/2.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/jpamies/certificate/2.0.0/input/version.tf create mode 100644 conformance/fixtures/registry/k9securityio/kms-key/0.7.0/LICENSE create mode 100644 conformance/fixtures/registry/k9securityio/kms-key/0.7.0/fixture.json create mode 100644 conformance/fixtures/registry/k9securityio/kms-key/0.7.0/input/interface.tf create mode 100644 conformance/fixtures/registry/k9securityio/kms-key/0.7.0/input/k9policy/interface.tf create mode 100644 conformance/fixtures/registry/k9securityio/kms-key/0.7.0/input/k9policy/policy.tf create mode 100644 conformance/fixtures/registry/k9securityio/kms-key/0.7.0/input/k9policy/versions.tf create mode 100644 conformance/fixtures/registry/k9securityio/kms-key/0.7.0/input/kms.tf create mode 100644 conformance/fixtures/registry/k9securityio/kms-key/0.7.0/input/versions.tf create mode 100644 conformance/fixtures/registry/k9securityio/kms-key/0.7.0/k9policy/LICENSE create mode 100644 conformance/fixtures/registry/k9securityio/kms-key/0.7.0/k9policy/fixture.json create mode 100644 conformance/fixtures/registry/k9securityio/kms-key/0.7.0/k9policy/input/interface.tf create mode 100644 conformance/fixtures/registry/k9securityio/kms-key/0.7.0/k9policy/input/policy.tf create mode 100644 conformance/fixtures/registry/k9securityio/kms-key/0.7.0/k9policy/input/versions.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-cluster-autoscaler/5.0.1/LICENSE create mode 100644 conformance/fixtures/registry/lablabs/eks-cluster-autoscaler/5.0.1/fixture.json create mode 100644 conformance/fixtures/registry/lablabs/eks-cluster-autoscaler/5.0.1/input/addon-irsa.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-cluster-autoscaler/5.0.1/input/addon.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-cluster-autoscaler/5.0.1/input/iam.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-cluster-autoscaler/5.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-cluster-autoscaler/5.0.1/input/migrations.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-cluster-autoscaler/5.0.1/input/variables-addon-irsa.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-cluster-autoscaler/5.0.1/input/variables-addon.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-cluster-autoscaler/5.0.1/input/variables-common.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-cluster-autoscaler/5.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-cluster-autoscaler/5.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-efs-csi-driver/3.0.1/LICENSE create mode 100644 conformance/fixtures/registry/lablabs/eks-efs-csi-driver/3.0.1/fixture.json create mode 100644 conformance/fixtures/registry/lablabs/eks-efs-csi-driver/3.0.1/input/addon-irsa.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-efs-csi-driver/3.0.1/input/addon.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-efs-csi-driver/3.0.1/input/iam.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-efs-csi-driver/3.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-efs-csi-driver/3.0.1/input/migrations.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-efs-csi-driver/3.0.1/input/variables-addon-irsa.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-efs-csi-driver/3.0.1/input/variables-addon.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-efs-csi-driver/3.0.1/input/variables-common.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-efs-csi-driver/3.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-efs-csi-driver/3.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-external-dns/4.0.1/LICENSE create mode 100644 conformance/fixtures/registry/lablabs/eks-external-dns/4.0.1/fixture.json create mode 100644 conformance/fixtures/registry/lablabs/eks-external-dns/4.0.1/input/addon-irsa.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-external-dns/4.0.1/input/addon.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-external-dns/4.0.1/input/iam.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-external-dns/4.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-external-dns/4.0.1/input/migrations.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-external-dns/4.0.1/input/variables-addon-irsa.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-external-dns/4.0.1/input/variables-addon.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-external-dns/4.0.1/input/variables-common.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-external-dns/4.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-external-dns/4.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-kube-state-metrics/4.0.1/LICENSE create mode 100644 conformance/fixtures/registry/lablabs/eks-kube-state-metrics/4.0.1/fixture.json create mode 100644 conformance/fixtures/registry/lablabs/eks-kube-state-metrics/4.0.1/input/addon.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-kube-state-metrics/4.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-kube-state-metrics/4.0.1/input/migrations.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-kube-state-metrics/4.0.1/input/variables-addon.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-kube-state-metrics/4.0.1/input/variables-common.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-kube-state-metrics/4.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-kube-state-metrics/4.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-load-balancer-controller/5.0.1/LICENSE create mode 100644 conformance/fixtures/registry/lablabs/eks-load-balancer-controller/5.0.1/fixture.json create mode 100644 conformance/fixtures/registry/lablabs/eks-load-balancer-controller/5.0.1/input/addon-irsa.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-load-balancer-controller/5.0.1/input/addon.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-load-balancer-controller/5.0.1/input/iam.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-load-balancer-controller/5.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-load-balancer-controller/5.0.1/input/migrations.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-load-balancer-controller/5.0.1/input/validations.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-load-balancer-controller/5.0.1/input/variables-addon-irsa.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-load-balancer-controller/5.0.1/input/variables-addon.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-load-balancer-controller/5.0.1/input/variables-common.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-load-balancer-controller/5.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-load-balancer-controller/5.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-node-problem-detector/4.0.0/LICENSE create mode 100644 conformance/fixtures/registry/lablabs/eks-node-problem-detector/4.0.0/fixture.json create mode 100644 conformance/fixtures/registry/lablabs/eks-node-problem-detector/4.0.0/input/addon.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-node-problem-detector/4.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-node-problem-detector/4.0.0/input/migrations.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-node-problem-detector/4.0.0/input/variables-addon.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-node-problem-detector/4.0.0/input/variables-common.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-node-problem-detector/4.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/lablabs/eks-node-problem-detector/4.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/lacework/agentless-scanning/0.19.0/LICENSE create mode 100644 conformance/fixtures/registry/lacework/agentless-scanning/0.19.0/fixture.json create mode 100644 conformance/fixtures/registry/lacework/agentless-scanning/0.19.0/input/main.tf create mode 100644 conformance/fixtures/registry/lacework/agentless-scanning/0.19.0/input/output.tf create mode 100644 conformance/fixtures/registry/lacework/agentless-scanning/0.19.0/input/variables.tf create mode 100644 conformance/fixtures/registry/lacework/agentless-scanning/0.19.0/input/versions.tf create mode 100644 conformance/fixtures/registry/lacework/ecr/0.9.3/LICENSE create mode 100644 conformance/fixtures/registry/lacework/ecr/0.9.3/fixture.json create mode 100644 conformance/fixtures/registry/lacework/ecr/0.9.3/input/main.tf create mode 100644 conformance/fixtures/registry/lacework/ecr/0.9.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/lacework/ecr/0.9.3/input/variables.tf create mode 100644 conformance/fixtures/registry/lacework/ecr/0.9.3/input/versions.tf create mode 100644 conformance/fixtures/registry/lacework/ecs-agent/0.5.3/LICENSE create mode 100644 conformance/fixtures/registry/lacework/ecs-agent/0.5.3/fixture.json create mode 100644 conformance/fixtures/registry/lacework/ecs-agent/0.5.3/input/main.tf create mode 100644 conformance/fixtures/registry/lacework/ecs-agent/0.5.3/input/output.tf create mode 100644 conformance/fixtures/registry/lacework/ecs-agent/0.5.3/input/variables.tf create mode 100644 conformance/fixtures/registry/lacework/ecs-agent/0.5.3/input/versions.tf create mode 100644 conformance/fixtures/registry/lacework/eks-audit-log/1.2.0/LICENSE create mode 100644 conformance/fixtures/registry/lacework/eks-audit-log/1.2.0/fixture.json create mode 100644 conformance/fixtures/registry/lacework/eks-audit-log/1.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/lacework/eks-audit-log/1.2.0/input/output.tf create mode 100644 conformance/fixtures/registry/lacework/eks-audit-log/1.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/lacework/eks-audit-log/1.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/lacework/ssm-agent/1.0.2/LICENSE create mode 100644 conformance/fixtures/registry/lacework/ssm-agent/1.0.2/fixture.json create mode 100644 conformance/fixtures/registry/lacework/ssm-agent/1.0.2/input/main.tf create mode 100644 conformance/fixtures/registry/lacework/ssm-agent/1.0.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/lacework/ssm-agent/1.0.2/input/variables.tf create mode 100644 conformance/fixtures/registry/lacework/ssm-agent/1.0.2/input/versions.tf create mode 100644 conformance/fixtures/registry/lazzurs/efs/0.3.3/LICENSE create mode 100644 conformance/fixtures/registry/lazzurs/efs/0.3.3/fixture.json create mode 100644 conformance/fixtures/registry/lazzurs/efs/0.3.3/input/main.tf create mode 100644 conformance/fixtures/registry/lazzurs/efs/0.3.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/lazzurs/efs/0.3.3/input/variables.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/LICENSE create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/fixture.json create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/client.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/domain.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/identity-provider.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/locals-admin.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/locals-device.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/locals-email.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/locals-lambda.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/locals-main.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/locals-password.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/locals-sms.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/log-delivery-configuration.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/main.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/managed-login-branding.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/outputs.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/resource-server.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/ui-customization.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/user-group.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/variables.tf create mode 100644 conformance/fixtures/registry/lgallard/cognito-user-pool/5.1.4/input/versions.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/LICENSE create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/fixture.json create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/locals.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/main.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/modules/kms/locals.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/modules/kms/main.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/modules/kms/outputs.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/modules/kms/variables.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/modules/kms/versions.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/modules/pull-through-cache/main.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/modules/pull-through-cache/outputs.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/modules/pull-through-cache/variables.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/modules/pull-through-cache/versions.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/monitoring.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/policies.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/repository.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/variables.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/input/versions.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/modules/kms/LICENSE create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/modules/kms/fixture.json create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/modules/kms/input/locals.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/modules/kms/input/main.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/modules/kms/input/outputs.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/modules/kms/input/variables.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/modules/kms/input/versions.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/modules/pull-through-cache/LICENSE create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/modules/pull-through-cache/fixture.json create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/modules/pull-through-cache/input/main.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/modules/pull-through-cache/input/outputs.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/modules/pull-through-cache/input/variables.tf create mode 100644 conformance/fixtures/registry/lgallard/ecr/2.1.1/modules/pull-through-cache/input/versions.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/LICENSE create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_arn/LICENSE create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_arn/fixture.json create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_arn/input/datasources.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_arn/input/main.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_arn/input/provider.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_arn/input/variables.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_arn/input/versions.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_name_pasword/LICENSE create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_name_pasword/fixture.json create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_name_pasword/input/datasources.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_name_pasword/input/main.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_name_pasword/input/provider.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_name_pasword/input/variables.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_name_pasword/input/versions.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/vpc/LICENSE create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/vpc/fixture.json create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/vpc/input/datasources.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/vpc/input/main.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/vpc/input/provider.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/vpc/input/variable.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/examples/vpc/input/versions.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/fixture.json create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/input/iam.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/input/kms.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/input/main.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/input/variables.tf create mode 100644 conformance/fixtures/registry/lgallard/elasticsearch/0.14.1/input/versions.tf create mode 100644 conformance/fixtures/registry/lgallard/secrets-manager/1.3.0/LICENSE create mode 100644 conformance/fixtures/registry/lgallard/secrets-manager/1.3.0/fixture.json create mode 100644 conformance/fixtures/registry/lgallard/secrets-manager/1.3.0/input/data.tf create mode 100644 conformance/fixtures/registry/lgallard/secrets-manager/1.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/lgallard/secrets-manager/1.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/lgallard/secrets-manager/1.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/lgallard/secrets-manager/1.3.0/input/versions.tf create mode 100644 conformance/fixtures/registry/lorenzoaiello/rds-alarms/2.4.1/LICENSE create mode 100644 conformance/fixtures/registry/lorenzoaiello/rds-alarms/2.4.1/fixture.json create mode 100644 conformance/fixtures/registry/lorenzoaiello/rds-alarms/2.4.1/input/main.tf create mode 100644 conformance/fixtures/registry/lorenzoaiello/rds-alarms/2.4.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/lorenzoaiello/rds-alarms/2.4.1/input/variables.tf create mode 100644 conformance/fixtures/registry/lorenzoaiello/rds-alarms/2.4.1/input/versions.tf create mode 100644 conformance/fixtures/registry/masterpointio/ssm-agent/1.8.1/LICENSE create mode 100644 conformance/fixtures/registry/masterpointio/ssm-agent/1.8.1/fixture.json create mode 100644 conformance/fixtures/registry/masterpointio/ssm-agent/1.8.1/input/context.tf create mode 100644 conformance/fixtures/registry/masterpointio/ssm-agent/1.8.1/input/data.tf create mode 100644 conformance/fixtures/registry/masterpointio/ssm-agent/1.8.1/input/main.tf create mode 100644 conformance/fixtures/registry/masterpointio/ssm-agent/1.8.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/masterpointio/ssm-agent/1.8.1/input/validations.tf create mode 100644 conformance/fixtures/registry/masterpointio/ssm-agent/1.8.1/input/variables.tf create mode 100644 conformance/fixtures/registry/masterpointio/ssm-agent/1.8.1/input/versions.tf create mode 100644 conformance/fixtures/registry/masterpointio/tailscale/2.1.0/LICENSE create mode 100644 conformance/fixtures/registry/masterpointio/tailscale/2.1.0/fixture.json create mode 100644 conformance/fixtures/registry/masterpointio/tailscale/2.1.0/input/context.tf create mode 100644 conformance/fixtures/registry/masterpointio/tailscale/2.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/masterpointio/tailscale/2.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/masterpointio/tailscale/2.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/masterpointio/tailscale/2.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/mewa/apigateway-cors/2.0.1/LICENSE create mode 100644 conformance/fixtures/registry/mewa/apigateway-cors/2.0.1/fixture.json create mode 100644 conformance/fixtures/registry/mewa/apigateway-cors/2.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/mewa/apigateway-cors/2.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/mewa/apigateway-cors/2.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/LICENSE create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-custom-domain/LICENSE create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-custom-domain/fixture.json create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-custom-domain/input/main.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-existing-cloudfront/LICENSE create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-existing-cloudfront/fixture.json create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-existing-cloudfront/input/main.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-next-js-export/LICENSE create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-next-js-export/fixture.json create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-next-js-export/input/main.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-next-js/LICENSE create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-next-js/fixture.json create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-next-js/input/main.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/fixture.json create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/input/main.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/input/modules/cloudfront-cache/main.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/input/modules/cloudfront-cache/outputs.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/input/modules/cloudfront-cache/variables.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/input/modules/cloudfront-cache/versions.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/input/variables.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/input/versions.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/modules/cloudfront-cache/LICENSE create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/modules/cloudfront-cache/fixture.json create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/modules/cloudfront-cache/input/main.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/modules/cloudfront-cache/input/outputs.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/modules/cloudfront-cache/input/variables.tf create mode 100644 conformance/fixtures/registry/milliHQ/next-js-image-optimization/12.1.3/modules/cloudfront-cache/input/versions.tf create mode 100644 conformance/fixtures/registry/mineiros-io/s3-bucket/0.6.0/LICENSE create mode 100644 conformance/fixtures/registry/mineiros-io/s3-bucket/0.6.0/examples/secure-s3-bucket/LICENSE create mode 100644 conformance/fixtures/registry/mineiros-io/s3-bucket/0.6.0/examples/secure-s3-bucket/fixture.json create mode 100644 conformance/fixtures/registry/mineiros-io/s3-bucket/0.6.0/examples/secure-s3-bucket/input/main.tf create mode 100644 conformance/fixtures/registry/mineiros-io/s3-bucket/0.6.0/fixture.json create mode 100644 conformance/fixtures/registry/mineiros-io/s3-bucket/0.6.0/input/main.tf create mode 100644 conformance/fixtures/registry/mineiros-io/s3-bucket/0.6.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/mineiros-io/s3-bucket/0.6.0/input/variables.tf create mode 100644 conformance/fixtures/registry/mineiros-io/s3-bucket/0.6.0/input/versions.tf create mode 100644 conformance/fixtures/registry/mongodb/ecs-task-definition/2.1.5/LICENSE create mode 100644 conformance/fixtures/registry/mongodb/ecs-task-definition/2.1.5/fixture.json create mode 100644 conformance/fixtures/registry/mongodb/ecs-task-definition/2.1.5/input/main.tf create mode 100644 conformance/fixtures/registry/mongodb/ecs-task-definition/2.1.5/input/outputs.tf create mode 100644 conformance/fixtures/registry/mongodb/ecs-task-definition/2.1.5/input/variables.tf create mode 100644 conformance/fixtures/registry/mongodb/ecs-task-definition/2.1.5/input/versions.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/LICENSE create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/fixture.json create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/input/cloudwatch_event_rules.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/input/cloudwatch_logs.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/input/data.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/input/event_source_mappings.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/input/iam.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/input/main.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/input/sns_subscriptions.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/input/variables.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/input/versions.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/LICENSE create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/fixture.json create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/input/codebuild.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/input/codedeploy.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/input/data.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/input/iam_codebuild.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/input/iam_codedeploy.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/input/iam_codepipeline.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/input/iam_trigger.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/input/main.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/input/notification.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/input/outputs.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/input/trigger_ecr.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/input/trigger_s3.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/input/variables.tf create mode 100644 conformance/fixtures/registry/moritzzimmer/lambda/8.6.0/modules/deployment/input/versions.tf create mode 100644 conformance/fixtures/registry/notespacejp/cloudfront-functions-basic-auth/1.1.1/LICENSE create mode 100644 conformance/fixtures/registry/notespacejp/cloudfront-functions-basic-auth/1.1.1/fixture.json create mode 100644 conformance/fixtures/registry/notespacejp/cloudfront-functions-basic-auth/1.1.1/input/main.tf create mode 100644 conformance/fixtures/registry/notespacejp/cloudfront-functions-basic-auth/1.1.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/notespacejp/cloudfront-functions-basic-auth/1.1.1/input/variables.tf create mode 100644 conformance/fixtures/registry/notespacejp/cloudfront-functions-basic-auth/1.1.1/input/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/remote-state-s3-backend/1.6.1/LICENSE create mode 100644 conformance/fixtures/registry/nozaq/remote-state-s3-backend/1.6.1/fixture.json create mode 100644 conformance/fixtures/registry/nozaq/remote-state-s3-backend/1.6.1/input/bucket.tf create mode 100644 conformance/fixtures/registry/nozaq/remote-state-s3-backend/1.6.1/input/dynamo.tf create mode 100644 conformance/fixtures/registry/nozaq/remote-state-s3-backend/1.6.1/input/main.tf create mode 100644 conformance/fixtures/registry/nozaq/remote-state-s3-backend/1.6.1/input/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/remote-state-s3-backend/1.6.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/remote-state-s3-backend/1.6.1/input/policy.tf create mode 100644 conformance/fixtures/registry/nozaq/remote-state-s3-backend/1.6.1/input/replica.tf create mode 100644 conformance/fixtures/registry/nozaq/remote-state-s3-backend/1.6.1/input/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/LICENSE create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/fixture.json create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/analyzer_baselines.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/bucket.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/config_baselines.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/ebs_baselines.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/guardduty_baselines.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/alarm-baseline/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/alarm-baseline/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/alarm-baseline/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/alarm-baseline/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/alarm-baseline/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/analyzer-baseline/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/analyzer-baseline/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/analyzer-baseline/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/analyzer-baseline/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/analyzer-baseline/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/cloudtrail-baseline/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/cloudtrail-baseline/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/cloudtrail-baseline/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/cloudtrail-baseline/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/cloudtrail-baseline/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/config-baseline/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/config-baseline/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/config-baseline/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/config-baseline/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/config-baseline/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/ebs-baseline/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/ebs-baseline/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/ebs-baseline/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/ebs-baseline/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/ebs-baseline/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/guardduty-baseline/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/guardduty-baseline/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/guardduty-baseline/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/guardduty-baseline/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/guardduty-baseline/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/iam-baseline/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/iam-baseline/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/iam-baseline/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/iam-baseline/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/s3-baseline/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/s3-baseline/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/s3-baseline/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/s3-baseline/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/secure-bucket/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/secure-bucket/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/secure-bucket/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/secure-bucket/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/secure-bucket/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/securityhub-baseline/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/securityhub-baseline/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/securityhub-baseline/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/securityhub-baseline/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/securityhub-baseline/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/vpc-baseline/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/vpc-baseline/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/vpc-baseline/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/vpc-baseline/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/modules/vpc-baseline/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/securityhub_baselines.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/input/vpc_baselines.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/alarm-baseline/LICENSE create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/alarm-baseline/fixture.json create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/alarm-baseline/input/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/alarm-baseline/input/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/alarm-baseline/input/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/alarm-baseline/input/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/alarm-baseline/input/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/analyzer-baseline/LICENSE create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/analyzer-baseline/fixture.json create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/analyzer-baseline/input/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/analyzer-baseline/input/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/analyzer-baseline/input/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/analyzer-baseline/input/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/analyzer-baseline/input/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/cloudtrail-baseline/LICENSE create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/cloudtrail-baseline/fixture.json create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/cloudtrail-baseline/input/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/cloudtrail-baseline/input/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/cloudtrail-baseline/input/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/cloudtrail-baseline/input/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/cloudtrail-baseline/input/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/config-baseline/LICENSE create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/config-baseline/fixture.json create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/config-baseline/input/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/config-baseline/input/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/config-baseline/input/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/config-baseline/input/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/config-baseline/input/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/ebs-baseline/LICENSE create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/ebs-baseline/fixture.json create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/ebs-baseline/input/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/ebs-baseline/input/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/ebs-baseline/input/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/ebs-baseline/input/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/ebs-baseline/input/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/guardduty-baseline/LICENSE create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/guardduty-baseline/fixture.json create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/guardduty-baseline/input/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/guardduty-baseline/input/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/guardduty-baseline/input/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/guardduty-baseline/input/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/guardduty-baseline/input/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/iam-baseline/LICENSE create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/iam-baseline/fixture.json create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/iam-baseline/input/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/iam-baseline/input/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/iam-baseline/input/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/iam-baseline/input/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/s3-baseline/LICENSE create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/s3-baseline/fixture.json create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/s3-baseline/input/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/s3-baseline/input/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/s3-baseline/input/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/s3-baseline/input/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/secure-bucket/LICENSE create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/secure-bucket/fixture.json create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/secure-bucket/input/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/secure-bucket/input/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/secure-bucket/input/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/secure-bucket/input/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/secure-bucket/input/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/securityhub-baseline/LICENSE create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/securityhub-baseline/fixture.json create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/securityhub-baseline/input/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/securityhub-baseline/input/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/securityhub-baseline/input/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/securityhub-baseline/input/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/securityhub-baseline/input/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/vpc-baseline/LICENSE create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/vpc-baseline/fixture.json create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/vpc-baseline/input/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/vpc-baseline/input/migrations.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/vpc-baseline/input/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/vpc-baseline/input/variables.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/modules/vpc-baseline/input/versions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/test/fixtures/simple_registry/LICENSE create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/test/fixtures/simple_registry/fixture.json create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/test/fixtures/simple_registry/input/main.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/test/fixtures/simple_registry/input/outputs.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/test/fixtures/simple_registry/input/regions.tf create mode 100644 conformance/fixtures/registry/nozaq/secure-baseline/2.1.0/test/fixtures/simple_registry/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/cloudwatch-logs-subscription/0.6.1/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/cloudwatch-logs-subscription/0.6.1/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/cloudwatch-logs-subscription/0.6.1/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/cloudwatch-logs-subscription/0.6.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/cloudwatch-logs-subscription/0.6.1/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/cloudwatch-logs-subscription/0.6.1/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/infrastructure/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/infrastructure/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/infrastructure/input/backend.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/infrastructure/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/infrastructure/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/infrastructure/input/providers.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/infrastructure/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/infrastructure/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/input/cloudtrail.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/input/eventbridge.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/input/firehose.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/input/lambda.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/input/s3.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/input/subscription.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/cloudtrail/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/cloudtrail/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/cloudtrail/input/cloudtrail.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/cloudtrail/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/cloudtrail/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/cloudtrail/input/s3.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/cloudtrail/input/sns.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/cloudtrail/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/cloudtrail/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/config/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/config/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/config/input/alias.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/config/input/config.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/config/input/iam.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/config/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/config/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/config/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/config/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/configsubscription/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/configsubscription/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/configsubscription/input/alias.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/configsubscription/input/change.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/configsubscription/input/delivery.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/configsubscription/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/configsubscription/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/configsubscription/input/oversized.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/configsubscription/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/configsubscription/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/externalrole/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/externalrole/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/externalrole/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/externalrole/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/externalrole/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/externalrole/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/sam_asset/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/sam_asset/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/sam_asset/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/sam_asset/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/sam_asset/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/sam_asset/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/s3_bucket/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/s3_bucket/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/s3_bucket/input/kms.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/s3_bucket/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/s3_bucket/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/s3_bucket/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/s3_bucket/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/setup/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/setup/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/setup/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/setup/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/setup/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/setup/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/sqs_queue/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/sqs_queue/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/sqs_queue/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/sqs_queue/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/sqs_queue/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/collection/4.2.0/modules/testing/sqs_queue/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/cloudwatch_logs_subscription/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/cloudwatch_logs_subscription/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/cloudwatch_logs_subscription/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/cloudwatch_logs_subscription/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/cloudwatch_logs_subscription/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/cloudwatch_logs_subscription/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/cloudwatch_metrics/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/cloudwatch_metrics/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/cloudwatch_metrics/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/cloudwatch_metrics/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/cloudwatch_metrics/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/cloudwatch_metrics/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/eventbridge/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/eventbridge/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/eventbridge/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/eventbridge/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/eventbridge/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/kinesis-firehose/2.4.1/modules/eventbridge/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/cloudwatch_logs_subscription/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/cloudwatch_logs_subscription/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/cloudwatch_logs_subscription/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/cloudwatch_logs_subscription/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/cloudwatch_logs_subscription/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/cloudwatch_logs_subscription/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/cloudwatch_metrics/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/cloudwatch_metrics/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/cloudwatch_metrics/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/cloudwatch_metrics/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/cloudwatch_metrics/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/cloudwatch_metrics/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/s3_bucket/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/s3_bucket/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/s3_bucket/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/s3_bucket/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/s3_bucket/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/s3_bucket/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/s3_bucket_subscription/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/s3_bucket_subscription/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/s3_bucket_subscription/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/s3_bucket_subscription/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/s3_bucket_subscription/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/s3_bucket_subscription/input/versions.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/snapshot/LICENSE create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/snapshot/fixture.json create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/snapshot/input/main.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/snapshot/input/outputs.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/snapshot/input/variables.tf create mode 100644 conformance/fixtures/registry/observeinc/lambda/4.0.0/modules/snapshot/input/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-oidc/0.8.1/LICENSE create mode 100644 conformance/fixtures/registry/philips-labs/github-oidc/0.8.1/fixture.json create mode 100644 conformance/fixtures/registry/philips-labs/github-oidc/0.8.1/input/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-oidc/0.8.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-oidc/0.8.1/input/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-oidc/0.8.1/input/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-oidc/0.8.1/modules/provider/LICENSE create mode 100644 conformance/fixtures/registry/philips-labs/github-oidc/0.8.1/modules/provider/fixture.json create mode 100644 conformance/fixtures/registry/philips-labs/github-oidc/0.8.1/modules/provider/input/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-oidc/0.8.1/modules/provider/input/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-oidc/0.8.1/modules/provider/input/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/LICENSE create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/examples/base/LICENSE create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/examples/base/fixture.json create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/examples/base/input/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/examples/base/input/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/examples/base/input/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/examples/base/input/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/examples/base/input/vpc.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/fixture.json create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/ami-housekeeper/ami.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/ami-housekeeper/iam.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/ami-housekeeper/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/ami-housekeeper/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/ami-housekeeper/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/ami-housekeeper/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/lambda/iam.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/lambda/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/lambda/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/lambda/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/lambda/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runner-binaries-syncer/iam.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runner-binaries-syncer/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runner-binaries-syncer/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runner-binaries-syncer/runner-binaries-syncer.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runner-binaries-syncer/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runner-binaries-syncer/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/job-retry.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/job-retry/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/job-retry/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/job-retry/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/job-retry/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/logging.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/policies-lambda-common.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/policies-runner.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/pool.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/pool/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/pool/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/pool/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/pool/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/runner-config.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/scale-down.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/scale-up.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/ssm-housekeeper.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/runners/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/ssm/local.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/ssm/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/ssm/ssm.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/ssm/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/ssm/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/termination-watcher/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/termination-watcher/notification.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/termination-watcher/notification/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/termination-watcher/notification/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/termination-watcher/notification/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/termination-watcher/notification/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/termination-watcher/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/termination-watcher/termination.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/termination-watcher/termination/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/termination-watcher/termination/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/termination-watcher/termination/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/termination-watcher/termination/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/termination-watcher/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/termination-watcher/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/direct/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/direct/policies.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/direct/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/direct/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/direct/webhook.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/eventbridge/dispatcher.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/eventbridge/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/eventbridge/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/eventbridge/policies.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/eventbridge/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/eventbridge/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/eventbridge/webhook.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/modules/webhook/webhook.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/variables.ami-housekeepr.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/variables.deprecated.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ami-housekeeper/LICENSE create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ami-housekeeper/fixture.json create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ami-housekeeper/input/ami.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ami-housekeeper/input/iam.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ami-housekeeper/input/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ami-housekeeper/input/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ami-housekeeper/input/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ami-housekeeper/input/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/lambda/LICENSE create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/lambda/fixture.json create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/lambda/input/iam.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/lambda/input/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/lambda/input/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/lambda/input/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/lambda/input/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/runner-binaries-syncer/LICENSE create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/runner-binaries-syncer/fixture.json create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/runner-binaries-syncer/input/iam.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/runner-binaries-syncer/input/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/runner-binaries-syncer/input/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/runner-binaries-syncer/input/runner-binaries-syncer.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/runner-binaries-syncer/input/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/runner-binaries-syncer/input/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/runners/pool/LICENSE create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/runners/pool/fixture.json create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/runners/pool/input/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/runners/pool/input/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/runners/pool/input/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/runners/pool/input/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/setup-iam-permissions/LICENSE create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/setup-iam-permissions/fixture.json create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/setup-iam-permissions/input/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/setup-iam-permissions/input/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/setup-iam-permissions/input/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/setup-iam-permissions/input/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ssm/LICENSE create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ssm/fixture.json create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ssm/input/local.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ssm/input/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ssm/input/ssm.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ssm/input/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/ssm/input/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/LICENSE create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/direct/LICENSE create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/direct/fixture.json create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/direct/input/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/direct/input/policies.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/direct/input/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/direct/input/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/direct/input/webhook.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/eventbridge/LICENSE create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/eventbridge/fixture.json create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/eventbridge/input/dispatcher.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/eventbridge/input/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/eventbridge/input/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/eventbridge/input/policies.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/eventbridge/input/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/eventbridge/input/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/eventbridge/input/webhook.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/fixture.json create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/direct/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/direct/policies.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/direct/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/direct/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/direct/webhook.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/eventbridge/dispatcher.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/eventbridge/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/eventbridge/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/eventbridge/policies.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/eventbridge/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/eventbridge/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/eventbridge/webhook.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/main.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/outputs.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/variables.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/versions.tf create mode 100644 conformance/fixtures/registry/philips-labs/github-runner/6.1.0/modules/webhook/input/webhook.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/LICENSE create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/audit_logs/LICENSE create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/audit_logs/fixture.json create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/audit_logs/input/main.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/audit_logs/input/variables.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/audit_logs/input/versions.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/audit_logs_multi_region/LICENSE create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/audit_logs_multi_region/fixture.json create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/audit_logs_multi_region/input/main.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/audit_logs_multi_region/input/variables.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/audit_logs_multi_region/input/versions.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/basic/LICENSE create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/basic/fixture.json create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/basic/input/main.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/basic/input/variables.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/basic/input/versions.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/ecr_image_pull/LICENSE create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/ecr_image_pull/fixture.json create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/ecr_image_pull/input/main.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/ecr_image_pull/input/variables.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/examples/ecr_image_pull/input/versions.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/fixture.json create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/input/actions.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/input/data.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/input/eks_audit_logs.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/input/main.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/input/variables.tf create mode 100644 conformance/fixtures/registry/rad-security/rad-security-connect/0.11.0/input/versions.tf create mode 100644 conformance/fixtures/registry/rallyware/cognito-user-pool-client/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/rallyware/cognito-user-pool-client/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/rallyware/cognito-user-pool-client/0.3.0/input/context.tf create mode 100644 conformance/fixtures/registry/rallyware/cognito-user-pool-client/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/rallyware/cognito-user-pool-client/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/rallyware/cognito-user-pool-client/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/rallyware/cognito-user-pool-client/0.3.0/input/versions.tf create mode 100644 conformance/fixtures/registry/rallyware/eks-iam-role/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/rallyware/eks-iam-role/0.3.0/examples/basic/LICENSE create mode 100644 conformance/fixtures/registry/rallyware/eks-iam-role/0.3.0/examples/basic/fixture.json create mode 100644 conformance/fixtures/registry/rallyware/eks-iam-role/0.3.0/examples/basic/input/main.tf create mode 100644 conformance/fixtures/registry/rallyware/eks-iam-role/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/rallyware/eks-iam-role/0.3.0/input/context.tf create mode 100644 conformance/fixtures/registry/rallyware/eks-iam-role/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/rallyware/eks-iam-role/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/rallyware/eks-iam-role/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/rallyware/eks-iam-role/0.3.0/input/versions.tf create mode 100644 conformance/fixtures/registry/reegnz/oidc-provider-data/0.0.4/LICENSE create mode 100644 conformance/fixtures/registry/reegnz/oidc-provider-data/0.0.4/examples/eks-oidc-role/LICENSE create mode 100644 conformance/fixtures/registry/reegnz/oidc-provider-data/0.0.4/examples/eks-oidc-role/fixture.json create mode 100644 conformance/fixtures/registry/reegnz/oidc-provider-data/0.0.4/examples/eks-oidc-role/input/main.tf create mode 100644 conformance/fixtures/registry/reegnz/oidc-provider-data/0.0.4/examples/eks-oidc-role/input/outputs.tf create mode 100644 conformance/fixtures/registry/reegnz/oidc-provider-data/0.0.4/examples/eks-oidc-role/input/variables.tf create mode 100644 conformance/fixtures/registry/reegnz/oidc-provider-data/0.0.4/examples/eks-oidc-role/input/versions.tf create mode 100644 conformance/fixtures/registry/reegnz/oidc-provider-data/0.0.4/fixture.json create mode 100644 conformance/fixtures/registry/reegnz/oidc-provider-data/0.0.4/input/main.tf create mode 100644 conformance/fixtures/registry/reegnz/oidc-provider-data/0.0.4/input/outputs.tf create mode 100644 conformance/fixtures/registry/reegnz/oidc-provider-data/0.0.4/input/variables.tf create mode 100644 conformance/fixtures/registry/reegnz/oidc-provider-data/0.0.4/input/versions.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-aurora/5.0.0/LICENSE create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-aurora/5.0.0/fixture.json create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-aurora/5.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-aurora/5.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-aurora/5.0.0/input/terraform.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-aurora/5.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-kms/2.2.0/LICENSE create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-kms/2.2.0/fixture.json create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-kms/2.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-kms/2.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-kms/2.2.0/input/terraform.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-kms/2.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-lambda/4.1.0/LICENSE create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-lambda/4.1.0/fixture.json create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-lambda/4.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-lambda/4.1.0/input/moved.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-lambda/4.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-lambda/4.1.0/input/terraform.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-lambda/4.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-role/0.5.3/LICENSE create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-role/0.5.3/fixture.json create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-role/0.5.3/input/main.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-role/0.5.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-role/0.5.3/input/terraform.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-role/0.5.3/input/variables.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-s3/3.0.0/LICENSE create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-s3/3.0.0/fixture.json create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-s3/3.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-s3/3.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-s3/3.0.0/input/terraform.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-s3/3.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-user/1.0.0/LICENSE create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-user/1.0.0/fixture.json create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-user/1.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-user/1.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-user/1.0.0/input/terraform.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-user/1.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/LICENSE create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/fixture.json create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/input/main.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/input/modules/auth/main.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/input/modules/auth/outputs.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/input/modules/auth/terraform.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/input/modules/auth/variables.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/input/moved.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/input/terraform.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/input/variables.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/modules/auth/LICENSE create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/modules/auth/fixture.json create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/modules/auth/input/main.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/modules/auth/input/outputs.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/modules/auth/input/terraform.tf create mode 100644 conformance/fixtures/registry/schubergphilis/mcaf-workspace/4.1.1/modules/auth/input/variables.tf create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/LICENSE create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/examples/cloudwatch_log_sync/LICENSE create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/examples/cloudwatch_log_sync/fixture.json create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/examples/cloudwatch_log_sync/input/main.tf create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/examples/full_integration/LICENSE create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/examples/full_integration/fixture.json create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/examples/full_integration/input/main.tf create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/fixture.json create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/input/locals.tf create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/input/logs_monitoring.tf create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/input/logs_monitoring_cloudtrail.tf create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/input/logs_monitoring_cloudwatch_log.tf create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/input/logs_monitoring_elb.tf create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/input/vars.tf create mode 100644 conformance/fixtures/registry/scribd/datadog/4.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/snowplow-devops/dynamodb-autoscaling/0.2.2/LICENSE create mode 100644 conformance/fixtures/registry/snowplow-devops/dynamodb-autoscaling/0.2.2/fixture.json create mode 100644 conformance/fixtures/registry/snowplow-devops/dynamodb-autoscaling/0.2.2/input/main.tf create mode 100644 conformance/fixtures/registry/snowplow-devops/dynamodb-autoscaling/0.2.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/snowplow-devops/dynamodb-autoscaling/0.2.2/input/variables.tf create mode 100644 conformance/fixtures/registry/snowplow-devops/dynamodb-autoscaling/0.2.2/input/versions.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/LICENSE create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/fixture.json create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/bucket.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/cloudfront.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/iam.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/lambdas.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/modules/cloudfront/acm.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/modules/cloudfront/cloudfront.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/modules/cloudfront/main.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/modules/cloudfront/outputs.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/modules/cloudfront/variables.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/modules/lambdas/main.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/modules/lambdas/outputs.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/modules/lambdas/tachyon.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/modules/lambdas/variables.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/modules/cloudfront/LICENSE create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/modules/cloudfront/fixture.json create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/modules/cloudfront/input/acm.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/modules/cloudfront/input/cloudfront.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/modules/cloudfront/input/main.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/modules/cloudfront/input/outputs.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/modules/cloudfront/input/variables.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/modules/lambdas/LICENSE create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/modules/lambdas/fixture.json create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/modules/lambdas/input/main.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/modules/lambdas/input/outputs.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/modules/lambdas/input/tachyon.tf create mode 100644 conformance/fixtures/registry/sprylab/purple-s3-cloudfront/0.3.0/modules/lambdas/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-fargate-profiles/LICENSE create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-fargate-profiles/fixture.json create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-fargate-profiles/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-fargate-profiles/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-fargate-profiles/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-fargate-profiles/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-managed-node-groups/LICENSE create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-managed-node-groups/fixture.json create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-managed-node-groups/input/data.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-managed-node-groups/input/iam.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-managed-node-groups/input/locals.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-managed-node-groups/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-managed-node-groups/input/managed-launch-templates.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-managed-node-groups/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-managed-node-groups/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-managed-node-groups/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-teams/LICENSE create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-teams/fixture.json create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-teams/input/data.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-teams/input/locals.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-teams/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-teams/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-teams/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-teams/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-kms/LICENSE create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-kms/fixture.json create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-kms/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-kms/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-kms/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-kms/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/irsa/LICENSE create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/irsa/fixture.json create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/irsa/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/irsa/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/irsa/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/irsa/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/kubernetes-addons/aws-kube-proxy/LICENSE create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/kubernetes-addons/aws-kube-proxy/fixture.json create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/kubernetes-addons/aws-kube-proxy/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/kubernetes-addons/aws-kube-proxy/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/kubernetes-addons/aws-kube-proxy/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/kubernetes-addons/aws-kube-proxy/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/launch-templates/LICENSE create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/launch-templates/fixture.json create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/launch-templates/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/launch-templates/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/launch-templates/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/launch-templates/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/addons/efs/LICENSE create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/addons/efs/fixture.json create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/addons/efs/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/addons/efs/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/addons/efs/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/addons/efs/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/examples/complete/LICENSE create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/examples/complete/fixture.json create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/examples/complete/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/examples/complete/input/output.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/examples/complete/input/provider.tf create mode 100644 conformance/fixtures/registry/squareops/eks-bootstrap/3.1.1/examples/complete/input/version.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/LICENSE create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/examples/complete-ipv6/LICENSE create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/examples/complete-ipv6/fixture.json create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/examples/complete-ipv6/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/examples/complete-ipv6/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/examples/complete-ipv6/input/provider.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/examples/complete-ipv6/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/examples/complete/LICENSE create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/examples/complete/fixture.json create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/examples/complete/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/examples/complete/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/examples/complete/input/provider.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/examples/complete/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/fixture.json create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/modules/fargate-profile/LICENSE create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/modules/fargate-profile/fixture.json create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/modules/fargate-profile/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/modules/fargate-profile/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/modules/fargate-profile/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/modules/managed-nodegroup/LICENSE create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/modules/managed-nodegroup/fixture.json create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/modules/managed-nodegroup/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/modules/managed-nodegroup/input/output.tf create mode 100644 conformance/fixtures/registry/squareops/eks/5.4.4/modules/managed-nodegroup/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/LICENSE create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/complete-cluster-mode/LICENSE create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/complete-cluster-mode/fixture.json create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/complete-cluster-mode/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/complete-cluster-mode/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/complete-cluster-mode/input/provider.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/complete-cluster-mode/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/complete/LICENSE create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/complete/fixture.json create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/complete/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/complete/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/complete/input/provider.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/complete/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/standalone/LICENSE create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/standalone/fixture.json create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/standalone/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/standalone/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/standalone/input/provider.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/examples/standalone/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/fixture.json create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/input/lambda/data.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/input/lambda/iam.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/input/lambda/main.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/input/lambda/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/input/lambda/variables.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/lambda/LICENSE create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/lambda/fixture.json create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/lambda/input/data.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/lambda/input/iam.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/lambda/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/lambda/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/elasticache-redis/2.0.0/lambda/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/keypair/1.0.4/LICENSE create mode 100644 conformance/fixtures/registry/squareops/keypair/1.0.4/examples/complete/LICENSE create mode 100644 conformance/fixtures/registry/squareops/keypair/1.0.4/examples/complete/fixture.json create mode 100644 conformance/fixtures/registry/squareops/keypair/1.0.4/examples/complete/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/keypair/1.0.4/examples/complete/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/keypair/1.0.4/examples/complete/input/provider.tf create mode 100644 conformance/fixtures/registry/squareops/keypair/1.0.4/examples/complete/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/keypair/1.0.4/fixture.json create mode 100644 conformance/fixtures/registry/squareops/keypair/1.0.4/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/keypair/1.0.4/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/keypair/1.0.4/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/keypair/1.0.4/input/version.tf create mode 100644 conformance/fixtures/registry/squareops/tfstate/1.1.1/LICENSE create mode 100644 conformance/fixtures/registry/squareops/tfstate/1.1.1/fixture.json create mode 100644 conformance/fixtures/registry/squareops/tfstate/1.1.1/input/logging.tf create mode 100644 conformance/fixtures/registry/squareops/tfstate/1.1.1/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/tfstate/1.1.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/tfstate/1.1.1/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/tfstate/1.1.1/input/versions.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/complete-vpc-with-vpn/LICENSE create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/complete-vpc-with-vpn/fixture.json create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/complete-vpc-with-vpn/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/complete-vpc-with-vpn/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/complete-vpc-with-vpn/input/providers.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/ipam-managed-vpc/LICENSE create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/ipam-managed-vpc/fixture.json create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/ipam-managed-vpc/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/ipam-managed-vpc/input/output.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/ipam-managed-vpc/input/providers.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/simple-vpc/LICENSE create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/simple-vpc/fixture.json create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/simple-vpc/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/simple-vpc/input/output.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/simple-vpc/input/providers.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-dualstack/LICENSE create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-dualstack/fixture.json create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-dualstack/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-dualstack/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-dualstack/input/providers.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-native-ipv6/LICENSE create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-native-ipv6/fixture.json create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-native-ipv6/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-native-ipv6/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-native-ipv6/input/providers.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-peering/LICENSE create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-peering/fixture.json create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-peering/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-peering/input/output.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-peering/input/provider.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-peering/vpc-requester-accepter/LICENSE create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-peering/vpc-requester-accepter/fixture.json create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-peering/vpc-requester-accepter/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-peering/vpc-requester-accepter/input/providers.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-private-subnet/LICENSE create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-private-subnet/fixture.json create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-private-subnet/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-private-subnet/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-private-subnet/input/providers.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-secondary-cidr/LICENSE create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-secondary-cidr/fixture.json create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-secondary-cidr/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-secondary-cidr/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/examples/vpc-with-secondary-cidr/input/providers.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/modules/vpc_peering/LICENSE create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/modules/vpc_peering/fixture.json create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/modules/vpc_peering/input/main.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/modules/vpc_peering/input/outputs.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/modules/vpc_peering/input/variables.tf create mode 100644 conformance/fixtures/registry/squareops/vpc/3.4.1/modules/vpc_peering/input/versions.tf create mode 100644 conformance/fixtures/registry/squidfunk/api-gateway-enable-cors/0.3.3/LICENSE create mode 100644 conformance/fixtures/registry/squidfunk/api-gateway-enable-cors/0.3.3/fixture.json create mode 100644 conformance/fixtures/registry/squidfunk/api-gateway-enable-cors/0.3.3/input/headers.tf create mode 100644 conformance/fixtures/registry/squidfunk/api-gateway-enable-cors/0.3.3/input/main.tf create mode 100644 conformance/fixtures/registry/squidfunk/api-gateway-enable-cors/0.3.3/input/variables.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/resource-group/LICENSE create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/resource-group/fixture.json create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/resource-group/input/main.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/resource-group/input/outputs.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/resource-group/input/telemetry.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/resource-group/input/variables.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/resource-group/input/versions.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/LICENSE create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/fixture.json create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/input/access-control.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/input/lifecycle.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/input/logging.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/input/main.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/input/migrations.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/input/outputs.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/input/policies.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/input/request-payment.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/input/resource-group.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/input/telemetry.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/input/transfer-acceleration.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/input/variables.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket/input/versions.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/sqs-aws-event-queue/LICENSE create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/sqs-aws-event-queue/fixture.json create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/sqs-aws-event-queue/input/main.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/sqs-aws-event-queue/input/outputs.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/sqs-aws-event-queue/input/resource-group.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/sqs-aws-event-queue/input/telemetry.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/sqs-aws-event-queue/input/variables.tf create mode 100644 conformance/fixtures/registry/tedilabs/misc/0.13.1/modules/sqs-aws-event-queue/input/versions.tf create mode 100644 conformance/fixtures/registry/telia-oss/ecr/3.0.0/LICENSE create mode 100644 conformance/fixtures/registry/telia-oss/ecr/3.0.0/fixture.json create mode 100644 conformance/fixtures/registry/telia-oss/ecr/3.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/telia-oss/ecr/3.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/telia-oss/ecr/3.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/telia-oss/ecs-fargate/7.3.1/LICENSE create mode 100644 conformance/fixtures/registry/telia-oss/ecs-fargate/7.3.1/fixture.json create mode 100644 conformance/fixtures/registry/telia-oss/ecs-fargate/7.3.1/input/main.tf create mode 100644 conformance/fixtures/registry/telia-oss/ecs-fargate/7.3.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/telia-oss/ecs-fargate/7.3.1/input/policies.tf create mode 100644 conformance/fixtures/registry/telia-oss/ecs-fargate/7.3.1/input/variables.tf create mode 100644 conformance/fixtures/registry/telia-oss/ecs-fargate/7.3.1/input/versions.tf create mode 100644 conformance/fixtures/registry/telia-oss/loadbalancer/4.2.1/LICENSE create mode 100644 conformance/fixtures/registry/telia-oss/loadbalancer/4.2.1/fixture.json create mode 100644 conformance/fixtures/registry/telia-oss/loadbalancer/4.2.1/input/main.tf create mode 100644 conformance/fixtures/registry/telia-oss/loadbalancer/4.2.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/telia-oss/loadbalancer/4.2.1/input/variables.tf create mode 100644 conformance/fixtures/registry/telia-oss/loadbalancer/4.2.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/acm/6.3.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/acm/6.3.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/acm/6.3.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/acm/6.3.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/acm/6.3.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/acm/6.3.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/alb/10.5.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/alb/10.5.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/alb/10.5.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/alb/10.5.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/alb/10.5.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/alb/10.5.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/alb/10.5.1/modules/lb_trust_store/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/alb/10.5.1/modules/lb_trust_store/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/alb/10.5.1/modules/lb_trust_store/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/alb/10.5.1/modules/lb_trust_store/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/alb/10.5.1/modules/lb_trust_store/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/alb/10.5.1/modules/lb_trust_store/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/apigateway-v2/6.1.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/apigateway-v2/6.1.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/apigateway-v2/6.1.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/apigateway-v2/6.1.1/input/migrations.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/apigateway-v2/6.1.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/apigateway-v2/6.1.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/apigateway-v2/6.1.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/app-runner/1.2.3/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/app-runner/1.2.3/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/app-runner/1.2.3/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/app-runner/1.2.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/app-runner/1.2.3/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/app-runner/1.2.3/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/appsync/4.1.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/appsync/4.1.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/appsync/4.1.1/input/iam.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/appsync/4.1.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/appsync/4.1.1/input/migrations.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/appsync/4.1.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/appsync/4.1.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/appsync/4.1.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/atlantis/5.1.2/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/atlantis/5.1.2/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/atlantis/5.1.2/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/atlantis/5.1.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/atlantis/5.1.2/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/atlantis/5.1.2/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/autoscaling/9.3.2/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/autoscaling/9.3.2/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/autoscaling/9.3.2/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/autoscaling/9.3.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/autoscaling/9.3.2/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/autoscaling/9.3.2/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/batch/3.0.3/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/batch/3.0.3/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/batch/3.0.3/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/batch/3.0.3/input/migrations.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/batch/3.0.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/batch/3.0.3/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/batch/3.0.3/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudfront/6.7.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudfront/6.7.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudfront/6.7.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudfront/6.7.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudfront/6.7.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudfront/6.7.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudfront/6.7.1/modules/trust_store/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudfront/6.7.1/modules/trust_store/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudfront/6.7.1/modules/trust_store/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudfront/6.7.1/modules/trust_store/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudfront/6.7.1/modules/trust_store/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudfront/6.7.1/modules/trust_store/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_cloudwatch_log_group/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_cloudwatch_log_group/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_cloudwatch_log_group/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_cloudwatch_log_group/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_cloudwatch_log_group/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_cloudwatch_log_group/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_kms_key/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_kms_key/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_kms_key/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_kms_key/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_kms_key/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_kms_key/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_lambda_function/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_lambda_function/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_lambda_function/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_lambda_function/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_lambda_function/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_lambda_function/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_sns_topic/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_sns_topic/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_sns_topic/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_sns_topic/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_sns_topic/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_sns_topic/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/cis-alarms/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/cis-alarms/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/cis-alarms/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/cis-alarms/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/cis-alarms/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/cis-alarms/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/composite-alarm/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/composite-alarm/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/composite-alarm/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/composite-alarm/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/composite-alarm/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/composite-alarm/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-account-policy/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-account-policy/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-account-policy/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-account-policy/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-account-policy/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-account-policy/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-anomaly-detector/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-anomaly-detector/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-anomaly-detector/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-anomaly-detector/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-anomaly-detector/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-anomaly-detector/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-data-protection-policy/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-data-protection-policy/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-data-protection-policy/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-data-protection-policy/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-data-protection-policy/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-data-protection-policy/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-group/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-group/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-group/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-group/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-group/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-group/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-metric-filter/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-metric-filter/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-metric-filter/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-metric-filter/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-metric-filter/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-metric-filter/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-stream/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-stream/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-stream/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-stream/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-stream/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-stream/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-subscription-filter/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-subscription-filter/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-subscription-filter/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-subscription-filter/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-subscription-filter/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-subscription-filter/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-alarm/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-alarm/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-alarm/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-alarm/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-alarm/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-alarm/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-alarms-by-multiple-dimensions/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-alarms-by-multiple-dimensions/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-alarms-by-multiple-dimensions/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-alarms-by-multiple-dimensions/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-alarms-by-multiple-dimensions/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-alarms-by-multiple-dimensions/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-stream/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-stream/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-stream/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-stream/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-stream/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-stream/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/query-definition/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/query-definition/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/query-definition/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/query-definition/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/query-definition/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/cloudwatch/5.7.3/modules/query-definition/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/datadog-forwarders/7.2.0/modules/rds_enhanced_monitoring_forwarder/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/datadog-forwarders/7.2.0/modules/rds_enhanced_monitoring_forwarder/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/datadog-forwarders/7.2.0/modules/rds_enhanced_monitoring_forwarder/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/datadog-forwarders/7.2.0/modules/rds_enhanced_monitoring_forwarder/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/datadog-forwarders/7.2.0/modules/rds_enhanced_monitoring_forwarder/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/datadog-forwarders/7.2.0/modules/rds_enhanced_monitoring_forwarder/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/datadog-forwarders/7.2.0/modules/vpc_flow_log_forwarder/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/datadog-forwarders/7.2.0/modules/vpc_flow_log_forwarder/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/datadog-forwarders/7.2.0/modules/vpc_flow_log_forwarder/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/datadog-forwarders/7.2.0/modules/vpc_flow_log_forwarder/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/datadog-forwarders/7.2.0/modules/vpc_flow_log_forwarder/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/datadog-forwarders/7.2.0/modules/vpc_flow_log_forwarder/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/dms/2.6.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/dms/2.6.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/dms/2.6.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/dms/2.6.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/dms/2.6.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/dms/2.6.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/dynamodb-table/5.5.2/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/dynamodb-table/5.5.2/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/dynamodb-table/5.5.2/input/autoscaling.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/dynamodb-table/5.5.2/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/dynamodb-table/5.5.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/dynamodb-table/5.5.2/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/dynamodb-table/5.5.2/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ec2-instance/6.4.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ec2-instance/6.4.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ec2-instance/6.4.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ec2-instance/6.4.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ec2-instance/6.4.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ec2-instance/6.4.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecr/3.2.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecr/3.2.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecr/3.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecr/3.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecr/3.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecr/3.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecr/3.2.0/modules/repository-template/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecr/3.2.0/modules/repository-template/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecr/3.2.0/modules/repository-template/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecr/3.2.0/modules/repository-template/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecr/3.2.0/modules/repository-template/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecr/3.2.0/modules/repository-template/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/modules/cluster/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/modules/cluster/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/modules/cluster/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/modules/cluster/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/modules/container-definition/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/modules/container-definition/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/modules/container-definition/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/modules/container-definition/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/modules/service/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/modules/service/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/modules/service/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/modules/service/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/cluster/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/cluster/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/cluster/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/cluster/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/cluster/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/cluster/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/container-definition/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/container-definition/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/container-definition/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/container-definition/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/container-definition/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/container-definition/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/express-service/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/express-service/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/express-service/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/express-service/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/express-service/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ecs/7.6.1/modules/express-service/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/efs/2.2.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/efs/2.2.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/efs/2.2.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/efs/2.2.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/efs/2.2.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/efs/2.2.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/amazon_managed_service_prometheus.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/aws_appmesh.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/aws_cloudwatch_observability.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/aws_ebs_csi.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/aws_efs_csi.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/aws_fsx_lustre_csi.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/aws_gateway_controller.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/aws_lb_controller.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/aws_node_termination_handler.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/aws_privateca_issuer.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/aws_vpc_cni.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/cert_manager.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/cluster_autoscaler.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/external_dns.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/external_secrets.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/mountpoint_s3_csi.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/pganalyze.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/velero.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks-pod-identity/2.10.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/eks-managed-node-group/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/eks-managed-node-group/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/eks-managed-node-group/input/eks-al2023.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/eks-managed-node-group/input/eks-bottlerocket.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/eks-managed-node-group/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/eks-managed-node-group/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/eks-managed-node-group/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/eks-managed-node-group/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/self-managed-node-group/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/self-managed-node-group/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/self-managed-node-group/input/eks-al2023.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/self-managed-node-group/input/eks-bottlerocket.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/self-managed-node-group/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/self-managed-node-group/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/self-managed-node-group/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/examples/self-managed-node-group/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/_user_data/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/_user_data/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/_user_data/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/_user_data/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/eks-managed-node-group/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/eks-managed-node-group/migrations.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/eks-managed-node-group/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/eks-managed-node-group/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/eks-managed-node-group/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/fargate-profile/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/fargate-profile/migrations.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/fargate-profile/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/fargate-profile/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/fargate-profile/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/self-managed-node-group/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/self-managed-node-group/migrations.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/self-managed-node-group/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/self-managed-node-group/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/modules/self-managed-node-group/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/node_groups.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/capability/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/capability/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/capability/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/capability/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/capability/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/capability/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/fargate-profile/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/fargate-profile/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/fargate-profile/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/fargate-profile/input/migrations.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/fargate-profile/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/fargate-profile/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/fargate-profile/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/hybrid-node-role/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/hybrid-node-role/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/hybrid-node-role/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/hybrid-node-role/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/hybrid-node-role/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/hybrid-node-role/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/karpenter/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/karpenter/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/karpenter/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/karpenter/input/migrations.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/karpenter/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/karpenter/input/policy.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/karpenter/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eks/21.29.0/modules/karpenter/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/modules/serverless-cache/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/modules/serverless-cache/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/modules/serverless-cache/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/modules/serverless-cache/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/modules/serverless-cache/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/modules/serverless-cache/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/modules/user-group/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/modules/user-group/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/modules/user-group/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/modules/user-group/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/modules/user-group/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elasticache/1.11.2/modules/user-group/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/input/modules/elb/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/input/modules/elb/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/input/modules/elb/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/input/modules/elb/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/input/modules/elb_attachment/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/input/modules/elb_attachment/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/input/modules/elb_attachment/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/input/modules/elb_attachment/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/modules/elb/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/modules/elb/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/modules/elb/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/modules/elb/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/modules/elb/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/modules/elb/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/modules/elb_attachment/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/modules/elb_attachment/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/modules/elb_attachment/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/modules/elb_attachment/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/modules/elb_attachment/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/elb/4.0.3/modules/elb_attachment/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/input/migrations.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/serverless/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/serverless/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/serverless/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/serverless/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/serverless/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/serverless/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/studio/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/studio/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/studio/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/studio/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/studio/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/studio/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/virtual-cluster/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/virtual-cluster/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/virtual-cluster/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/virtual-cluster/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/virtual-cluster/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/emr/3.3.0/modules/virtual-cluster/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eventbridge/4.3.3/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eventbridge/4.3.3/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eventbridge/4.3.3/input/iam.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eventbridge/4.3.3/input/iam_pipes.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eventbridge/4.3.3/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eventbridge/4.3.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eventbridge/4.3.3/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/eventbridge/4.3.3/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/lustre/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/lustre/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/lustre/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/lustre/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/lustre/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/lustre/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/ontap/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/ontap/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/ontap/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/ontap/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/ontap/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/ontap/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/openzfs/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/openzfs/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/openzfs/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/openzfs/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/openzfs/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/openzfs/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/windows/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/windows/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/windows/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/windows/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/windows/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/fsx/1.3.2/modules/windows/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/global-accelerator/3.0.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/global-accelerator/3.0.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/global-accelerator/3.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/global-accelerator/3.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/global-accelerator/3.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/global-accelerator/3.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/global-accelerator/3.0.0/modules/custom-routing/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/global-accelerator/3.0.0/modules/custom-routing/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/global-accelerator/3.0.0/modules/custom-routing/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/global-accelerator/3.0.0/modules/custom-routing/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/global-accelerator/3.0.0/modules/custom-routing/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/global-accelerator/3.0.0/modules/custom-routing/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-account/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-account/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-account/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-account/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-account/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-account/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-group/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-group/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-group/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-group/input/migrations.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-group/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-group/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-group/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-oidc-provider/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-oidc-provider/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-oidc-provider/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-oidc-provider/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-oidc-provider/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-oidc-provider/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-policy/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-policy/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-policy/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-policy/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-policy/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-policy/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-read-only-policy/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-read-only-policy/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-read-only-policy/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-read-only-policy/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-read-only-policy/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-read-only-policy/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-role-for-service-accounts/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-role-for-service-accounts/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-role-for-service-accounts/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-role-for-service-accounts/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-role-for-service-accounts/input/policies.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-role-for-service-accounts/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-role-for-service-accounts/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-role/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-role/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-role/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-role/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-role/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-role/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-user/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-user/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-user/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-user/input/migrations.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-user/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-user/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/iam/6.8.2/modules/iam-user/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/key-pair/3.0.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/key-pair/3.0.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/key-pair/3.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/key-pair/3.0.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/key-pair/3.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/key-pair/3.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/kms/4.2.2/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/kms/4.2.2/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/kms/4.2.2/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/kms/4.2.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/kms/4.2.2/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/kms/4.2.2/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/lambda/8.12.0/modules/alias/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/lambda/8.12.0/modules/alias/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/lambda/8.12.0/modules/alias/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/lambda/8.12.0/modules/alias/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/lambda/8.12.0/modules/alias/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/lambda/8.12.0/modules/alias/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/lambda/8.12.0/modules/docker-build/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/lambda/8.12.0/modules/docker-build/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/lambda/8.12.0/modules/docker-build/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/lambda/8.12.0/modules/docker-build/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/lambda/8.12.0/modules/docker-build/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/lambda/8.12.0/modules/docker-build/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/managed-service-grafana/2.3.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/managed-service-grafana/2.3.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/managed-service-grafana/2.3.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/managed-service-grafana/2.3.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/managed-service-grafana/2.3.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/managed-service-grafana/2.3.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/memory-db/3.2.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/memory-db/3.2.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/memory-db/3.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/memory-db/3.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/memory-db/3.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/memory-db/3.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/msk-kafka-cluster/3.3.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/msk-kafka-cluster/3.3.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/msk-kafka-cluster/3.3.0/input/kafka_connect.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/msk-kafka-cluster/3.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/msk-kafka-cluster/3.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/msk-kafka-cluster/3.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/msk-kafka-cluster/3.3.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/msk-kafka-cluster/3.3.0/modules/serverless/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/msk-kafka-cluster/3.3.0/modules/serverless/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/msk-kafka-cluster/3.3.0/modules/serverless/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/msk-kafka-cluster/3.3.0/modules/serverless/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/msk-kafka-cluster/3.3.0/modules/serverless/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/msk-kafka-cluster/3.3.0/modules/serverless/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/input/modules/firewall/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/input/modules/firewall/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/input/modules/firewall/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/input/modules/firewall/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/input/modules/policy/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/input/modules/policy/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/input/modules/policy/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/input/modules/policy/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/firewall/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/firewall/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/firewall/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/firewall/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/firewall/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/firewall/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/policy/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/policy/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/policy/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/policy/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/policy/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/policy/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/rule-group/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/rule-group/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/rule-group/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/rule-group/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/rule-group/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/network-firewall/2.3.0/modules/rule-group/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/notify-slack/7.5.2/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/notify-slack/7.5.2/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/notify-slack/7.5.2/input/iam.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/notify-slack/7.5.2/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/notify-slack/7.5.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/notify-slack/7.5.2/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/notify-slack/7.5.2/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/opensearch/2.11.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/opensearch/2.11.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/opensearch/2.11.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/opensearch/2.11.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/opensearch/2.11.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/opensearch/2.11.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/opensearch/2.11.1/modules/collection/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/opensearch/2.11.1/modules/collection/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/opensearch/2.11.1/modules/collection/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/opensearch/2.11.1/modules/collection/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/opensearch/2.11.1/modules/collection/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/opensearch/2.11.1/modules/collection/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-aurora/10.4.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-aurora/10.4.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-aurora/10.4.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-aurora/10.4.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-aurora/10.4.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-aurora/10.4.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-aurora/10.4.1/modules/dsql/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-aurora/10.4.1/modules/dsql/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-aurora/10.4.1/modules/dsql/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-aurora/10.4.1/modules/dsql/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-aurora/10.4.1/modules/dsql/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-aurora/10.4.1/modules/dsql/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-proxy/4.4.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-proxy/4.4.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-proxy/4.4.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-proxy/4.4.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-proxy/4.4.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds-proxy/4.4.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_instance/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_instance/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_instance/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_instance/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_instance_role_association/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_instance_role_association/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_instance_role_association/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_instance_role_association/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_option_group/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_option_group/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_option_group/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_option_group/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_parameter_group/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_parameter_group/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_parameter_group/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_parameter_group/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_subnet_group/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_subnet_group/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_subnet_group/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/modules/db_subnet_group/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance_automated_backups_replication/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance_automated_backups_replication/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance_automated_backups_replication/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance_automated_backups_replication/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance_automated_backups_replication/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance_automated_backups_replication/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance_role_association/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance_role_association/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance_role_association/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance_role_association/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance_role_association/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_instance_role_association/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_option_group/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_option_group/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_option_group/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_option_group/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_option_group/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_option_group/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_parameter_group/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_parameter_group/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_parameter_group/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_parameter_group/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_parameter_group/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_parameter_group/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_subnet_group/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_subnet_group/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_subnet_group/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_subnet_group/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_subnet_group/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/rds/7.2.2/modules/db_subnet_group/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/redshift/7.1.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/redshift/7.1.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/redshift/7.1.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/redshift/7.1.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/redshift/7.1.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/redshift/7.1.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/delegation-sets/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/delegation-sets/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/delegation-sets/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/delegation-sets/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/delegation-sets/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/delegation-sets/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/resolver-endpoint/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/resolver-endpoint/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/resolver-endpoint/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/resolver-endpoint/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/resolver-endpoint/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/resolver-endpoint/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/resolver-firewall-rule-group/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/resolver-firewall-rule-group/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/resolver-firewall-rule-group/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/resolver-firewall-rule-group/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/resolver-firewall-rule-group/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/route53/6.5.1/modules/resolver-firewall-rule-group/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/input/modules/file-system/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/input/modules/file-system/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/input/modules/file-system/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/input/modules/file-system/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/account-public-access/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/account-public-access/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/account-public-access/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/account-public-access/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/account-public-access/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/account-public-access/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/file-system/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/file-system/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/file-system/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/file-system/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/file-system/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/file-system/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/notification/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/notification/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/notification/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/notification/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/notification/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/notification/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/object/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/object/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/object/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/object/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/object/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/object/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/table-bucket/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/table-bucket/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/table-bucket/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/table-bucket/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/table-bucket/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/table-bucket/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/vectors/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/vectors/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/vectors/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/vectors/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/vectors/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/s3-bucket/5.17.0/modules/vectors/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/secrets-manager/2.2.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/secrets-manager/2.2.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/secrets-manager/2.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/secrets-manager/2.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/secrets-manager/2.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/secrets-manager/2.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/security-group/6.0.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/security-group/6.0.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/security-group/6.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/security-group/6.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/security-group/6.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/security-group/6.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/sns/7.2.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/sns/7.2.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/sns/7.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/sns/7.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/sns/7.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/sns/7.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/sqs/5.2.2/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/sqs/5.2.2/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/sqs/5.2.2/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/sqs/5.2.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/sqs/5.2.2/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/sqs/5.2.2/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ssm-parameter/2.1.2/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ssm-parameter/2.1.2/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ssm-parameter/2.1.2/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ssm-parameter/2.1.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ssm-parameter/2.1.2/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/ssm-parameter/2.1.2/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/step-functions/5.1.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/step-functions/5.1.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/step-functions/5.1.1/input/locals.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/step-functions/5.1.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/step-functions/5.1.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/step-functions/5.1.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/step-functions/5.1.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/transit-gateway/3.3.1/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/transit-gateway/3.3.1/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/transit-gateway/3.3.1/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/transit-gateway/3.3.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/transit-gateway/3.3.1/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/transit-gateway/3.3.1/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/input/vpc-flow-logs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/modules/flow-log/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/modules/flow-log/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/modules/flow-log/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/modules/flow-log/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/modules/flow-log/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/modules/flow-log/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/modules/vpc-endpoints/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/modules/vpc-endpoints/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/modules/vpc-endpoints/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/modules/vpc-endpoints/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/modules/vpc-endpoints/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpc/6.7.3/modules/vpc-endpoints/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpn-gateway/4.0.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpn-gateway/4.0.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpn-gateway/4.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpn-gateway/4.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpn-gateway/4.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-aws-modules/vpn-gateway/4.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-module/enforce-mfa/1.2.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-module/enforce-mfa/1.2.0/examples/basic/LICENSE create mode 100644 conformance/fixtures/registry/terraform-module/enforce-mfa/1.2.0/examples/basic/fixture.json create mode 100644 conformance/fixtures/registry/terraform-module/enforce-mfa/1.2.0/examples/basic/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-module/enforce-mfa/1.2.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-module/enforce-mfa/1.2.0/input/data.tf create mode 100644 conformance/fixtures/registry/terraform-module/enforce-mfa/1.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-module/enforce-mfa/1.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-module/enforce-mfa/1.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-module/enforce-mfa/1.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-module/github-oidc-provider/2.3.0/LICENSE create mode 100644 conformance/fixtures/registry/terraform-module/github-oidc-provider/2.3.0/fixture.json create mode 100644 conformance/fixtures/registry/terraform-module/github-oidc-provider/2.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-module/github-oidc-provider/2.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-module/github-oidc-provider/2.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-module/github-oidc-provider/2.3.0/input/versions.tf create mode 100644 conformance/fixtures/registry/terraform-module/lambda/2.13.1/examples/basic/LICENSE create mode 100644 conformance/fixtures/registry/terraform-module/lambda/2.13.1/examples/basic/fixture.json create mode 100644 conformance/fixtures/registry/terraform-module/lambda/2.13.1/examples/basic/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-module/lambda/2.13.1/examples/basic/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-module/lambda/2.13.1/examples/basic/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-module/lambda/2.13.1/examples/tracing/LICENSE create mode 100644 conformance/fixtures/registry/terraform-module/lambda/2.13.1/examples/tracing/fixture.json create mode 100644 conformance/fixtures/registry/terraform-module/lambda/2.13.1/examples/tracing/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-module/lambda/2.13.1/examples/tracing/input/outputs.tf create mode 100644 conformance/fixtures/registry/terraform-module/lambda/2.13.1/examples/tracing/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/LICENSE create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/LICENSE create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/account_role/LICENSE create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/account_role/fixture.json create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/account_role/input/account_role_resource.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/account_role/input/instance_account_role_resource.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/account_role/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/fixture.json create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/input/account_role/account_role_resource.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/input/account_role/instance_account_role_resource.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/input/account_role/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/input/operator_role_policy/operator_policy.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/input/operator_role_policy/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/input/output.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/operator_role_policy/LICENSE create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/operator_role_policy/fixture.json create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/operator_role_policy/input/operator_policy.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/operator_role_policy/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/examples/account_roles/LICENSE create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/examples/account_roles/fixture.json create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/examples/account_roles/input/create_account_roles.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/examples/account_roles/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/examples/operator_roles_and_oidc/LICENSE create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/examples/operator_roles_and_oidc/fixture.json create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/examples/operator_roles_and_oidc/input/create_rosa_sts_operator_roles_and_oidc.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/examples/operator_roles_and_oidc/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/fixture.json create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/account_roles_creation/account_role/account_role_resource.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/account_roles_creation/account_role/instance_account_role_resource.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/account_roles_creation/account_role/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/account_roles_creation/main.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/account_roles_creation/operator_role_policy/operator_policy.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/account_roles_creation/operator_role_policy/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/account_roles_creation/output.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/account_roles_creation/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/oidc_config_resources/create_s3_bucket.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/oidc_config_resources/create_secret.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/oidc_config_resources/output.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/oidc_config_resources/put_objects_in_s3_bucket.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/oidc_config_resources/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/oidc_provider_creation/main.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/oidc_provider_creation/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/operator_roles_creation/main.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/operator_roles_creation/operator_roles/operator_role_resource.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/operator_roles_creation/operator_roles/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/operator_roles_creation/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/output.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/oidc_config_resources/LICENSE create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/oidc_config_resources/fixture.json create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/oidc_config_resources/input/create_s3_bucket.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/oidc_config_resources/input/create_secret.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/oidc_config_resources/input/output.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/oidc_config_resources/input/put_objects_in_s3_bucket.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/oidc_config_resources/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/oidc_provider_creation/LICENSE create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/oidc_provider_creation/fixture.json create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/oidc_provider_creation/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/oidc_provider_creation/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/operator_roles_creation/LICENSE create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/operator_roles_creation/fixture.json create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/operator_roles_creation/input/main.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/operator_roles_creation/input/operator_roles/operator_role_resource.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/operator_roles_creation/input/operator_roles/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/operator_roles_creation/input/variables.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/operator_roles_creation/operator_roles/LICENSE create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/operator_roles_creation/operator_roles/fixture.json create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/operator_roles_creation/operator_roles/input/operator_role_resource.tf create mode 100644 conformance/fixtures/registry/terraform-redhat/rosa-sts/0.0.16/operator_roles_creation/operator_roles/input/variables.tf create mode 100644 conformance/fixtures/registry/tf-mod/rbac-role/1.1.2/LICENSE create mode 100644 conformance/fixtures/registry/tf-mod/rbac-role/1.1.2/examples/complete/LICENSE create mode 100644 conformance/fixtures/registry/tf-mod/rbac-role/1.1.2/examples/complete/fixture.json create mode 100644 conformance/fixtures/registry/tf-mod/rbac-role/1.1.2/examples/complete/input/provider.tf create mode 100644 conformance/fixtures/registry/tf-mod/rbac-role/1.1.2/examples/complete/input/rbac.tf create mode 100644 conformance/fixtures/registry/tf-mod/rbac-role/1.1.2/examples/complete/input/variables.tf create mode 100644 conformance/fixtures/registry/tf-mod/rbac-role/1.1.2/fixture.json create mode 100644 conformance/fixtures/registry/tf-mod/rbac-role/1.1.2/input/label.tf create mode 100644 conformance/fixtures/registry/tf-mod/rbac-role/1.1.2/input/main.tf create mode 100644 conformance/fixtures/registry/tf-mod/rbac-role/1.1.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/tf-mod/rbac-role/1.1.2/input/variables.tf create mode 100644 conformance/fixtures/registry/tmknom/elasticache-redis/2.0.0/LICENSE create mode 100644 conformance/fixtures/registry/tmknom/elasticache-redis/2.0.0/fixture.json create mode 100644 conformance/fixtures/registry/tmknom/elasticache-redis/2.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/tmknom/elasticache-redis/2.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/tmknom/elasticache-redis/2.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/tmknom/elasticache-redis/2.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/transcend-io/lambda-at-edge/0.6.0/LICENSE create mode 100644 conformance/fixtures/registry/transcend-io/lambda-at-edge/0.6.0/fixture.json create mode 100644 conformance/fixtures/registry/transcend-io/lambda-at-edge/0.6.0/input/main.tf create mode 100644 conformance/fixtures/registry/transcend-io/lambda-at-edge/0.6.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/transcend-io/lambda-at-edge/0.6.0/input/variables.tf create mode 100644 conformance/fixtures/registry/transcend-io/lambda-at-edge/0.6.0/input/versions.tf create mode 100644 conformance/fixtures/registry/truemark/bitbucket-oidc-provider/0.0.5/LICENSE create mode 100644 conformance/fixtures/registry/truemark/bitbucket-oidc-provider/0.0.5/fixture.json create mode 100644 conformance/fixtures/registry/truemark/bitbucket-oidc-provider/0.0.5/input/main.tf create mode 100644 conformance/fixtures/registry/truemark/bitbucket-oidc-provider/0.0.5/input/outputs.tf create mode 100644 conformance/fixtures/registry/truemark/bitbucket-oidc-provider/0.0.5/input/variables.tf create mode 100644 conformance/fixtures/registry/truemark/bitbucket-oidc-provider/0.0.5/input/versions.tf create mode 100644 conformance/fixtures/registry/truemark/bitbucket-oidc-provisioner/0.0.8/LICENSE create mode 100644 conformance/fixtures/registry/truemark/bitbucket-oidc-provisioner/0.0.8/fixture.json create mode 100644 conformance/fixtures/registry/truemark/bitbucket-oidc-provisioner/0.0.8/input/main.tf create mode 100644 conformance/fixtures/registry/truemark/bitbucket-oidc-provisioner/0.0.8/input/outputs.tf create mode 100644 conformance/fixtures/registry/truemark/bitbucket-oidc-provisioner/0.0.8/input/variables.tf create mode 100644 conformance/fixtures/registry/truemark/bitbucket-oidc-provisioner/0.0.8/input/versions.tf create mode 100644 conformance/fixtures/registry/truemark/provisioner/1.1.5/LICENSE create mode 100644 conformance/fixtures/registry/truemark/provisioner/1.1.5/fixture.json create mode 100644 conformance/fixtures/registry/truemark/provisioner/1.1.5/input/main.tf create mode 100644 conformance/fixtures/registry/truemark/provisioner/1.1.5/input/outputs.tf create mode 100644 conformance/fixtures/registry/truemark/provisioner/1.1.5/input/variables.tf create mode 100644 conformance/fixtures/registry/truemark/provisioner/1.1.5/input/versions.tf create mode 100644 conformance/fixtures/registry/trussworks/cloudtrail/5.3.0/LICENSE create mode 100644 conformance/fixtures/registry/trussworks/cloudtrail/5.3.0/fixture.json create mode 100644 conformance/fixtures/registry/trussworks/cloudtrail/5.3.0/input/main.tf create mode 100644 conformance/fixtures/registry/trussworks/cloudtrail/5.3.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/trussworks/cloudtrail/5.3.0/input/variables.tf create mode 100644 conformance/fixtures/registry/trussworks/cloudtrail/5.3.0/input/versions.tf create mode 100644 conformance/fixtures/registry/trussworks/config/8.1.1/LICENSE create mode 100644 conformance/fixtures/registry/trussworks/config/8.1.1/fixture.json create mode 100644 conformance/fixtures/registry/trussworks/config/8.1.1/input/config-aggregator.tf create mode 100644 conformance/fixtures/registry/trussworks/config/8.1.1/input/config-rules.tf create mode 100644 conformance/fixtures/registry/trussworks/config/8.1.1/input/config-service.tf create mode 100644 conformance/fixtures/registry/trussworks/config/8.1.1/input/iam.tf create mode 100644 conformance/fixtures/registry/trussworks/config/8.1.1/input/main.tf create mode 100644 conformance/fixtures/registry/trussworks/config/8.1.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/trussworks/config/8.1.1/input/variables.tf create mode 100644 conformance/fixtures/registry/trussworks/config/8.1.1/input/versions.tf create mode 100644 conformance/fixtures/registry/trussworks/logs/18.0.0/LICENSE create mode 100644 conformance/fixtures/registry/trussworks/logs/18.0.0/fixture.json create mode 100644 conformance/fixtures/registry/trussworks/logs/18.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/trussworks/logs/18.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/trussworks/logs/18.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/trussworks/logs/18.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/trussworks/s3-private-bucket/9.0.1/LICENSE create mode 100644 conformance/fixtures/registry/trussworks/s3-private-bucket/9.0.1/fixture.json create mode 100644 conformance/fixtures/registry/trussworks/s3-private-bucket/9.0.1/input/main.tf create mode 100644 conformance/fixtures/registry/trussworks/s3-private-bucket/9.0.1/input/outputs.tf create mode 100644 conformance/fixtures/registry/trussworks/s3-private-bucket/9.0.1/input/variables.tf create mode 100644 conformance/fixtures/registry/trussworks/s3-private-bucket/9.0.1/input/versions.tf create mode 100644 conformance/fixtures/registry/trussworks/ses-domain/7.0.0/LICENSE create mode 100644 conformance/fixtures/registry/trussworks/ses-domain/7.0.0/fixture.json create mode 100644 conformance/fixtures/registry/trussworks/ses-domain/7.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/trussworks/ses-domain/7.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/trussworks/ses-domain/7.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/trussworks/ses-domain/7.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/trussworks/trusted-advisor-refresh/4.0.0/LICENSE create mode 100644 conformance/fixtures/registry/trussworks/trusted-advisor-refresh/4.0.0/fixture.json create mode 100644 conformance/fixtures/registry/trussworks/trusted-advisor-refresh/4.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/trussworks/trusted-advisor-refresh/4.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/trussworks/trusted-advisor-refresh/4.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/trussworks/wafv2/4.0.0/LICENSE create mode 100644 conformance/fixtures/registry/trussworks/wafv2/4.0.0/fixture.json create mode 100644 conformance/fixtures/registry/trussworks/wafv2/4.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/trussworks/wafv2/4.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/trussworks/wafv2/4.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/trussworks/wafv2/4.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/umotif-public/alb/2.2.2/LICENSE create mode 100644 conformance/fixtures/registry/umotif-public/alb/2.2.2/fixture.json create mode 100644 conformance/fixtures/registry/umotif-public/alb/2.2.2/input/main.tf create mode 100644 conformance/fixtures/registry/umotif-public/alb/2.2.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/umotif-public/alb/2.2.2/input/variables.tf create mode 100644 conformance/fixtures/registry/umotif-public/alb/2.2.2/input/versions.tf create mode 100644 conformance/fixtures/registry/umotif-public/ecs-fargate/8.2.0/LICENSE create mode 100644 conformance/fixtures/registry/umotif-public/ecs-fargate/8.2.0/fixture.json create mode 100644 conformance/fixtures/registry/umotif-public/ecs-fargate/8.2.0/input/data.tf create mode 100644 conformance/fixtures/registry/umotif-public/ecs-fargate/8.2.0/input/locals.tf create mode 100644 conformance/fixtures/registry/umotif-public/ecs-fargate/8.2.0/input/main.tf create mode 100644 conformance/fixtures/registry/umotif-public/ecs-fargate/8.2.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/umotif-public/ecs-fargate/8.2.0/input/variables.tf create mode 100644 conformance/fixtures/registry/umotif-public/ecs-fargate/8.2.0/input/versions.tf create mode 100644 conformance/fixtures/registry/umotif-public/elasticache-redis/3.5.0/LICENSE create mode 100644 conformance/fixtures/registry/umotif-public/elasticache-redis/3.5.0/fixture.json create mode 100644 conformance/fixtures/registry/umotif-public/elasticache-redis/3.5.0/input/main.tf create mode 100644 conformance/fixtures/registry/umotif-public/elasticache-redis/3.5.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/umotif-public/elasticache-redis/3.5.0/input/variables.tf create mode 100644 conformance/fixtures/registry/umotif-public/elasticache-redis/3.5.0/input/versions.tf create mode 100644 conformance/fixtures/registry/umotif-public/waf-webaclv2/5.1.2/LICENSE create mode 100644 conformance/fixtures/registry/umotif-public/waf-webaclv2/5.1.2/fixture.json create mode 100644 conformance/fixtures/registry/umotif-public/waf-webaclv2/5.1.2/input/main.tf create mode 100644 conformance/fixtures/registry/umotif-public/waf-webaclv2/5.1.2/input/outputs.tf create mode 100644 conformance/fixtures/registry/umotif-public/waf-webaclv2/5.1.2/input/variables.tf create mode 100644 conformance/fixtures/registry/umotif-public/waf-webaclv2/5.1.2/input/versions.tf create mode 100644 conformance/fixtures/registry/unfunco/oidc-github/3.1.0/LICENSE create mode 100644 conformance/fixtures/registry/unfunco/oidc-github/3.1.0/fixture.json create mode 100644 conformance/fixtures/registry/unfunco/oidc-github/3.1.0/input/data.tf create mode 100644 conformance/fixtures/registry/unfunco/oidc-github/3.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/unfunco/oidc-github/3.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/unfunco/oidc-github/3.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/unfunco/oidc-github/3.1.0/input/versions.tf create mode 100644 conformance/fixtures/registry/vantage-sh/vantage-integration/2.1.0/LICENSE create mode 100644 conformance/fixtures/registry/vantage-sh/vantage-integration/2.1.0/fixture.json create mode 100644 conformance/fixtures/registry/vantage-sh/vantage-integration/2.1.0/input/main.tf create mode 100644 conformance/fixtures/registry/vantage-sh/vantage-integration/2.1.0/input/moved.tf create mode 100644 conformance/fixtures/registry/vantage-sh/vantage-integration/2.1.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/vantage-sh/vantage-integration/2.1.0/input/variables.tf create mode 100644 conformance/fixtures/registry/vantage-sh/vantage-integration/2.1.0/tests/fixtures/legacy_with_bucket/LICENSE create mode 100644 conformance/fixtures/registry/vantage-sh/vantage-integration/2.1.0/tests/fixtures/legacy_with_bucket/fixture.json create mode 100644 conformance/fixtures/registry/vantage-sh/vantage-integration/2.1.0/tests/fixtures/legacy_with_bucket/input/main.tf create mode 100644 conformance/fixtures/registry/vantage-sh/vantage-integration/2.1.0/tests/fixtures/legacy_without_bucket/LICENSE create mode 100644 conformance/fixtures/registry/vantage-sh/vantage-integration/2.1.0/tests/fixtures/legacy_without_bucket/fixture.json create mode 100644 conformance/fixtures/registry/vantage-sh/vantage-integration/2.1.0/tests/fixtures/legacy_without_bucket/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/docs/operator-migration/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/docs/operator-migration/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/docs/operator-migration/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/docs/operator-migration/input/pre-operator.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/docs/operator-migration/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/examples/byo-vpc-eks/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/examples/byo-vpc-eks/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/examples/byo-vpc-eks/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/examples/byo-vpc-eks/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/examples/byo-vpc-eks/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/examples/byob-sse-s3/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/examples/byob-sse-s3/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/examples/byob-sse-s3/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/examples/byob-sse-s3/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/examples/byob/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/examples/byob/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/examples/byob/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/examples/byob/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/data.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/deployment-size.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/add-ons.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/aws_auth_legacy.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/cluster_autoscaler/cluster_autoscaler.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/cluster_autoscaler/iam.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/cluster_autoscaler/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/efs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/external_dns/external_dns.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/external_dns/iam.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/external_dns/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/iam-policies.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/iam-policy-docs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/iam-role-attachments.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/iam-role-policies.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/iam-roles.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/lb_controller/controller.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/lb_controller/iam.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/lb_controller/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/locals.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/moved.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_eks/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_lb/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_lb/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/app_lb/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/database/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/database/output.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/database/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/endpoint/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/endpoint/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/endpoint/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/file_storage/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/file_storage/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/file_storage/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/iam_role/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/iam_role/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/iam_role/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/kms/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/kms/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/kms/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/networking/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/networking/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/networking/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/private_link/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/private_link/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/private_link/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/redis/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/redis/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/modules/redis/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/input/versions.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/cluster_autoscaler/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/cluster_autoscaler/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/cluster_autoscaler/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/cluster_autoscaler/input/cluster_autoscaler.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/cluster_autoscaler/input/iam.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/cluster_autoscaler/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/external_dns/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/external_dns/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/external_dns/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/external_dns/input/external_dns.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/external_dns/input/iam.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/external_dns/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/add-ons.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/aws_auth_legacy.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/cluster_autoscaler/cluster_autoscaler.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/cluster_autoscaler/iam.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/cluster_autoscaler/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/efs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/external_dns/external_dns.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/external_dns/iam.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/external_dns/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/iam-policies.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/iam-policy-docs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/iam-role-attachments.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/iam-role-policies.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/iam-roles.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/lb_controller/controller.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/lb_controller/iam.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/lb_controller/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/locals.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/moved.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/lb_controller/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/lb_controller/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/lb_controller/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/lb_controller/input/controller.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/lb_controller/input/iam.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_eks/lb_controller/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_lb/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_lb/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_lb/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_lb/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_lb/input/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/app_lb/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/cloudtrail/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/cloudtrail/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/cloudtrail/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/cloudtrail/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/cloudtrail/input/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/cloudtrail/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/database/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/database/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/database/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/database/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/database/input/output.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/database/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/endpoint/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/endpoint/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/endpoint/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/endpoint/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/endpoint/input/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/endpoint/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/file_storage/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/file_storage/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/file_storage/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/file_storage/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/file_storage/input/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/file_storage/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/iam_role/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/iam_role/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/iam_role/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/iam_role/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/iam_role/input/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/iam_role/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/kms/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/kms/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/kms/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/kms/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/kms/input/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/kms/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/networking/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/networking/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/networking/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/networking/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/networking/input/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/networking/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/private_link/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/private_link/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/private_link/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/private_link/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/private_link/input/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/private_link/input/variables.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/redis/LICENSE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/redis/NOTICE create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/redis/fixture.json create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/redis/input/main.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/redis/input/outputs.tf create mode 100644 conformance/fixtures/registry/wandb/wandb/8.0.0/modules/redis/input/variables.tf create mode 100644 internal/conformance/collect/archive.go create mode 100644 internal/conformance/collect/archive_test.go create mode 100644 internal/conformance/collect/collector.go create mode 100644 internal/conformance/collect/config.go create mode 100644 internal/conformance/collect/detect.go create mode 100644 internal/conformance/collect/detect_test.go create mode 100644 internal/conformance/collect/fixture.go create mode 100644 internal/conformance/collect/fixture_test.go create mode 100644 internal/conformance/collect/http.go create mode 100644 internal/conformance/collect/http_test.go create mode 100644 internal/conformance/collect/license.go create mode 100644 internal/conformance/collect/license_test.go create mode 100644 internal/conformance/collect/lock.go create mode 100644 internal/conformance/collect/security.go create mode 100644 internal/conformance/collect/security_test.go create mode 100644 internal/conformance/collect/select.go create mode 100644 internal/conformance/collect/select_test.go create mode 100644 internal/conformance/collect/types.go diff --git a/Makefile b/Makefile index cd36b6e..371fe51 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ GO ?= go BIN := bin/openiac PLAYGROUND := playground -.PHONY: all build test vet fmt tidy wasm playground clean hooks +.PHONY: all build test vet fmt tidy wasm playground clean hooks conformance-inputs all: build @@ -26,6 +26,10 @@ hooks: git config core.hooksPath .githooks chmod +x .githooks/commit-msg scripts/check-commit-message.sh +# Refresh the conformance input corpus from the configured public sources. +conformance-inputs: + $(GO) run ./cmd/openiac-conformance collect -v + # Build the browser playground. Copies wasm_exec.js from the local toolchain, # which lives in a different directory depending on the Go version. wasm: diff --git a/README.md b/README.md index 126a5c4..99f4212 100644 --- a/README.md +++ b/README.md @@ -319,6 +319,31 @@ Add it to [`pkg/mappings/aws.json`](pkg/mappings/aws.json), rebuild, done. --- +## 🧪 Conformance Corpus + +The transpiler is tested against real Terraform, not hand-written examples. The +repository vendors **918 modules** (6,934 files, ~24 MiB) from the Terraform +Registry and public GitHub repositories. Every fixture pins the upstream commit, +records the input-tree hash, carries the upstream license and is scanned for +executables and credentials before it enters the tree. + +```bash +make conformance-inputs # refresh from configured sources +cat conformance/corpus.lock.json # aggregate counts and tree hash +``` + +| Tier | Count | Purpose | +|:--|--:|:--| +| `smoke` | 20 | Smallest basic modules, for every pull request | +| `core` | 4 | Resources, variables and outputs only | +| `advanced` | 497 | Data sources, locals, expressions, `count`/`for_each` | +| `modules` | 397 | Module composition | + +See [docs/CONFORMANCE.md](docs/CONFORMANCE.md) for the L0–L4 oracle design and +[conformance/README.md](conformance/README.md) for provenance and regeneration. + +--- + ## 🗺️ Timeline | Milestone | Date | Highlights | State | @@ -342,7 +367,13 @@ Oct 2026 Nov 2026 Dec 2026 Q1 2027 Q2 2027 2027+ ```text OpenIaC/ -├── cmd/openiac/ CLI entry point +├── cmd/ +│ ├── openiac/ CLI entry point +│ └── openiac-conformance/ Corpus collector and harness CLI +├── conformance/ +│ ├── fixtures/ Vendored Terraform inputs with provenance +│ └── collection/ Source seeds, caps and license allowlist +├── internal/conformance/ Collector and conformance layers ├── pkg/ │ ├── ir/ Universal graph + topological sort │ ├── parsers/hcl/ HCL2 → IR diff --git a/THIRD_PARTY.md b/THIRD_PARTY.md new file mode 100644 index 0000000..9ce793d --- /dev/null +++ b/THIRD_PARTY.md @@ -0,0 +1,928 @@ +# Third-party notices + +OpenIaC's own source is licensed under GPL-3.0. The Terraform inputs under +`conformance/fixtures/` are vendored from public upstreams and remain under +their original licenses. Each fixture directory contains the upstream +license text as `LICENSE`, and the exact revision is recorded in its +`fixture.json`. + +| Fixture | License | Upstream | +|:--|:--|:--| +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/agones-game-controller`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/aws-neuron-efa`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/aws-vpc-cni-network-policy`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/blue-green-upgrade/environment`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/blue-green-upgrade/modules/eks_cluster`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/bottlerocket`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/ecr-pull-through-cache`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/eks-automode/automode-custom-nodepools`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/fargate-serverless`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/fully-private-cluster`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/gitops/getting-started-argocd`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/gitops/multi-cluster-hub-spoke-argocd/hub`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/gitops/multi-cluster-hub-spoke-argocd/spokes`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/ipv6-eks-cluster`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/istio`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/karpenter`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/karpenter-mng`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/kubecost`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/ml-capacity-block`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/ml-container-cache`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/multi-node-vllm`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/multi-tenancy-with-teams`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/nvidia-gpu-efa`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/private-public-ingress`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/privatelink-access`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/sso-iam-identity-center`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/sso-okta`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/stateful`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/targeted-odcr`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/tls-with-aws-pca-issuer`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/vpc-lattice/client-server-communication`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/vpc-lattice/cross-cluster-pod-communication/cluster`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/environment` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/vpc-lattice/cross-cluster-pod-communication/environment`) | +| `github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/wireguard-with-cilium` | Apache-2.0 | https://github.com/aws-ia/terraform-aws-eks-blueprints @ `fc40e64615785b3dc4db88e57c45a6687ca026b5` (`patterns/wireguard-with-cilium`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/account` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/account`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/account-map` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/account-map`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/account-map/modules/iam-roles`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/account-map/modules/roles-to-principals`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/aurora-mysql-resources/modules/mysql-user`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/aurora-postgres-resources/modules/postgresql-user`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/aws-config/modules/org-conformance-pack`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/aws-saml/modules/okta-user`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/eks/cluster/modules/node_group_by_az`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/elasticache-redis/modules/redis_cluster`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/github-runners/modules/graceful_scale_in`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/opsgenie-team/modules/escalation`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/opsgenie-team/modules/integration`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/opsgenie-team/modules/routing`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/spacelift/admin-stack`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/spacelift/spaces`) | +| `github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment` | Apache-2.0 | https://github.com/cloudposse/terraform-aws-components @ `1f74a966a0b40ce7e5cae5baec690e5356cf46b8` (`modules/tgw/spoke/modules/standard_vpc_attachment`) | +| `registry/CrowdStrike/cloud-registration/0.7.13` | MIT | https://registry.terraform.io/modules/CrowdStrike/cloud-registration/aws/0.7.13 @ `0.7.13` | +| `registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments` | MIT | https://registry.terraform.io/modules/CrowdStrike/cloud-registration/aws/0.7.13 @ `0.7.13` (`modules/agentless-scanning-environments`) | +| `registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles` | MIT | https://registry.terraform.io/modules/CrowdStrike/cloud-registration/aws/0.7.13 @ `0.7.13` (`modules/agentless-scanning-roles`) | +| `registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory` | MIT | https://registry.terraform.io/modules/CrowdStrike/cloud-registration/aws/0.7.13 @ `0.7.13` (`modules/asset-inventory`) | +| `registry/DNXLabs/eks-lb-controller/0.11.0` | Apache-2.0 | https://registry.terraform.io/modules/DNXLabs/eks-lb-controller/aws/0.11.0 @ `0.11.0` | +| `registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate` | Apache-2.0 | https://registry.terraform.io/modules/DataDog/ecs-datadog/aws/1.2.2 @ `1.2.2` (`examples/ecs_fargate`) | +| `registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2` | Apache-2.0 | https://registry.terraform.io/modules/DataDog/ecs-datadog/aws/1.2.2 @ `1.2.2` (`modules/ecs_ec2`) | +| `registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate` | Apache-2.0 | https://registry.terraform.io/modules/DataDog/ecs-datadog/aws/1.2.2 @ `1.2.2` (`modules/ecs_fargate`) | +| `registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances` | Apache-2.0 | https://registry.terraform.io/modules/DataDog/ecs-datadog/aws/1.2.2 @ `1.2.2` (`modules/ecs_managed_instances`) | +| `registry/DataDog/lambda-datadog/4.9.0` | Apache-2.0 | https://registry.terraform.io/modules/DataDog/lambda-datadog/aws/4.9.0 @ `4.9.0` | +| `registry/Guimove/bastion/3.0.6` | Apache-2.0 | https://registry.terraform.io/modules/Guimove/bastion/aws/3.0.6 @ `3.0.6` | +| `registry/HENNGE/cloudwatch-dashboard/1.0.2` | Apache-2.0 | https://registry.terraform.io/modules/HENNGE/cloudwatch-dashboard/aws/1.0.2 @ `1.0.2` | +| `registry/HENNGE/ecs/5.6.0` | Apache-2.0 | https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0 @ `5.6.0` | +| `registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count` | Apache-2.0 | https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0 @ `5.6.0` (`modules/autoscaling/alb-target-tracking/target-requests-count`) | +| `registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time` | Apache-2.0 | https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0 @ `5.6.0` (`modules/autoscaling/alb-target-tracking/target-response-time`) | +| `registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation` | Apache-2.0 | https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0 @ `5.6.0` (`modules/autoscaling/asg-target-tracking/ecs-reservation`) | +| `registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled` | Apache-2.0 | https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0 @ `5.6.0` (`modules/autoscaling/ecs-scheduled`) | +| `registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization` | Apache-2.0 | https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0 @ `5.6.0` (`modules/autoscaling/ecs-target-tracking/service-utilization`) | +| `registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target` | Apache-2.0 | https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0 @ `5.6.0` (`modules/core/ecs-autoscaling-target`) | +| `registry/HENNGE/ecs/5.6.0/modules/core/task` | Apache-2.0 | https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0 @ `5.6.0` (`modules/core/task`) | +| `registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile` | Apache-2.0 | https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0 @ `5.6.0` (`modules/iam/ecs-instance-profile`) | +| `registry/HENNGE/ecs/5.6.0/modules/scheduled-actions` | Apache-2.0 | https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0 @ `5.6.0` (`modules/scheduled-actions`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/alb`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/bootstrap`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/crosszone_failover` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/crosszone_failover`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/gwlb`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/gwlb_endpoint_set`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/nat_gateway_set`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/nlb`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/panorama`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/subnet_set`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/transit_gateway`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/transit_gateway_attachment`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/transit_gateway_peering`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/vmseries`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/vpc`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_endpoint` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/vpc_endpoint`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/vpc_route`) | +| `registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn` | MIT | https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6 @ `1.1.6` (`modules/vpn`) | +| `registry/QuiNovas/lambda/4.0.2` | Apache-2.0 | https://registry.terraform.io/modules/QuiNovas/lambda/aws/4.0.2 @ `4.0.2` | +| `registry/RaJiska/fck-nat/1.6.1` | MIT | https://registry.terraform.io/modules/RaJiska/fck-nat/aws/1.6.1 @ `1.6.1` | +| `registry/SPHTech-Platform/apigw/0.5.8` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/apigw/aws/0.5.8 @ `0.5.8` | +| `registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/apigw/aws/0.5.8 @ `0.5.8` (`modules/custom_domain`) | +| `registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/apigw/aws/0.5.8 @ `0.5.8` (`modules/gateway_response`) | +| `registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/apigw/aws/0.5.8 @ `0.5.8` (`modules/usage_plan`) | +| `registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/cloudfront-policies/aws/1.0.0 @ `1.0.0` (`modules/cache`) | +| `registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/origin-request` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/cloudfront-policies/aws/1.0.0 @ `1.0.0` (`modules/origin-request`) | +| `registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/response-headers` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/cloudfront-policies/aws/1.0.0 @ `1.0.0` (`modules/response-headers`) | +| `registry/SPHTech-Platform/ecs/0.2.24` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/ecs/aws/0.2.24 @ `0.2.24` | +| `registry/SPHTech-Platform/ecs/0.2.24/modules/autoscaling-group` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/ecs/aws/0.2.24 @ `0.2.24` (`modules/autoscaling-group`) | +| `registry/SPHTech-Platform/ecs/0.2.24/modules/autoscaling-policy` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/ecs/aws/0.2.24 @ `0.2.24` (`modules/autoscaling-policy`) | +| `registry/SPHTech-Platform/ecs/0.2.24/modules/cluster` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/ecs/aws/0.2.24 @ `0.2.24` (`modules/cluster`) | +| `registry/SPHTech-Platform/ecs/0.2.24/modules/iam` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/ecs/aws/0.2.24 @ `0.2.24` (`modules/iam`) | +| `registry/SPHTech-Platform/ecs/0.2.24/modules/service` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/ecs/aws/0.2.24 @ `0.2.24` (`modules/service`) | +| `registry/SPHTech-Platform/ecs/0.2.24/modules/service-discovery` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/ecs/aws/0.2.24 @ `0.2.24` (`modules/service-discovery`) | +| `registry/SPHTech-Platform/eks/0.22.26` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/eks/aws/0.22.26 @ `0.22.26` | +| `registry/SPHTech-Platform/eks/0.22.26/modules/eks_managed_nodes` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/eks/aws/0.22.26 @ `0.22.26` (`modules/eks_managed_nodes`) | +| `registry/SPHTech-Platform/eks/0.22.26/modules/fargate_profile` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/eks/aws/0.22.26 @ `0.22.26` (`modules/fargate_profile`) | +| `registry/SPHTech-Platform/eks/0.22.26/modules/self_managed_nodes` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/eks/aws/0.22.26 @ `0.22.26` (`modules/self_managed_nodes`) | +| `registry/SPHTech-Platform/elasticache-redis/1.0.3` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/elasticache-redis/aws/1.0.3 @ `1.0.3` | +| `registry/SPHTech-Platform/kms/1.0.4` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/kms/aws/1.0.4 @ `1.0.4` | +| `registry/SPHTech-Platform/lambda-github-actions/0.3.5` | MIT | https://registry.terraform.io/modules/SPHTech-Platform/lambda-github-actions/aws/0.3.5 @ `0.3.5` | +| `registry/SPHTech-Platform/lb-controller/2.0.1` | Apache-2.0 | https://registry.terraform.io/modules/SPHTech-Platform/lb-controller/aws/2.0.1 @ `2.0.1` | +| `registry/SweetOps/secretsmanager/0.6.0` | Apache-2.0 | https://registry.terraform.io/modules/SweetOps/secretsmanager/aws/0.6.0 @ `0.6.0` | +| `registry/ViktorUJ/vpc/1.1.0` | Apache-2.0 | https://registry.terraform.io/modules/ViktorUJ/vpc/aws/1.1.0 @ `1.1.0` | +| `registry/ViktorUJ/vpc/1.1.0/examples/custom` | Apache-2.0 | https://registry.terraform.io/modules/ViktorUJ/vpc/aws/1.1.0 @ `1.1.0` (`examples/custom`) | +| `registry/ViktorUJ/vpc/1.1.0/examples/nacl_default` | Apache-2.0 | https://registry.terraform.io/modules/ViktorUJ/vpc/aws/1.1.0 @ `1.1.0` (`examples/nacl_default`) | +| `registry/ViktorUJ/vpc/1.1.0/examples/nacl_subnet` | Apache-2.0 | https://registry.terraform.io/modules/ViktorUJ/vpc/aws/1.1.0 @ `1.1.0` (`examples/nacl_subnet`) | +| `registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_az` | Apache-2.0 | https://registry.terraform.io/modules/ViktorUJ/vpc/aws/1.1.0 @ `1.1.0` (`examples/nat_gateway_az`) | +| `registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_az_existing_eip` | Apache-2.0 | https://registry.terraform.io/modules/ViktorUJ/vpc/aws/1.1.0 @ `1.1.0` (`examples/nat_gateway_az_existing_eip`) | +| `registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_single` | Apache-2.0 | https://registry.terraform.io/modules/ViktorUJ/vpc/aws/1.1.0 @ `1.1.0` (`examples/nat_gateway_single`) | +| `registry/ViktorUJ/vpc/1.1.0/examples/nat_gateway_subnet` | Apache-2.0 | https://registry.terraform.io/modules/ViktorUJ/vpc/aws/1.1.0 @ `1.1.0` (`examples/nat_gateway_subnet`) | +| `registry/ViktorUJ/vpc/1.1.0/examples/output_private_subnet_by_type` | Apache-2.0 | https://registry.terraform.io/modules/ViktorUJ/vpc/aws/1.1.0 @ `1.1.0` (`examples/output_private_subnet_by_type`) | +| `registry/ViktorUJ/vpc/1.1.0/examples/simple` | Apache-2.0 | https://registry.terraform.io/modules/ViktorUJ/vpc/aws/1.1.0 @ `1.1.0` (`examples/simple`) | +| `registry/Young-ook/eks/2.1.0` | MIT | https://registry.terraform.io/modules/Young-ook/eks/aws/2.1.0 @ `2.1.0` | +| `registry/Young-ook/eks/2.1.0/examples/blueprint` | MIT | https://registry.terraform.io/modules/Young-ook/eks/aws/2.1.0 @ `2.1.0` (`examples/blueprint`) | +| `registry/Young-ook/eks/2.1.0/examples/blueprint/modules/kubernetes-addons` | MIT | https://registry.terraform.io/modules/Young-ook/eks/aws/2.1.0 @ `2.1.0` (`examples/blueprint/modules/kubernetes-addons`) | +| `registry/Young-ook/eks/2.1.0/examples/data-ai/modules/kubeflow` | MIT | https://registry.terraform.io/modules/Young-ook/eks/aws/2.1.0 @ `2.1.0` (`examples/data-ai/modules/kubeflow`) | +| `registry/Young-ook/eks/2.1.0/modules/ecr` | MIT | https://registry.terraform.io/modules/Young-ook/eks/aws/2.1.0 @ `2.1.0` (`modules/ecr`) | +| `registry/Young-ook/eks/2.1.0/modules/eks-addons` | MIT | https://registry.terraform.io/modules/Young-ook/eks/aws/2.1.0 @ `2.1.0` (`modules/eks-addons`) | +| `registry/Young-ook/eks/2.1.0/modules/helm-addons` | MIT | https://registry.terraform.io/modules/Young-ook/eks/aws/2.1.0 @ `2.1.0` (`modules/helm-addons`) | +| `registry/Young-ook/eks/2.1.0/modules/irsa` | MIT | https://registry.terraform.io/modules/Young-ook/eks/aws/2.1.0 @ `2.1.0` (`modules/irsa`) | +| `registry/Young-ook/eks/2.1.0/modules/pod-identity` | MIT | https://registry.terraform.io/modules/Young-ook/eks/aws/2.1.0 @ `2.1.0` (`modules/pod-identity`) | +| `registry/avlcloudtechnologies/sso/0.5.0` | Apache-2.0 | https://registry.terraform.io/modules/avlcloudtechnologies/sso/aws/0.5.0 @ `0.5.0` | +| `registry/avlcloudtechnologies/sso/0.5.0/examples/complete` | Apache-2.0 | https://registry.terraform.io/modules/avlcloudtechnologies/sso/aws/0.5.0 @ `0.5.0` (`examples/complete`) | +| `registry/avlcloudtechnologies/sso/0.5.0/examples/simple` | Apache-2.0 | https://registry.terraform.io/modules/avlcloudtechnologies/sso/aws/0.5.0 @ `0.5.0` (`examples/simple`) | +| `registry/avlcloudtechnologies/sso/0.5.0/examples/with-dependencies` | Apache-2.0 | https://registry.terraform.io/modules/avlcloudtechnologies/sso/aws/0.5.0 @ `0.5.0` (`examples/with-dependencies`) | +| `registry/aws-ia/cloudwatch-log-group/1.0.1` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/cloudwatch-log-group/aws/1.0.1 @ `1.0.1` | +| `registry/aws-ia/control_tower_account_factory/1.23.0` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` | +| `registry/aws-ia/control_tower_account_factory/1.23.0/examples/azuredevops+tf_cloud` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`examples/azuredevops+tf_cloud`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/examples/bitbucket+tf_enterprise` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`examples/bitbucket+tf_enterprise`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/examples/codecommit+tf_oss` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`examples/codecommit+tf_oss`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/examples/github+tf_oss` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`examples/github+tf_oss`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/examples/githubenterprise+tf_cloud` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`examples/githubenterprise+tf_cloud`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/examples/gitlab+tf_oss` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`examples/gitlab+tf_oss`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/examples/gitlabselfmanaged+tf_cloud` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`examples/gitlabselfmanaged+tf_cloud`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/development` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`examples/multiple-account-customizations/modules/development`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/production` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`examples/multiple-account-customizations/modules/production`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-account-customizations/modules/security` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`examples/multiple-account-customizations/modules/security`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/examples/multiple-regions-customization/multiple-regions` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`examples/multiple-regions-customization/multiple-regions`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-provisioning-framework` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`modules/aft-account-provisioning-framework`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-account-request-framework` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`modules/aft-account-request-framework`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-backend` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`modules/aft-backend`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-code-repositories` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`modules/aft-code-repositories`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-customizations` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`modules/aft-customizations`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-feature-options` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`modules/aft-feature-options`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`modules/aft-iam-roles`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/admin-role` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`modules/aft-iam-roles/admin-role`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-iam-roles/service-role` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`modules/aft-iam-roles/service-role`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-lambda-layer` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`modules/aft-lambda-layer`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/modules/aft-ssm-parameters` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`modules/aft-ssm-parameters`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-common/templates/customizations_pipeline` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`sources/aft-customizations-common/templates/customizations_pipeline`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-repos/aft-account-provisioning-customizations/terraform` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`sources/aft-customizations-repos/aft-account-provisioning-customizations/terraform`) | +| `registry/aws-ia/control_tower_account_factory/1.23.0/sources/aft-customizations-repos/aft-account-request/terraform/modules/aft-account-request` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/control_tower_account_factory/aws/1.23.0 @ `1.23.0` (`sources/aft-customizations-repos/aft-account-request/terraform/modules/aft-account-request`) | +| `registry/aws-ia/eks-blueprints-addon/1.3.0` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/eks-blueprints-addon/aws/1.3.0 @ `1.3.0` | +| `registry/aws-ia/eks-blueprints-addons/1.24.3` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/eks-blueprints-addons/aws/1.24.3 @ `1.24.3` | +| `registry/aws-ia/eks-blueprints-teams/1.1.0` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/eks-blueprints-teams/aws/1.1.0 @ `1.1.0` | +| `registry/aws-ia/eks-data-addons/1.38.0` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/eks-data-addons/aws/1.38.0 @ `1.38.0` | +| `registry/aws-ia/eks-data-addons/1.38.0/irsa` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/eks-data-addons/aws/1.38.0 @ `1.38.0` (`irsa`) | +| `registry/aws-ia/iam-identity-center/1.0.4` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/iam-identity-center/aws/1.0.4 @ `1.0.4` | +| `registry/aws-ia/ipam/2.1.2` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/ipam/aws/2.1.2 @ `2.1.2` | +| `registry/aws-ia/ipam/2.1.2/modules/sub_pool` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/ipam/aws/2.1.2 @ `2.1.2` (`modules/sub_pool`) | +| `registry/aws-ia/label/0.0.6/internal/modules/aws` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/label/aws/0.0.6 @ `0.0.6` (`internal/modules/aws`) | +| `registry/aws-ia/mwaa/0.0.8` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/mwaa/aws/0.0.8 @ `0.0.8` | +| `registry/aws-ia/networkfirewall/1.0.2` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/networkfirewall/aws/1.0.2 @ `1.0.2` | +| `registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_with_egress` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/networkfirewall/aws/1.0.2 @ `1.0.2` (`examples/central_inspection_with_egress`) | +| `registry/aws-ia/networkfirewall/1.0.2/examples/central_inspection_without_egress` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/networkfirewall/aws/1.0.2 @ `1.0.2` (`examples/central_inspection_without_egress`) | +| `registry/aws-ia/networkfirewall/1.0.2/examples/intra_vpc_inspection` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/networkfirewall/aws/1.0.2 @ `1.0.2` (`examples/intra_vpc_inspection`) | +| `registry/aws-ia/networkfirewall/1.0.2/modules/central_inspection_with_egress_routing` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/networkfirewall/aws/1.0.2 @ `1.0.2` (`modules/central_inspection_with_egress_routing`) | +| `registry/aws-ia/networkfirewall/1.0.2/modules/intra_vpc_routing` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/networkfirewall/aws/1.0.2 @ `1.0.2` (`modules/intra_vpc_routing`) | +| `registry/aws-ia/networkfirewall/1.0.2/modules/logging` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/networkfirewall/aws/1.0.2 @ `1.0.2` (`modules/logging`) | +| `registry/aws-ia/vpc/4.9.0` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/vpc/aws/4.9.0 @ `4.9.0` | +| `registry/aws-ia/vpc/4.9.0/modules/calculate_subnets` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/vpc/aws/4.9.0 @ `4.9.0` (`modules/calculate_subnets`) | +| `registry/aws-ia/vpc/4.9.0/modules/calculate_subnets_ipv6` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/vpc/aws/4.9.0 @ `4.9.0` (`modules/calculate_subnets_ipv6`) | +| `registry/aws-ia/vpc/4.9.0/modules/flow_logs` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/vpc/aws/4.9.0 @ `4.9.0` (`modules/flow_logs`) | +| `registry/aws-ia/vpc/4.9.0/modules/flow_logs/modules/s3_log_bucket` | Apache-2.0 | https://registry.terraform.io/modules/aws-ia/vpc/aws/4.9.0 @ `4.9.0` (`modules/flow_logs/modules/s3_log_bucket`) | +| `registry/aws-ss/wafv2/4.4.0/modules/ip-set` | Apache-2.0 | https://registry.terraform.io/modules/aws-ss/wafv2/aws/4.4.0 @ `4.4.0` (`modules/ip-set`) | +| `registry/aws-ss/wafv2/4.4.0/modules/rule-group` | Apache-2.0 | https://registry.terraform.io/modules/aws-ss/wafv2/aws/4.4.0 @ `4.4.0` (`modules/rule-group`) | +| `registry/babbel/acm-global-and-regional/2.0.1` | MIT | https://registry.terraform.io/modules/babbel/acm-global-and-regional/aws/2.0.1 @ `2.0.1` | +| `registry/babbel/acm/2.0.2` | MIT | https://registry.terraform.io/modules/babbel/acm/aws/2.0.2 @ `2.0.2` | +| `registry/babbel/alb-for-vpc-internal-requests/4.0.1` | MIT | https://registry.terraform.io/modules/babbel/alb-for-vpc-internal-requests/aws/4.0.1 @ `4.0.1` | +| `registry/babbel/athena/4.1.1` | MIT | https://registry.terraform.io/modules/babbel/athena/aws/4.1.1 @ `4.1.1` | +| `registry/babbel/cloudfront-bucket/2.2.0` | MIT | https://registry.terraform.io/modules/babbel/cloudfront-bucket/aws/2.2.0 @ `2.2.0` | +| `registry/babbel/iam-role-for-github-repository/5.0.0` | MIT | https://registry.terraform.io/modules/babbel/iam-role-for-github-repository/aws/5.0.0 @ `5.0.0` | +| `registry/babbel/secretsmanager-for-database-url/2.1.2` | MIT | https://registry.terraform.io/modules/babbel/secretsmanager-for-database-url/aws/2.1.2 @ `2.1.2` | +| `registry/babbel/secretsmanager-for-rollbar-access-tokens/3.0.1` | MIT | https://registry.terraform.io/modules/babbel/secretsmanager-for-rollbar-access-tokens/aws/3.0.1 @ `3.0.1` | +| `registry/babbel/ses-sending-domain/2.2.0` | MIT | https://registry.terraform.io/modules/babbel/ses-sending-domain/aws/2.2.0 @ `2.2.0` | +| `registry/babbel/sns-to-rollbar/2.0.1` | MIT | https://registry.terraform.io/modules/babbel/sns-to-rollbar/aws/2.0.1 @ `2.0.1` | +| `registry/babbel/wafv2-dashboard/1.2.0` | MIT | https://registry.terraform.io/modules/babbel/wafv2-dashboard/aws/1.2.0 @ `1.2.0` | +| `registry/baikonur-oss/fargate-scheduled-task/2.0.3` | MIT | https://registry.terraform.io/modules/baikonur-oss/fargate-scheduled-task/aws/2.0.3 @ `2.0.3` | +| `registry/baikonur-oss/iam-nofile/2.0.0` | MIT | https://registry.terraform.io/modules/baikonur-oss/iam-nofile/aws/2.0.0 @ `2.0.0` | +| `registry/bbeesley/lambda-do-it-all/4.1.4` | MIT | https://registry.terraform.io/modules/bbeesley/lambda-do-it-all/aws/4.1.4 @ `4.1.4` | +| `registry/boldlink/acm/1.0.1` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/acm/aws/1.0.1 @ `1.0.1` | +| `registry/boldlink/autoscaling/2.2.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/autoscaling/aws/2.2.0 @ `2.2.0` | +| `registry/boldlink/autoscaling/2.2.0/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/autoscaling/aws/2.2.0 @ `2.2.0` (`tests/supportingResources`) | +| `registry/boldlink/budget/1.0.2` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/budget/aws/1.0.2 @ `1.0.2` | +| `registry/boldlink/client-vpn/1.0.3` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/client-vpn/aws/1.0.3 @ `1.0.3` | +| `registry/boldlink/client-vpn/1.0.3/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/client-vpn/aws/1.0.3 @ `1.0.3` (`tests/supportingResources`) | +| `registry/boldlink/cloudformation/1.1.2` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/cloudformation/aws/1.1.2 @ `1.1.2` | +| `registry/boldlink/cloudtrail/1.4.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/cloudtrail/aws/1.4.0 @ `1.4.0` | +| `registry/boldlink/docdb/1.3.2` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/docdb/aws/1.3.2 @ `1.3.2` | +| `registry/boldlink/docdb/1.3.2/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/docdb/aws/1.3.2 @ `1.3.2` (`tests/supportingResources`) | +| `registry/boldlink/dynamodb/1.2.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/dynamodb/aws/1.2.0 @ `1.2.0` | +| `registry/boldlink/ec2/2.0.7` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/ec2/aws/2.0.7 @ `2.0.7` | +| `registry/boldlink/ec2/2.0.7/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/ec2/aws/2.0.7 @ `2.0.7` (`tests/supportingResources`) | +| `registry/boldlink/ecr-registry/1.1.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/ecr-registry/aws/1.1.0 @ `1.1.0` | +| `registry/boldlink/ecr/2.0.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/ecr/aws/2.0.0 @ `2.0.0` | +| `registry/boldlink/ecr/2.0.0/modules/private` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/ecr/aws/2.0.0 @ `2.0.0` (`modules/private`) | +| `registry/boldlink/ecr/2.0.0/modules/public` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/ecr/aws/2.0.0 @ `2.0.0` (`modules/public`) | +| `registry/boldlink/ecs-cluster/3.0.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/ecs-cluster/aws/3.0.0 @ `3.0.0` | +| `registry/boldlink/ecs-cluster/3.0.0/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/ecs-cluster/aws/3.0.0 @ `3.0.0` (`tests/supportingResources`) | +| `registry/boldlink/ecs-service/1.13.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/ecs-service/aws/1.13.0 @ `1.13.0` | +| `registry/boldlink/ecs-service/1.13.0/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/ecs-service/aws/1.13.0 @ `1.13.0` (`tests/supportingResources`) | +| `registry/boldlink/efs/1.2.1` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/efs/aws/1.2.1 @ `1.2.1` | +| `registry/boldlink/efs/1.2.1/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/efs/aws/1.2.1 @ `1.2.1` (`tests/supportingResources`) | +| `registry/boldlink/eks/3.3.6` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/eks/aws/3.3.6 @ `3.3.6` | +| `registry/boldlink/eks/3.3.6/modules/fargate-profile` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/eks/aws/3.3.6 @ `3.3.6` (`modules/fargate-profile`) | +| `registry/boldlink/eks/3.3.6/modules/managed-node-group` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/eks/aws/3.3.6 @ `3.3.6` (`modules/managed-node-group`) | +| `registry/boldlink/eks/3.3.6/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/eks/aws/3.3.6 @ `3.3.6` (`tests/supportingResources`) | +| `registry/boldlink/elb/1.3.1` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/elb/aws/1.3.1 @ `1.3.1` | +| `registry/boldlink/elb/1.3.1/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/elb/aws/1.3.1 @ `1.3.1` (`tests/supportingResources`) | +| `registry/boldlink/event-bridge/1.0.1` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/event-bridge/aws/1.0.1 @ `1.0.1` | +| `registry/boldlink/event-bridge/1.0.1/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/event-bridge/aws/1.0.1 @ `1.0.1` (`tests/supportingResources`) | +| `registry/boldlink/iam-group/1.1.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/iam-group/aws/1.1.0 @ `1.1.0` | +| `registry/boldlink/iam-policy/1.1.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/iam-policy/aws/1.1.0 @ `1.1.0` | +| `registry/boldlink/iam-role/2.0.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/iam-role/aws/2.0.0 @ `2.0.0` | +| `registry/boldlink/iam-user/1.0.3` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/iam-user/aws/1.0.3 @ `1.0.3` | +| `registry/boldlink/kms/1.2.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/kms/aws/1.2.0 @ `1.2.0` | +| `registry/boldlink/lambda/1.1.3` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/lambda/aws/1.1.3 @ `1.1.3` | +| `registry/boldlink/lambda/1.1.3/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/lambda/aws/1.1.3 @ `1.1.3` (`tests/supportingResources`) | +| `registry/boldlink/lb/1.1.6` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/lb/aws/1.1.6 @ `1.1.6` | +| `registry/boldlink/lb/1.1.6/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/lb/aws/1.1.6 @ `1.1.6` (`tests/supportingResources`) | +| `registry/boldlink/organizations/1.0.1` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/organizations/aws/1.0.1 @ `1.0.1` | +| `registry/boldlink/rds-aurora/1.2.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/rds-aurora/aws/1.2.0 @ `1.2.0` | +| `registry/boldlink/rds-aurora/1.2.0/modules/global-cluster` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/rds-aurora/aws/1.2.0 @ `1.2.0` (`modules/global-cluster`) | +| `registry/boldlink/rds-aurora/1.2.0/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/rds-aurora/aws/1.2.0 @ `1.2.0` (`tests/supportingResources`) | +| `registry/boldlink/rds/1.4.1` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/rds/aws/1.4.1 @ `1.4.1` | +| `registry/boldlink/rds/1.4.1/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/rds/aws/1.4.1 @ `1.4.1` (`tests/supportingResources`) | +| `registry/boldlink/route53-records/1.0.2` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/route53-records/aws/1.0.2 @ `1.0.2` | +| `registry/boldlink/route53-records/1.0.2/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/route53-records/aws/1.0.2 @ `1.0.2` (`tests/supportingResources`) | +| `registry/boldlink/route53/1.1.3` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/route53/aws/1.1.3 @ `1.1.3` | +| `registry/boldlink/s3/2.6.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/s3/aws/2.6.0 @ `2.6.0` | +| `registry/boldlink/scp/1.1.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/scp/aws/1.1.0 @ `1.1.0` | +| `registry/boldlink/secretsmanager/1.0.9` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/secretsmanager/aws/1.0.9 @ `1.0.9` | +| `registry/boldlink/sns/1.1.2` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/sns/aws/1.1.2 @ `1.1.2` | +| `registry/boldlink/ssm/1.0.2` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/ssm/aws/1.0.2 @ `1.0.2` | +| `registry/boldlink/ssm/1.0.2/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/ssm/aws/1.0.2 @ `1.0.2` (`tests/supportingResources`) | +| `registry/boldlink/vpc-endpoints/1.0.3` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/vpc-endpoints/aws/1.0.3 @ `1.0.3` | +| `registry/boldlink/vpc-endpoints/1.0.3/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/vpc-endpoints/aws/1.0.3 @ `1.0.3` (`tests/supportingResources`) | +| `registry/boldlink/vpc/3.3.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/vpc/aws/3.3.0 @ `3.3.0` | +| `registry/boldlink/vpc/3.3.0/modules/internal` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/vpc/aws/3.3.0 @ `3.3.0` (`modules/internal`) | +| `registry/boldlink/vpc/3.3.0/modules/private` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/vpc/aws/3.3.0 @ `3.3.0` (`modules/private`) | +| `registry/boldlink/vpc/3.3.0/modules/public` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/vpc/aws/3.3.0 @ `3.3.0` (`modules/public`) | +| `registry/boldlink/waf/1.2.0` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/waf/aws/1.2.0 @ `1.2.0` | +| `registry/boldlink/waf/1.2.0/tests/supportingResources` | Apache-2.0 | https://registry.terraform.io/modules/boldlink/waf/aws/1.2.0 @ `1.2.0` (`tests/supportingResources`) | +| `registry/cattle-ops/gitlab-runner/9.6.0` | MIT | https://registry.terraform.io/modules/cattle-ops/gitlab-runner/aws/9.6.0 @ `9.6.0` | +| `registry/cattle-ops/gitlab-runner/9.6.0/modules/cache` | MIT | https://registry.terraform.io/modules/cattle-ops/gitlab-runner/aws/9.6.0 @ `9.6.0` (`modules/cache`) | +| `registry/cattle-ops/gitlab-runner/9.6.0/modules/terminate-agent-hook` | MIT | https://registry.terraform.io/modules/cattle-ops/gitlab-runner/aws/9.6.0 @ `9.6.0` (`modules/terminate-agent-hook`) | +| `registry/chime/alternat/0.10.4` | MIT | https://registry.terraform.io/modules/chime/alternat/aws/0.10.4 @ `0.10.4` | +| `registry/clouddrove/kms/1.3.4` | Apache-2.0 | https://registry.terraform.io/modules/clouddrove/kms/aws/1.3.4 @ `1.3.4` | +| `registry/cloudposse/acm-request-certificate/0.18.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/acm-request-certificate/aws/0.18.1 @ `0.18.1` | +| `registry/cloudposse/alb-ingress/0.31.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/alb-ingress/aws/0.31.0 @ `0.31.0` | +| `registry/cloudposse/alb-target-group-cloudwatch-sns-alarms/0.17.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/alb-target-group-cloudwatch-sns-alarms/aws/0.17.0 @ `0.17.0` | +| `registry/cloudposse/alb/2.5.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/alb/aws/2.5.0 @ `2.5.0` | +| `registry/cloudposse/api-gateway/0.9.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/api-gateway/aws/0.9.1 @ `0.9.1` | +| `registry/cloudposse/api-gateway/0.9.1/modules/account-settings` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/api-gateway/aws/0.9.1 @ `0.9.1` (`modules/account-settings`) | +| `registry/cloudposse/backup/1.3.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/backup/aws/1.3.0 @ `1.3.0` | +| `registry/cloudposse/budgets/0.8.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/budgets/aws/0.8.1 @ `0.8.1` | +| `registry/cloudposse/cloudfront-cdn/1.8.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/cloudfront-cdn/aws/1.8.1 @ `1.8.1` | +| `registry/cloudposse/cloudfront-s3-cdn/2.1.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/cloudfront-s3-cdn/aws/2.1.1 @ `2.1.1` | +| `registry/cloudposse/cloudfront-s3-cdn/2.1.1/modules/lambda@edge` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/cloudfront-s3-cdn/aws/2.1.1 @ `2.1.1` (`modules/lambda@edge`) | +| `registry/cloudposse/cloudtrail-cloudwatch-alarms/0.14.3` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/cloudtrail-cloudwatch-alarms/aws/0.14.3 @ `0.14.3` | +| `registry/cloudposse/cloudtrail-s3-bucket/0.33.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/cloudtrail-s3-bucket/aws/0.33.0 @ `0.33.0` | +| `registry/cloudposse/cloudtrail/0.24.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/cloudtrail/aws/0.24.0 @ `0.24.0` | +| `registry/cloudposse/cloudwatch-events/0.10.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/cloudwatch-events/aws/0.10.0 @ `0.10.0` | +| `registry/cloudposse/cloudwatch-logs/0.6.9` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/cloudwatch-logs/aws/0.6.9 @ `0.6.9` | +| `registry/cloudposse/code-deploy/0.2.3` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/code-deploy/aws/0.2.3 @ `0.2.3` | +| `registry/cloudposse/codebuild/2.0.2` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/codebuild/aws/2.0.2 @ `2.0.2` | +| `registry/cloudposse/config-storage/1.0.2` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/config-storage/aws/1.0.2 @ `1.0.2` | +| `registry/cloudposse/config/2.0.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/config/aws/2.0.0 @ `2.0.0` | +| `registry/cloudposse/config/2.0.0/modules/cis-1-2-rules` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/config/aws/2.0.0 @ `2.0.0` (`modules/cis-1-2-rules`) | +| `registry/cloudposse/config/2.0.0/modules/conformance-pack` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/config/aws/2.0.0 @ `2.0.0` (`modules/conformance-pack`) | +| `registry/cloudposse/datadog-integration/3.2.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/datadog-integration/aws/3.2.0 @ `3.2.0` | +| `registry/cloudposse/datadog-lambda-forwarder/1.10.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/datadog-lambda-forwarder/aws/1.10.1 @ `1.10.1` | +| `registry/cloudposse/documentdb-cluster/1.1.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/documentdb-cluster/aws/1.1.0 @ `1.1.0` | +| `registry/cloudposse/dynamic-subnets/3.1.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/dynamic-subnets/aws/3.1.1 @ `3.1.1` | +| `registry/cloudposse/dynamodb-autoscaler/0.16.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/dynamodb-autoscaler/aws/0.16.0 @ `0.16.0` | +| `registry/cloudposse/dynamodb/0.37.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/dynamodb/aws/0.37.0 @ `0.37.0` | +| `registry/cloudposse/ec2-autoscale-group/0.43.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ec2-autoscale-group/aws/0.43.1 @ `0.43.1` | +| `registry/cloudposse/ec2-bastion-server/0.31.2` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ec2-bastion-server/aws/0.31.2 @ `0.31.2` | +| `registry/cloudposse/ec2-client-vpn/2.0.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ec2-client-vpn/aws/2.0.0 @ `2.0.0` | +| `registry/cloudposse/ec2-instance/2.0.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ec2-instance/aws/2.0.0 @ `2.0.0` | +| `registry/cloudposse/ecr/1.0.2` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ecr/aws/1.0.2 @ `1.0.2` | +| `registry/cloudposse/ecr/1.0.2/modules/scanning_configuration` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ecr/aws/1.0.2 @ `1.0.2` (`modules/scanning_configuration`) | +| `registry/cloudposse/ecs-alb-service-task/1.0.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ecs-alb-service-task/aws/1.0.0 @ `1.0.0` | +| `registry/cloudposse/ecs-cloudwatch-autoscaling/1.0.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ecs-cloudwatch-autoscaling/aws/1.0.0 @ `1.0.0` | +| `registry/cloudposse/ecs-cloudwatch-sns-alarms/0.13.2` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ecs-cloudwatch-sns-alarms/aws/0.13.2 @ `0.13.2` | +| `registry/cloudposse/ecs-cluster/2.0.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ecs-cluster/aws/2.0.1 @ `2.0.1` | +| `registry/cloudposse/ecs-codepipeline/0.34.2` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ecs-codepipeline/aws/0.34.2 @ `0.34.2` | +| `registry/cloudposse/ecs-web-app/2.5.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ecs-web-app/aws/2.5.0 @ `2.5.0` | +| `registry/cloudposse/efs/1.5.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/efs/aws/1.5.0 @ `1.5.0` | +| `registry/cloudposse/eks-cluster/4.15.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/eks-cluster/aws/4.15.0 @ `4.15.0` | +| `registry/cloudposse/eks-cluster/4.15.0/examples/obsolete-version2` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/eks-cluster/aws/4.15.0 @ `4.15.0` (`examples/obsolete-version2`) | +| `registry/cloudposse/eks-fargate-profile/1.3.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/eks-fargate-profile/aws/1.3.1 @ `1.3.1` | +| `registry/cloudposse/eks-iam-role/2.2.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/eks-iam-role/aws/2.2.1 @ `2.2.1` | +| `registry/cloudposse/eks-node-group/3.4.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/eks-node-group/aws/3.4.0 @ `3.4.0` | +| `registry/cloudposse/elastic-beanstalk-application/0.13.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/elastic-beanstalk-application/aws/0.13.0 @ `0.13.0` | +| `registry/cloudposse/elastic-beanstalk-environment/0.56.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/elastic-beanstalk-environment/aws/0.56.0 @ `0.56.0` | +| `registry/cloudposse/elasticache-memcached/0.20.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/elasticache-memcached/aws/0.20.0 @ `0.20.0` | +| `registry/cloudposse/elasticache-redis/2.1.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/elasticache-redis/aws/2.1.0 @ `2.1.0` | +| `registry/cloudposse/elasticsearch/2.1.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/elasticsearch/aws/2.1.0 @ `2.1.0` | +| `registry/cloudposse/global-accelerator/0.6.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/global-accelerator/aws/0.6.1 @ `0.6.1` | +| `registry/cloudposse/global-accelerator/0.6.1/examples/modules/ecs` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/global-accelerator/aws/0.6.1 @ `0.6.1` (`examples/modules/ecs`) | +| `registry/cloudposse/global-accelerator/0.6.1/modules/endpoint-group` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/global-accelerator/aws/0.6.1 @ `0.6.1` (`modules/endpoint-group`) | +| `registry/cloudposse/glue/0.4.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/glue/aws/0.4.0 @ `0.4.0` | +| `registry/cloudposse/glue/0.4.0/modules/glue-catalog-database` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/glue/aws/0.4.0 @ `0.4.0` (`modules/glue-catalog-database`) | +| `registry/cloudposse/glue/0.4.0/modules/glue-catalog-table` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/glue/aws/0.4.0 @ `0.4.0` (`modules/glue-catalog-table`) | +| `registry/cloudposse/glue/0.4.0/modules/glue-connection` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/glue/aws/0.4.0 @ `0.4.0` (`modules/glue-connection`) | +| `registry/cloudposse/glue/0.4.0/modules/glue-crawler` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/glue/aws/0.4.0 @ `0.4.0` (`modules/glue-crawler`) | +| `registry/cloudposse/glue/0.4.0/modules/glue-job` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/glue/aws/0.4.0 @ `0.4.0` (`modules/glue-job`) | +| `registry/cloudposse/glue/0.4.0/modules/glue-registry` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/glue/aws/0.4.0 @ `0.4.0` (`modules/glue-registry`) | +| `registry/cloudposse/glue/0.4.0/modules/glue-schema` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/glue/aws/0.4.0 @ `0.4.0` (`modules/glue-schema`) | +| `registry/cloudposse/glue/0.4.0/modules/glue-trigger` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/glue/aws/0.4.0 @ `0.4.0` (`modules/glue-trigger`) | +| `registry/cloudposse/glue/0.4.0/modules/glue-workflow` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/glue/aws/0.4.0 @ `0.4.0` (`modules/glue-workflow`) | +| `registry/cloudposse/guardduty/1.0.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/guardduty/aws/1.0.0 @ `1.0.0` | +| `registry/cloudposse/helm-release/0.10.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/helm-release/aws/0.10.1 @ `0.10.1` | +| `registry/cloudposse/iam-policy-document-aggregator/0.8.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/iam-policy-document-aggregator/aws/0.8.0 @ `0.8.0` | +| `registry/cloudposse/iam-policy/2.0.2` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/iam-policy/aws/2.0.2 @ `2.0.2` | +| `registry/cloudposse/iam-role/1.0.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/iam-role/aws/1.0.0 @ `1.0.0` | +| `registry/cloudposse/iam-s3-user/1.2.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/iam-s3-user/aws/1.2.1 @ `1.2.1` | +| `registry/cloudposse/iam-system-user/1.2.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/iam-system-user/aws/1.2.1 @ `1.2.1` | +| `registry/cloudposse/inspector/0.4.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/inspector/aws/0.4.0 @ `0.4.0` | +| `registry/cloudposse/key-pair/0.20.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/key-pair/aws/0.20.0 @ `0.20.0` | +| `registry/cloudposse/kinesis-stream/0.4.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/kinesis-stream/aws/0.4.0 @ `0.4.0` | +| `registry/cloudposse/kms-key/0.12.2` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/kms-key/aws/0.12.2 @ `0.12.2` | +| `registry/cloudposse/lambda-function/0.6.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/lambda-function/aws/0.6.1 @ `0.6.1` | +| `registry/cloudposse/lb-s3-bucket/0.20.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/lb-s3-bucket/aws/0.20.0 @ `0.20.0` | +| `registry/cloudposse/mq-broker/3.6.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/mq-broker/aws/3.6.0 @ `3.6.0` | +| `registry/cloudposse/msk-apache-kafka-cluster/2.6.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/msk-apache-kafka-cluster/aws/2.6.0 @ `2.6.0` | +| `registry/cloudposse/multi-az-subnets/0.15.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/multi-az-subnets/aws/0.15.0 @ `0.15.0` | +| `registry/cloudposse/mwaa/0.16.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/mwaa/aws/0.16.0 @ `0.16.0` | +| `registry/cloudposse/nlb/0.18.3` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/nlb/aws/0.18.3 @ `0.18.3` | +| `registry/cloudposse/rds-cluster/2.6.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/rds-cluster/aws/2.6.0 @ `2.6.0` | +| `registry/cloudposse/rds-db-proxy/1.1.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/rds-db-proxy/aws/1.1.1 @ `1.1.1` | +| `registry/cloudposse/rds/1.3.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/rds/aws/1.3.0 @ `1.3.0` | +| `registry/cloudposse/route53-alias/0.13.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/route53-alias/aws/0.13.0 @ `0.13.0` | +| `registry/cloudposse/route53-cluster-hostname/0.13.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/route53-cluster-hostname/aws/0.13.0 @ `0.13.0` | +| `registry/cloudposse/route53-cluster-zone/0.16.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/route53-cluster-zone/aws/0.16.1 @ `0.16.1` | +| `registry/cloudposse/s3-bucket/4.15.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/s3-bucket/aws/4.15.0 @ `4.15.0` | +| `registry/cloudposse/s3-log-storage/2.1.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/s3-log-storage/aws/2.1.0 @ `2.1.0` | +| `registry/cloudposse/security-group/2.2.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/security-group/aws/2.2.0 @ `2.2.0` | +| `registry/cloudposse/security-hub/0.13.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/security-hub/aws/0.13.0 @ `0.13.0` | +| `registry/cloudposse/security-hub/0.13.0/modules/control-disablements` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/security-hub/aws/0.13.0 @ `0.13.0` (`modules/control-disablements`) | +| `registry/cloudposse/service-control-policies/0.16.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/service-control-policies/aws/0.16.0 @ `0.16.0` | +| `registry/cloudposse/ses/0.25.2` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ses/aws/0.25.2 @ `0.25.2` | +| `registry/cloudposse/sns-lambda-notify-slack/0.9.3` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/sns-lambda-notify-slack/aws/0.9.3 @ `0.9.3` | +| `registry/cloudposse/ssm-parameter-chamber-reader/0.2.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ssm-parameter-chamber-reader/aws/0.2.0 @ `0.2.0` | +| `registry/cloudposse/ssm-parameter-store/0.13.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ssm-parameter-store/aws/0.13.0 @ `0.13.0` | +| `registry/cloudposse/ssm-tls-self-signed-cert/1.3.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ssm-tls-self-signed-cert/aws/1.3.0 @ `1.3.0` | +| `registry/cloudposse/ssm-tls-ssh-key-pair/0.10.2` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/ssm-tls-ssh-key-pair/aws/0.10.2 @ `0.10.2` | +| `registry/cloudposse/sso/1.2.1/modules/account-assignments` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/sso/aws/1.2.1 @ `1.2.1` (`modules/account-assignments`) | +| `registry/cloudposse/sso/1.2.1/modules/permission-sets` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/sso/aws/1.2.1 @ `1.2.1` (`modules/permission-sets`) | +| `registry/cloudposse/tfstate-backend/1.9.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/tfstate-backend/aws/1.9.1 @ `1.9.1` | +| `registry/cloudposse/transit-gateway/0.13.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/transit-gateway/aws/0.13.1 @ `0.13.1` | +| `registry/cloudposse/transit-gateway/0.13.1/modules/subnet_route` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/transit-gateway/aws/0.13.1 @ `0.13.1` (`modules/subnet_route`) | +| `registry/cloudposse/transit-gateway/0.13.1/modules/transit_gateway_route` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/transit-gateway/aws/0.13.1 @ `0.13.1` (`modules/transit_gateway_route`) | +| `registry/cloudposse/utils/1.4.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/utils/aws/1.4.0 @ `1.4.0` | +| `registry/cloudposse/vpc-flow-logs-s3-bucket/1.4.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/vpc-flow-logs-s3-bucket/aws/1.4.0 @ `1.4.0` | +| `registry/cloudposse/vpc-peering-multi-account/2.0.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/vpc-peering-multi-account/aws/2.0.1 @ `2.0.1` | +| `registry/cloudposse/vpc-peering-multi-account/2.0.1/examples/vpc-only` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/vpc-peering-multi-account/aws/2.0.1 @ `2.0.1` (`examples/vpc-only`) | +| `registry/cloudposse/vpc-peering/1.0.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/vpc-peering/aws/1.0.1 @ `1.0.1` | +| `registry/cloudposse/vpc/3.0.0` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/vpc/aws/3.0.0 @ `3.0.0` | +| `registry/cloudposse/vpc/3.0.0/modules/vpc-endpoints` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/vpc/aws/3.0.0 @ `3.0.0` (`modules/vpc-endpoints`) | +| `registry/cloudposse/waf/1.18.1` | Apache-2.0 | https://registry.terraform.io/modules/cloudposse/waf/aws/1.18.1 @ `1.18.1` | +| `registry/clowdhaus/datadog-forwarders/7.0.1/modules/rds_enhanced_monitoring_forwarder` | Apache-2.0 | https://registry.terraform.io/modules/clowdhaus/datadog-forwarders/aws/7.0.1 @ `7.0.1` (`modules/rds_enhanced_monitoring_forwarder`) | +| `registry/clowdhaus/datadog-forwarders/7.0.1/modules/vpc_flow_log_forwarder` | Apache-2.0 | https://registry.terraform.io/modules/clowdhaus/datadog-forwarders/aws/7.0.1 @ `7.0.1` (`modules/vpc_flow_log_forwarder`) | +| `registry/clowdhaus/msk-kafka-cluster/2.13.0` | Apache-2.0 | https://registry.terraform.io/modules/clowdhaus/msk-kafka-cluster/aws/2.13.0 @ `2.13.0` | +| `registry/clowdhaus/msk-kafka-cluster/2.13.0/modules/serverless` | Apache-2.0 | https://registry.terraform.io/modules/clowdhaus/msk-kafka-cluster/aws/2.13.0 @ `2.13.0` (`modules/serverless`) | +| `registry/clowdhaus/rds-proxy/3.2.1` | Apache-2.0 | https://registry.terraform.io/modules/clowdhaus/rds-proxy/aws/3.2.1 @ `3.2.1` | +| `registry/cn-terraform/cloudwatch-logs/1.0.13` | Apache-2.0 | https://registry.terraform.io/modules/cn-terraform/cloudwatch-logs/aws/1.0.13 @ `1.0.13` | +| `registry/cn-terraform/ecs-alb/1.0.37` | Apache-2.0 | https://registry.terraform.io/modules/cn-terraform/ecs-alb/aws/1.0.37 @ `1.0.37` | +| `registry/cn-terraform/ecs-cluster/2.0.1` | Apache-2.0 | https://registry.terraform.io/modules/cn-terraform/ecs-cluster/aws/2.0.1 @ `2.0.1` | +| `registry/cn-terraform/ecs-fargate-scheduled-task/2.1.0` | Apache-2.0 | https://registry.terraform.io/modules/cn-terraform/ecs-fargate-scheduled-task/aws/2.1.0 @ `2.1.0` | +| `registry/cn-terraform/ecs-fargate-service/2.0.50` | Apache-2.0 | https://registry.terraform.io/modules/cn-terraform/ecs-fargate-service/aws/2.0.50 @ `2.0.50` | +| `registry/cn-terraform/ecs-fargate-task-definition/1.0.38` | Apache-2.0 | https://registry.terraform.io/modules/cn-terraform/ecs-fargate-task-definition/aws/1.0.38 @ `1.0.38` | +| `registry/cn-terraform/ecs-service-autoscaling/1.0.12` | Apache-2.0 | https://registry.terraform.io/modules/cn-terraform/ecs-service-autoscaling/aws/1.0.12 @ `1.0.12` | +| `registry/cn-terraform/logs-s3-bucket/2.0.1` | Apache-2.0 | https://registry.terraform.io/modules/cn-terraform/logs-s3-bucket/aws/2.0.1 @ `2.0.1` | +| `registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/alb-logs-to-s3-to-cloudwatch`) | +| `registry/dasmeta/modules/3.1.0/modules/alb-logs-to-s3-to-cloudwatch/alb-to-s3-to-cloudwatch-lambda` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/alb-logs-to-s3-to-cloudwatch/alb-to-s3-to-cloudwatch-lambda`) | +| `registry/dasmeta/modules/3.1.0/modules/api-gateway-account-settings` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/api-gateway-account-settings`) | +| `registry/dasmeta/modules/3.1.0/modules/api-gateway/custom-domain` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/api-gateway/custom-domain`) | +| `registry/dasmeta/modules/3.1.0/modules/appconfig` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/appconfig`) | +| `registry/dasmeta/modules/3.1.0/modules/aws-alb-to-cloudwatch-lambda/tests/changes` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/aws-alb-to-cloudwatch-lambda/tests/changes`) | +| `registry/dasmeta/modules/3.1.0/modules/aws-cloudfront-security-headers` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/aws-cloudfront-security-headers`) | +| `registry/dasmeta/modules/3.1.0/modules/aws-cloudwatch-prometheus-metrics` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/aws-cloudwatch-prometheus-metrics`) | +| `registry/dasmeta/modules/3.1.0/modules/aws-rds-postgres` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/aws-rds-postgres`) | +| `registry/dasmeta/modules/3.1.0/modules/aws-site-to-site-vpn` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/aws-site-to-site-vpn`) | +| `registry/dasmeta/modules/3.1.0/modules/aws-vpc-peering` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/aws-vpc-peering`) | +| `registry/dasmeta/modules/3.1.0/modules/budgets` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/budgets`) | +| `registry/dasmeta/modules/3.1.0/modules/cloudfront-ssl-hsts` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cloudfront-ssl-hsts`) | +| `registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cloudfront-to-s3-to-cloudwatch`) | +| `registry/dasmeta/modules/3.1.0/modules/cloudfront-to-s3-to-cloudwatch/cloudfront-to-s3-to-cloudwatch` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cloudfront-to-s3-to-cloudwatch/cloudfront-to-s3-to-cloudwatch`) | +| `registry/dasmeta/modules/3.1.0/modules/cloudfront/modules/cloudfront_functions` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cloudfront/modules/cloudfront_functions`) | +| `registry/dasmeta/modules/3.1.0/modules/cloudfront/modules/response_headers` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cloudfront/modules/response_headers`) | +| `registry/dasmeta/modules/3.1.0/modules/cloudtrail` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cloudtrail`) | +| `registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cloudtrail-s3-to-cloudwatch`) | +| `registry/dasmeta/modules/3.1.0/modules/cloudtrail-s3-to-cloudwatch/cloudtrail-log-to-cloudwatch` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cloudtrail-s3-to-cloudwatch/cloudtrail-log-to-cloudwatch`) | +| `registry/dasmeta/modules/3.1.0/modules/cloudtrail/modules/cmdb-integration` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cloudtrail/modules/cmdb-integration`) | +| `registry/dasmeta/modules/3.1.0/modules/cloudwatch` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cloudwatch`) | +| `registry/dasmeta/modules/3.1.0/modules/cloudwatch-alarm-notify` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cloudwatch-alarm-notify`) | +| `registry/dasmeta/modules/3.1.0/modules/cloudwatch-cross-account-share-data` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cloudwatch-cross-account-share-data`) | +| `registry/dasmeta/modules/3.1.0/modules/codecommit` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/codecommit`) | +| `registry/dasmeta/modules/3.1.0/modules/cognito-identitiy-pool` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cognito-identitiy-pool`) | +| `registry/dasmeta/modules/3.1.0/modules/cognito-identity` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cognito-identity`) | +| `registry/dasmeta/modules/3.1.0/modules/cognito-identity-pool-final` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cognito-identity-pool-final`) | +| `registry/dasmeta/modules/3.1.0/modules/cognito-user-pool` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/cognito-user-pool`) | +| `registry/dasmeta/modules/3.1.0/modules/ec2` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/ec2`) | +| `registry/dasmeta/modules/3.1.0/modules/ecr` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/ecr`) | +| `registry/dasmeta/modules/3.1.0/modules/efs` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/efs`) | +| `registry/dasmeta/modules/3.1.0/modules/efs/tests/regular-with-mount-points` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/efs/tests/regular-with-mount-points`) | +| `registry/dasmeta/modules/3.1.0/modules/eks-iam-user-constrain` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/eks-iam-user-constrain`) | +| `registry/dasmeta/modules/3.1.0/modules/elastic-search` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/elastic-search`) | +| `registry/dasmeta/modules/3.1.0/modules/external-secret-store` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/external-secret-store`) | +| `registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/fluent-bit-logs-s3-to-cloudwatch`) | +| `registry/dasmeta/modules/3.1.0/modules/fluent-bit-logs-s3-to-cloudwatch/fb-s3-cloudwatch` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/fluent-bit-logs-s3-to-cloudwatch/fb-s3-cloudwatch`) | +| `registry/dasmeta/modules/3.1.0/modules/fluent-bit-to-s3` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/fluent-bit-to-s3`) | +| `registry/dasmeta/modules/3.1.0/modules/global-accelerator` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/global-accelerator`) | +| `registry/dasmeta/modules/3.1.0/modules/iam-account-password-policy` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/iam-account-password-policy`) | +| `registry/dasmeta/modules/3.1.0/modules/iam-group` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/iam-group`) | +| `registry/dasmeta/modules/3.1.0/modules/ingress` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/ingress`) | +| `registry/dasmeta/modules/3.1.0/modules/kms` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/kms`) | +| `registry/dasmeta/modules/3.1.0/modules/metric-filter` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/metric-filter`) | +| `registry/dasmeta/modules/3.1.0/modules/mongodb-atlas` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/mongodb-atlas`) | +| `registry/dasmeta/modules/3.1.0/modules/nlb` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/nlb`) | +| `registry/dasmeta/modules/3.1.0/modules/route53-alerts-notify` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/route53-alerts-notify`) | +| `registry/dasmeta/modules/3.1.0/modules/secret` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/secret`) | +| `registry/dasmeta/modules/3.1.0/modules/secret-reader` | Apache-2.0 | https://registry.terraform.io/modules/dasmeta/modules/aws/3.1.0 @ `3.1.0` (`modules/secret-reader`) | +| `registry/dcos-terraform/bootstrap/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/bootstrap/aws/0.3.0 @ `0.3.0` | +| `registry/dcos-terraform/dcos/0.3.4/docs/published` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/dcos/aws/0.3.4 @ `0.3.4` (`docs/published`) | +| `registry/dcos-terraform/dcos/0.3.4/examples/calico` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/dcos/aws/0.3.4 @ `0.3.4` (`examples/calico`) | +| `registry/dcos-terraform/dcos/0.3.4/examples/pull-request-open-source` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/dcos/aws/0.3.4 @ `0.3.4` (`examples/pull-request-open-source`) | +| `registry/dcos-terraform/dcos/0.3.4/examples/simple-enterprise-edition` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/dcos/aws/0.3.4 @ `0.3.4` (`examples/simple-enterprise-edition`) | +| `registry/dcos-terraform/dcos/0.3.4/examples/simple-open-source` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/dcos/aws/0.3.4 @ `0.3.4` (`examples/simple-open-source`) | +| `registry/dcos-terraform/iam/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/iam/aws/0.3.0 @ `0.3.0` | +| `registry/dcos-terraform/infrastructure/0.3.2` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/infrastructure/aws/0.3.2 @ `0.3.2` | +| `registry/dcos-terraform/instance/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/instance/aws/0.3.0 @ `0.3.0` | +| `registry/dcos-terraform/lb-dcos/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/lb-dcos/aws/0.3.0 @ `0.3.0` | +| `registry/dcos-terraform/lb-masters-internal/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/lb-masters-internal/aws/0.3.0 @ `0.3.0` | +| `registry/dcos-terraform/lb-masters/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/lb-masters/aws/0.3.0 @ `0.3.0` | +| `registry/dcos-terraform/lb-public-agents/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/lb-public-agents/aws/0.3.0 @ `0.3.0` | +| `registry/dcos-terraform/lb/0.3.1` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/lb/aws/0.3.1 @ `0.3.1` | +| `registry/dcos-terraform/masters/0.3.1` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/masters/aws/0.3.1 @ `0.3.1` | +| `registry/dcos-terraform/private-agents/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/private-agents/aws/0.3.0 @ `0.3.0` | +| `registry/dcos-terraform/public-agents/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/public-agents/aws/0.3.0 @ `0.3.0` | +| `registry/dcos-terraform/security-groups/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/security-groups/aws/0.3.0 @ `0.3.0` | +| `registry/dcos-terraform/tested-oses/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/tested-oses/aws/0.3.0 @ `0.3.0` | +| `registry/dcos-terraform/vpc/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/dcos-terraform/vpc/aws/0.3.0 @ `0.3.0` | +| `registry/diodonfrost/lambda-scheduler-stop-start/4.5.0` | Apache-2.0 | https://registry.terraform.io/modules/diodonfrost/lambda-scheduler-stop-start/aws/4.5.0 @ `4.5.0` | +| `registry/diodonfrost/lambda-scheduler-stop-start/4.5.0/examples/autoscaling-scheduler/test-execution` | Apache-2.0 | https://registry.terraform.io/modules/diodonfrost/lambda-scheduler-stop-start/aws/4.5.0 @ `4.5.0` (`examples/autoscaling-scheduler/test-execution`) | +| `registry/draios/secure-for-cloud/0.10.29/modules/services/agentless-scanning` | Apache-2.0 | https://registry.terraform.io/modules/draios/secure-for-cloud/aws/0.10.29 @ `0.10.29` (`modules/services/agentless-scanning`) | +| `registry/draios/secure-for-cloud/0.10.29/modules/services/cloud-logs` | Apache-2.0 | https://registry.terraform.io/modules/draios/secure-for-cloud/aws/0.10.29 @ `0.10.29` (`modules/services/cloud-logs`) | +| `registry/draios/secure-for-cloud/0.10.29/modules/services/eks` | Apache-2.0 | https://registry.terraform.io/modules/draios/secure-for-cloud/aws/0.10.29 @ `0.10.29` (`modules/services/eks`) | +| `registry/draios/secure-for-cloud/0.10.29/modules/services/event-bridge` | Apache-2.0 | https://registry.terraform.io/modules/draios/secure-for-cloud/aws/0.10.29 @ `0.10.29` (`modules/services/event-bridge`) | +| `registry/draios/secure-for-cloud/0.10.29/modules/services/trust-relationship` | Apache-2.0 | https://registry.terraform.io/modules/draios/secure-for-cloud/aws/0.10.29 @ `0.10.29` (`modules/services/trust-relationship`) | +| `registry/draios/secure-for-cloud/0.10.29/modules/services/workload-scanning` | Apache-2.0 | https://registry.terraform.io/modules/draios/secure-for-cloud/aws/0.10.29 @ `0.10.29` (`modules/services/workload-scanning`) | +| `registry/dubiety/elasticsearch-cloudwatch-sns-alarms/3.0.3` | Apache-2.0 | https://registry.terraform.io/modules/dubiety/elasticsearch-cloudwatch-sns-alarms/aws/3.0.3 @ `3.0.3` | +| `registry/dwp/vpc/3.0.24` | MIT | https://registry.terraform.io/modules/dwp/vpc/aws/3.0.24 @ `3.0.24` | +| `registry/fdmsantos/kinesis-firehose/4.0.0` | Apache-2.0 | https://registry.terraform.io/modules/fdmsantos/kinesis-firehose/aws/4.0.0 @ `4.0.0` | +| `registry/fpco/foundation/0.9.16/modules/alb` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/alb`) | +| `registry/fpco/foundation/0.9.16/modules/alb-default-forward` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/alb-default-forward`) | +| `registry/fpco/foundation/0.9.16/modules/alb-redirect` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/alb-redirect`) | +| `registry/fpco/foundation/0.9.16/modules/ami-centos` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/ami-centos`) | +| `registry/fpco/foundation/0.9.16/modules/ami-ubuntu` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/ami-ubuntu`) | +| `registry/fpco/foundation/0.9.16/modules/asg` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/asg`) | +| `registry/fpco/foundation/0.9.16/modules/autoscaling-policy-metric-alarm-pair` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/autoscaling-policy-metric-alarm-pair`) | +| `registry/fpco/foundation/0.9.16/modules/aws-ipsec-vpn` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/aws-ipsec-vpn`) | +| `registry/fpco/foundation/0.9.16/modules/bind-server-sg` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/bind-server-sg`) | +| `registry/fpco/foundation/0.9.16/modules/cloudtrail` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/cloudtrail`) | +| `registry/fpco/foundation/0.9.16/modules/cloudwatch-auto-recover-existing-ec2` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/cloudwatch-auto-recover-existing-ec2`) | +| `registry/fpco/foundation/0.9.16/modules/cloudwatch-exporter-iam` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/cloudwatch-exporter-iam`) | +| `registry/fpco/foundation/0.9.16/modules/cloudwatch-logs-s3-bucket` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/cloudwatch-logs-s3-bucket`) | +| `registry/fpco/foundation/0.9.16/modules/cluster-network` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/cluster-network`) | +| `registry/fpco/foundation/0.9.16/modules/consul-leader-wan-sg` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/consul-leader-wan-sg`) | +| `registry/fpco/foundation/0.9.16/modules/credstash-grant-reader` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/credstash-grant-reader`) | +| `registry/fpco/foundation/0.9.16/modules/credstash-grant-writer` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/credstash-grant-writer`) | +| `registry/fpco/foundation/0.9.16/modules/credstash-setup` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/credstash-setup`) | +| `registry/fpco/foundation/0.9.16/modules/cross-account-assume-role-policy` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/cross-account-assume-role-policy`) | +| `registry/fpco/foundation/0.9.16/modules/cross-account-role` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/cross-account-role`) | +| `registry/fpco/foundation/0.9.16/modules/dlm-lifecycle-policy` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/dlm-lifecycle-policy`) | +| `registry/fpco/foundation/0.9.16/modules/ebs-snapshot-iam` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/ebs-snapshot-iam`) | +| `registry/fpco/foundation/0.9.16/modules/ec2-auto-recover-instances` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/ec2-auto-recover-instances`) | +| `registry/fpco/foundation/0.9.16/modules/elk-r53` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/elk-r53`) | +| `registry/fpco/foundation/0.9.16/modules/etcd-server-sg` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/etcd-server-sg`) | +| `registry/fpco/foundation/0.9.16/modules/external-dns-iam` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/external-dns-iam`) | +| `registry/fpco/foundation/0.9.16/modules/iam-group` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/iam-group`) | +| `registry/fpco/foundation/0.9.16/modules/iam-instance-profile` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/iam-instance-profile`) | +| `registry/fpco/foundation/0.9.16/modules/iam-users` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/iam-users`) | +| `registry/fpco/foundation/0.9.16/modules/kibana` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/kibana`) | +| `registry/fpco/foundation/0.9.16/modules/kube-controller-iam` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/kube-controller-iam`) | +| `registry/fpco/foundation/0.9.16/modules/kube-worker-iam` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/kube-worker-iam`) | +| `registry/fpco/foundation/0.9.16/modules/kubernetes-vpc` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/kubernetes-vpc`) | +| `registry/fpco/foundation/0.9.16/modules/leader-dns` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/leader-dns`) | +| `registry/fpco/foundation/0.9.16/modules/mongo-server-sg` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/mongo-server-sg`) | +| `registry/fpco/foundation/0.9.16/modules/multi-volumes` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/multi-volumes`) | +| `registry/fpco/foundation/0.9.16/modules/nat-gateways` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/nat-gateways`) | +| `registry/fpco/foundation/0.9.16/modules/nomad-agent-sg` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/nomad-agent-sg`) | +| `registry/fpco/foundation/0.9.16/modules/nomad-agent-worker-ports-sg` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/nomad-agent-worker-ports-sg`) | +| `registry/fpco/foundation/0.9.16/modules/nomad-server-sg` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/nomad-server-sg`) | +| `registry/fpco/foundation/0.9.16/modules/open-egress-sg` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/open-egress-sg`) | +| `registry/fpco/foundation/0.9.16/modules/open-ingress-sg` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/open-ingress-sg`) | +| `registry/fpco/foundation/0.9.16/modules/packer-vpc` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/packer-vpc`) | +| `registry/fpco/foundation/0.9.16/modules/persistent-ebs` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/persistent-ebs`) | +| `registry/fpco/foundation/0.9.16/modules/persistent-ebs-volumes` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/persistent-ebs-volumes`) | +| `registry/fpco/foundation/0.9.16/modules/ping-request-sg` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/ping-request-sg`) | +| `registry/fpco/foundation/0.9.16/modules/ping-respond-sg` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/ping-respond-sg`) | +| `registry/fpco/foundation/0.9.16/modules/prometheus-node-exporter-sg` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/prometheus-node-exporter-sg`) | +| `registry/fpco/foundation/0.9.16/modules/r53-subdomain` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/r53-subdomain`) | +| `registry/fpco/foundation/0.9.16/modules/rds` | MIT | https://registry.terraform.io/modules/fpco/foundation/aws/0.9.16 @ `0.9.16` (`modules/rds`) | +| `registry/gazoakley/session-manager-settings/2.2.0` | Apache-2.0 | https://registry.terraform.io/modules/gazoakley/session-manager-settings/aws/2.2.0 @ `2.2.0` | +| `registry/github-aws-runners/github-runner/8.0.0` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` | +| `registry/github-aws-runners/github-runner/8.0.0/examples/base` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`examples/base`) | +| `registry/github-aws-runners/github-runner/8.0.0/examples/dedicated-mac-hosts` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`examples/dedicated-mac-hosts`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/ami-housekeeper` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/ami-housekeeper`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/compute-providers/aws/ec2`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/compute-providers/aws/ec2/trust-policy` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/compute-providers/aws/ec2/trust-policy`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/lambda` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/lambda`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/scale-set` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/orchestration-providers/scale-set`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/orchestration-providers/webhook`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/job-retry` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/orchestration-providers/webhook/job-retry`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/pool` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/orchestration-providers/webhook/pool`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/orchestration-providers/webhook/scale-runners` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/orchestration-providers/webhook/scale-runners`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/runner-binaries-syncer` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/runner-binaries-syncer`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/runner-config/ssm-housekeeper` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/runner-config/ssm-housekeeper`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/runners/pool` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/runners/pool`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/setup-iam-permissions` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/setup-iam-permissions`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/storage-providers/aws/ssm` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/storage-providers/aws/ssm`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/webhook` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/webhook`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/webhook/direct` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/webhook/direct`) | +| `registry/github-aws-runners/github-runner/8.0.0/modules/webhook/eventbridge` | MIT | https://registry.terraform.io/modules/github-aws-runners/github-runner/aws/8.0.0 @ `8.0.0` (`modules/webhook/eventbridge`) | +| `registry/grem11n/vpc-peering/8.0.0` | Apache-2.0 | https://registry.terraform.io/modules/grem11n/vpc-peering/aws/8.0.0 @ `8.0.0` | +| `registry/grem11n/vpc-peering/8.0.0/test/fixtures/associated-cidr` | Apache-2.0 | https://registry.terraform.io/modules/grem11n/vpc-peering/aws/8.0.0 @ `8.0.0` (`test/fixtures/associated-cidr`) | +| `registry/grem11n/vpc-peering/8.0.0/test/fixtures/custom-name` | Apache-2.0 | https://registry.terraform.io/modules/grem11n/vpc-peering/aws/8.0.0 @ `8.0.0` (`test/fixtures/custom-name`) | +| `registry/grem11n/vpc-peering/8.0.0/test/fixtures/default-name` | Apache-2.0 | https://registry.terraform.io/modules/grem11n/vpc-peering/aws/8.0.0 @ `8.0.0` (`test/fixtures/default-name`) | +| `registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-multi-region` | Apache-2.0 | https://registry.terraform.io/modules/grem11n/vpc-peering/aws/8.0.0 @ `8.0.0` (`test/fixtures/multi-account-multi-region`) | +| `registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-single-region` | Apache-2.0 | https://registry.terraform.io/modules/grem11n/vpc-peering/aws/8.0.0 @ `8.0.0` (`test/fixtures/multi-account-single-region`) | +| `registry/grem11n/vpc-peering/8.0.0/test/fixtures/multi-account-single-region-both-dualstack` | Apache-2.0 | https://registry.terraform.io/modules/grem11n/vpc-peering/aws/8.0.0 @ `8.0.0` (`test/fixtures/multi-account-single-region-both-dualstack`) | +| `registry/grem11n/vpc-peering/8.0.0/test/fixtures/partial-subnets` | Apache-2.0 | https://registry.terraform.io/modules/grem11n/vpc-peering/aws/8.0.0 @ `8.0.0` (`test/fixtures/partial-subnets`) | +| `registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-multi-region` | Apache-2.0 | https://registry.terraform.io/modules/grem11n/vpc-peering/aws/8.0.0 @ `8.0.0` (`test/fixtures/single-account-multi-region`) | +| `registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region` | Apache-2.0 | https://registry.terraform.io/modules/grem11n/vpc-peering/aws/8.0.0 @ `8.0.0` (`test/fixtures/single-account-single-region`) | +| `registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region-one-dualstack` | Apache-2.0 | https://registry.terraform.io/modules/grem11n/vpc-peering/aws/8.0.0 @ `8.0.0` (`test/fixtures/single-account-single-region-one-dualstack`) | +| `registry/grem11n/vpc-peering/8.0.0/test/fixtures/single-account-single-region-with-options` | Apache-2.0 | https://registry.terraform.io/modules/grem11n/vpc-peering/aws/8.0.0 @ `8.0.0` (`test/fixtures/single-account-single-region-with-options`) | +| `registry/hashicorp/consul/0.11.0` | Apache-2.0 | https://registry.terraform.io/modules/hashicorp/consul/aws/0.11.0 @ `0.11.0` | +| `registry/hashicorp/consul/0.11.0/modules/consul-client-security-group-rules` | Apache-2.0 | https://registry.terraform.io/modules/hashicorp/consul/aws/0.11.0 @ `0.11.0` (`modules/consul-client-security-group-rules`) | +| `registry/hashicorp/consul/0.11.0/modules/consul-iam-policies` | Apache-2.0 | https://registry.terraform.io/modules/hashicorp/consul/aws/0.11.0 @ `0.11.0` (`modules/consul-iam-policies`) | +| `registry/hashicorp/hashicorp-vault-eks-addon/1.0.0-rc2/blueprints/getting-started` | Apache-2.0 | https://registry.terraform.io/modules/hashicorp/hashicorp-vault-eks-addon/aws/1.0.0-rc2 @ `1.0.0-rc2` (`blueprints/getting-started`) | +| `registry/hashicorp/vault/0.17.0` | Apache-2.0 | https://registry.terraform.io/modules/hashicorp/vault/aws/0.17.0 @ `0.17.0` | +| `registry/hashicorp/vault/0.17.0/examples/vault-dynamodb-backend/dynamodb` | Apache-2.0 | https://registry.terraform.io/modules/hashicorp/vault/aws/0.17.0 @ `0.17.0` (`examples/vault-dynamodb-backend/dynamodb`) | +| `registry/hashicorp/vault/0.17.0/modules/vault-elb` | Apache-2.0 | https://registry.terraform.io/modules/hashicorp/vault/aws/0.17.0 @ `0.17.0` (`modules/vault-elb`) | +| `registry/hashicorp/vault/0.17.0/modules/vault-security-group-rules` | Apache-2.0 | https://registry.terraform.io/modules/hashicorp/vault/aws/0.17.0 @ `0.17.0` (`modules/vault-security-group-rules`) | +| `registry/hmrc/s3-bucket-core/3.2.2` | Apache-2.0 | https://registry.terraform.io/modules/hmrc/s3-bucket-core/aws/3.2.2 @ `3.2.2` | +| `registry/honeycombio/integrations/2.3.1` | Apache-2.0 | https://registry.terraform.io/modules/honeycombio/integrations/aws/2.3.1 @ `2.3.1` | +| `registry/honeycombio/integrations/2.3.1/examples/cloudwatch-logs` | Apache-2.0 | https://registry.terraform.io/modules/honeycombio/integrations/aws/2.3.1 @ `2.3.1` (`examples/cloudwatch-logs`) | +| `registry/honeycombio/integrations/2.3.1/examples/cloudwatch-metrics` | Apache-2.0 | https://registry.terraform.io/modules/honeycombio/integrations/aws/2.3.1 @ `2.3.1` (`examples/cloudwatch-metrics`) | +| `registry/honeycombio/integrations/2.3.1/examples/complete` | Apache-2.0 | https://registry.terraform.io/modules/honeycombio/integrations/aws/2.3.1 @ `2.3.1` (`examples/complete`) | +| `registry/honeycombio/integrations/2.3.1/examples/rds-logs/mysql` | Apache-2.0 | https://registry.terraform.io/modules/honeycombio/integrations/aws/2.3.1 @ `2.3.1` (`examples/rds-logs/mysql`) | +| `registry/honeycombio/integrations/2.3.1/examples/rds-logs/postgresql` | Apache-2.0 | https://registry.terraform.io/modules/honeycombio/integrations/aws/2.3.1 @ `2.3.1` (`examples/rds-logs/postgresql`) | +| `registry/honeycombio/integrations/2.3.1/examples/s3-logfile` | Apache-2.0 | https://registry.terraform.io/modules/honeycombio/integrations/aws/2.3.1 @ `2.3.1` (`examples/s3-logfile`) | +| `registry/honeycombio/integrations/2.3.1/modules/kinesis-firehose-honeycomb` | Apache-2.0 | https://registry.terraform.io/modules/honeycombio/integrations/aws/2.3.1 @ `2.3.1` (`modules/kinesis-firehose-honeycomb`) | +| `registry/honeycombio/integrations/2.3.1/modules/s3-logfile` | Apache-2.0 | https://registry.terraform.io/modules/honeycombio/integrations/aws/2.3.1 @ `2.3.1` (`modules/s3-logfile`) | +| `registry/infrablocks/base-networking/6.1.0-rc.1` | MIT | https://registry.terraform.io/modules/infrablocks/base-networking/aws/6.1.0-rc.1 @ `6.1.0-rc.1` | +| `registry/infrablocks/base-networking/6.1.0-rc.1/spec/unit/infra/prerequisites` | MIT | https://registry.terraform.io/modules/infrablocks/base-networking/aws/6.1.0-rc.1 @ `6.1.0-rc.1` (`spec/unit/infra/prerequisites`) | +| `registry/infrablocks/ecs-cluster/6.2.0-rc.2/spec/unit/infra/prerequisites` | MIT | https://registry.terraform.io/modules/infrablocks/ecs-cluster/aws/6.2.0-rc.2 @ `6.2.0-rc.2` (`spec/unit/infra/prerequisites`) | +| `registry/infrablocks/ecs-service/5.2.0-rc.4` | MIT | https://registry.terraform.io/modules/infrablocks/ecs-service/aws/5.2.0-rc.4 @ `5.2.0-rc.4` | +| `registry/infrablocks/ecs-service/5.2.0-rc.4/spec/unit/infra/prerequisites` | MIT | https://registry.terraform.io/modules/infrablocks/ecs-service/aws/5.2.0-rc.4 @ `5.2.0-rc.4` (`spec/unit/infra/prerequisites`) | +| `registry/int128/nat-instance/2.1.0` | Apache-2.0 | https://registry.terraform.io/modules/int128/nat-instance/aws/2.1.0 @ `2.1.0` | +| `registry/jeromegamez/enforce-mfa/2.0.0` | MIT | https://registry.terraform.io/modules/jeromegamez/enforce-mfa/aws/2.0.0 @ `2.0.0` | +| `registry/jmgreg31/cloudfront/5.0.1/cloudfront` | MIT | https://registry.terraform.io/modules/jmgreg31/cloudfront/aws/5.0.1 @ `5.0.1` (`cloudfront`) | +| `registry/jmgreg31/cloudfront/5.0.1/example` | MIT | https://registry.terraform.io/modules/jmgreg31/cloudfront/aws/5.0.1 @ `5.0.1` (`example`) | +| `registry/jpamies/certificate/2.0.0` | Apache-2.0 | https://registry.terraform.io/modules/jpamies/certificate/aws/2.0.0 @ `2.0.0` | +| `registry/k9securityio/kms-key/0.7.0` | Apache-2.0 | https://registry.terraform.io/modules/k9securityio/kms-key/aws/0.7.0 @ `0.7.0` | +| `registry/k9securityio/kms-key/0.7.0/k9policy` | Apache-2.0 | https://registry.terraform.io/modules/k9securityio/kms-key/aws/0.7.0 @ `0.7.0` (`k9policy`) | +| `registry/lablabs/eks-cluster-autoscaler/5.0.1` | Apache-2.0 | https://registry.terraform.io/modules/lablabs/eks-cluster-autoscaler/aws/5.0.1 @ `5.0.1` | +| `registry/lablabs/eks-efs-csi-driver/3.0.1` | Apache-2.0 | https://registry.terraform.io/modules/lablabs/eks-efs-csi-driver/aws/3.0.1 @ `3.0.1` | +| `registry/lablabs/eks-external-dns/4.0.1` | Apache-2.0 | https://registry.terraform.io/modules/lablabs/eks-external-dns/aws/4.0.1 @ `4.0.1` | +| `registry/lablabs/eks-kube-state-metrics/4.0.1` | Apache-2.0 | https://registry.terraform.io/modules/lablabs/eks-kube-state-metrics/aws/4.0.1 @ `4.0.1` | +| `registry/lablabs/eks-load-balancer-controller/5.0.1` | Apache-2.0 | https://registry.terraform.io/modules/lablabs/eks-load-balancer-controller/aws/5.0.1 @ `5.0.1` | +| `registry/lablabs/eks-node-problem-detector/4.0.0` | Apache-2.0 | https://registry.terraform.io/modules/lablabs/eks-node-problem-detector/aws/4.0.0 @ `4.0.0` | +| `registry/lacework/agentless-scanning/0.19.0` | MIT | https://registry.terraform.io/modules/lacework/agentless-scanning/aws/0.19.0 @ `0.19.0` | +| `registry/lacework/ecr/0.9.3` | MIT | https://registry.terraform.io/modules/lacework/ecr/aws/0.9.3 @ `0.9.3` | +| `registry/lacework/ecs-agent/0.5.3` | MIT | https://registry.terraform.io/modules/lacework/ecs-agent/aws/0.5.3 @ `0.5.3` | +| `registry/lacework/eks-audit-log/1.2.0` | MIT | https://registry.terraform.io/modules/lacework/eks-audit-log/aws/1.2.0 @ `1.2.0` | +| `registry/lacework/ssm-agent/1.0.2` | MIT | https://registry.terraform.io/modules/lacework/ssm-agent/aws/1.0.2 @ `1.0.2` | +| `registry/lazzurs/efs/0.3.3` | MIT | https://registry.terraform.io/modules/lazzurs/efs/aws/0.3.3 @ `0.3.3` | +| `registry/lgallard/cognito-user-pool/5.1.4` | Apache-2.0 | https://registry.terraform.io/modules/lgallard/cognito-user-pool/aws/5.1.4 @ `5.1.4` | +| `registry/lgallard/ecr/2.1.1` | Apache-2.0 | https://registry.terraform.io/modules/lgallard/ecr/aws/2.1.1 @ `2.1.1` | +| `registry/lgallard/ecr/2.1.1/modules/kms` | Apache-2.0 | https://registry.terraform.io/modules/lgallard/ecr/aws/2.1.1 @ `2.1.1` (`modules/kms`) | +| `registry/lgallard/ecr/2.1.1/modules/pull-through-cache` | Apache-2.0 | https://registry.terraform.io/modules/lgallard/ecr/aws/2.1.1 @ `2.1.1` (`modules/pull-through-cache`) | +| `registry/lgallard/elasticsearch/0.14.1` | Apache-2.0 | https://registry.terraform.io/modules/lgallard/elasticsearch/aws/0.14.1 @ `0.14.1` | +| `registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_arn` | Apache-2.0 | https://registry.terraform.io/modules/lgallard/elasticsearch/aws/0.14.1 @ `0.14.1` (`examples/advanced_security_options_master_user_arn`) | +| `registry/lgallard/elasticsearch/0.14.1/examples/advanced_security_options_master_user_name_pasword` | Apache-2.0 | https://registry.terraform.io/modules/lgallard/elasticsearch/aws/0.14.1 @ `0.14.1` (`examples/advanced_security_options_master_user_name_pasword`) | +| `registry/lgallard/elasticsearch/0.14.1/examples/vpc` | Apache-2.0 | https://registry.terraform.io/modules/lgallard/elasticsearch/aws/0.14.1 @ `0.14.1` (`examples/vpc`) | +| `registry/lgallard/secrets-manager/1.3.0` | Apache-2.0 | https://registry.terraform.io/modules/lgallard/secrets-manager/aws/1.3.0 @ `1.3.0` | +| `registry/lorenzoaiello/rds-alarms/2.4.1` | MIT | https://registry.terraform.io/modules/lorenzoaiello/rds-alarms/aws/2.4.1 @ `2.4.1` | +| `registry/masterpointio/ssm-agent/1.8.1` | Apache-2.0 | https://registry.terraform.io/modules/masterpointio/ssm-agent/aws/1.8.1 @ `1.8.1` | +| `registry/masterpointio/tailscale/2.1.0` | Apache-2.0 | https://registry.terraform.io/modules/masterpointio/tailscale/aws/2.1.0 @ `2.1.0` | +| `registry/mewa/apigateway-cors/2.0.1` | MIT | https://registry.terraform.io/modules/mewa/apigateway-cors/aws/2.0.1 @ `2.0.1` | +| `registry/milliHQ/next-js-image-optimization/12.1.3` | Apache-2.0 | https://registry.terraform.io/modules/milliHQ/next-js-image-optimization/aws/12.1.3 @ `12.1.3` | +| `registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-custom-domain` | Apache-2.0 | https://registry.terraform.io/modules/milliHQ/next-js-image-optimization/aws/12.1.3 @ `12.1.3` (`examples/with-custom-domain`) | +| `registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-existing-cloudfront` | Apache-2.0 | https://registry.terraform.io/modules/milliHQ/next-js-image-optimization/aws/12.1.3 @ `12.1.3` (`examples/with-existing-cloudfront`) | +| `registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-next-js` | Apache-2.0 | https://registry.terraform.io/modules/milliHQ/next-js-image-optimization/aws/12.1.3 @ `12.1.3` (`examples/with-next-js`) | +| `registry/milliHQ/next-js-image-optimization/12.1.3/examples/with-next-js-export` | Apache-2.0 | https://registry.terraform.io/modules/milliHQ/next-js-image-optimization/aws/12.1.3 @ `12.1.3` (`examples/with-next-js-export`) | +| `registry/milliHQ/next-js-image-optimization/12.1.3/modules/cloudfront-cache` | Apache-2.0 | https://registry.terraform.io/modules/milliHQ/next-js-image-optimization/aws/12.1.3 @ `12.1.3` (`modules/cloudfront-cache`) | +| `registry/mineiros-io/s3-bucket/0.6.0` | Apache-2.0 | https://registry.terraform.io/modules/mineiros-io/s3-bucket/aws/0.6.0 @ `0.6.0` | +| `registry/mineiros-io/s3-bucket/0.6.0/examples/secure-s3-bucket` | Apache-2.0 | https://registry.terraform.io/modules/mineiros-io/s3-bucket/aws/0.6.0 @ `0.6.0` (`examples/secure-s3-bucket`) | +| `registry/mongodb/ecs-task-definition/2.1.5` | Apache-2.0 | https://registry.terraform.io/modules/mongodb/ecs-task-definition/aws/2.1.5 @ `2.1.5` | +| `registry/moritzzimmer/lambda/8.6.0` | MIT | https://registry.terraform.io/modules/moritzzimmer/lambda/aws/8.6.0 @ `8.6.0` | +| `registry/moritzzimmer/lambda/8.6.0/modules/deployment` | MIT | https://registry.terraform.io/modules/moritzzimmer/lambda/aws/8.6.0 @ `8.6.0` (`modules/deployment`) | +| `registry/notespacejp/cloudfront-functions-basic-auth/1.1.1` | MIT | https://registry.terraform.io/modules/notespacejp/cloudfront-functions-basic-auth/aws/1.1.1 @ `1.1.1` | +| `registry/nozaq/remote-state-s3-backend/1.6.1` | MIT | https://registry.terraform.io/modules/nozaq/remote-state-s3-backend/aws/1.6.1 @ `1.6.1` | +| `registry/nozaq/secure-baseline/2.1.0` | MIT | https://registry.terraform.io/modules/nozaq/secure-baseline/aws/2.1.0 @ `2.1.0` | +| `registry/nozaq/secure-baseline/2.1.0/modules/alarm-baseline` | MIT | https://registry.terraform.io/modules/nozaq/secure-baseline/aws/2.1.0 @ `2.1.0` (`modules/alarm-baseline`) | +| `registry/nozaq/secure-baseline/2.1.0/modules/analyzer-baseline` | MIT | https://registry.terraform.io/modules/nozaq/secure-baseline/aws/2.1.0 @ `2.1.0` (`modules/analyzer-baseline`) | +| `registry/nozaq/secure-baseline/2.1.0/modules/cloudtrail-baseline` | MIT | https://registry.terraform.io/modules/nozaq/secure-baseline/aws/2.1.0 @ `2.1.0` (`modules/cloudtrail-baseline`) | +| `registry/nozaq/secure-baseline/2.1.0/modules/config-baseline` | MIT | https://registry.terraform.io/modules/nozaq/secure-baseline/aws/2.1.0 @ `2.1.0` (`modules/config-baseline`) | +| `registry/nozaq/secure-baseline/2.1.0/modules/ebs-baseline` | MIT | https://registry.terraform.io/modules/nozaq/secure-baseline/aws/2.1.0 @ `2.1.0` (`modules/ebs-baseline`) | +| `registry/nozaq/secure-baseline/2.1.0/modules/guardduty-baseline` | MIT | https://registry.terraform.io/modules/nozaq/secure-baseline/aws/2.1.0 @ `2.1.0` (`modules/guardduty-baseline`) | +| `registry/nozaq/secure-baseline/2.1.0/modules/iam-baseline` | MIT | https://registry.terraform.io/modules/nozaq/secure-baseline/aws/2.1.0 @ `2.1.0` (`modules/iam-baseline`) | +| `registry/nozaq/secure-baseline/2.1.0/modules/s3-baseline` | MIT | https://registry.terraform.io/modules/nozaq/secure-baseline/aws/2.1.0 @ `2.1.0` (`modules/s3-baseline`) | +| `registry/nozaq/secure-baseline/2.1.0/modules/secure-bucket` | MIT | https://registry.terraform.io/modules/nozaq/secure-baseline/aws/2.1.0 @ `2.1.0` (`modules/secure-bucket`) | +| `registry/nozaq/secure-baseline/2.1.0/modules/securityhub-baseline` | MIT | https://registry.terraform.io/modules/nozaq/secure-baseline/aws/2.1.0 @ `2.1.0` (`modules/securityhub-baseline`) | +| `registry/nozaq/secure-baseline/2.1.0/modules/vpc-baseline` | MIT | https://registry.terraform.io/modules/nozaq/secure-baseline/aws/2.1.0 @ `2.1.0` (`modules/vpc-baseline`) | +| `registry/nozaq/secure-baseline/2.1.0/test/fixtures/simple_registry` | MIT | https://registry.terraform.io/modules/nozaq/secure-baseline/aws/2.1.0 @ `2.1.0` (`test/fixtures/simple_registry`) | +| `registry/observeinc/cloudwatch-logs-subscription/0.6.1` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/cloudwatch-logs-subscription/aws/0.6.1 @ `0.6.1` | +| `registry/observeinc/collection/4.2.0` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/collection/aws/4.2.0 @ `4.2.0` | +| `registry/observeinc/collection/4.2.0/infrastructure` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/collection/aws/4.2.0 @ `4.2.0` (`infrastructure`) | +| `registry/observeinc/collection/4.2.0/modules/cloudtrail` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/collection/aws/4.2.0 @ `4.2.0` (`modules/cloudtrail`) | +| `registry/observeinc/collection/4.2.0/modules/config` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/collection/aws/4.2.0 @ `4.2.0` (`modules/config`) | +| `registry/observeinc/collection/4.2.0/modules/configsubscription` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/collection/aws/4.2.0 @ `4.2.0` (`modules/configsubscription`) | +| `registry/observeinc/collection/4.2.0/modules/externalrole` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/collection/aws/4.2.0 @ `4.2.0` (`modules/externalrole`) | +| `registry/observeinc/collection/4.2.0/modules/sam_asset` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/collection/aws/4.2.0 @ `4.2.0` (`modules/sam_asset`) | +| `registry/observeinc/collection/4.2.0/modules/testing/s3_bucket` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/collection/aws/4.2.0 @ `4.2.0` (`modules/testing/s3_bucket`) | +| `registry/observeinc/collection/4.2.0/modules/testing/setup` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/collection/aws/4.2.0 @ `4.2.0` (`modules/testing/setup`) | +| `registry/observeinc/collection/4.2.0/modules/testing/sqs_queue` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/collection/aws/4.2.0 @ `4.2.0` (`modules/testing/sqs_queue`) | +| `registry/observeinc/kinesis-firehose/2.4.1` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/kinesis-firehose/aws/2.4.1 @ `2.4.1` | +| `registry/observeinc/kinesis-firehose/2.4.1/modules/cloudwatch_logs_subscription` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/kinesis-firehose/aws/2.4.1 @ `2.4.1` (`modules/cloudwatch_logs_subscription`) | +| `registry/observeinc/kinesis-firehose/2.4.1/modules/cloudwatch_metrics` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/kinesis-firehose/aws/2.4.1 @ `2.4.1` (`modules/cloudwatch_metrics`) | +| `registry/observeinc/kinesis-firehose/2.4.1/modules/eventbridge` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/kinesis-firehose/aws/2.4.1 @ `2.4.1` (`modules/eventbridge`) | +| `registry/observeinc/lambda/4.0.0` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/lambda/aws/4.0.0 @ `4.0.0` | +| `registry/observeinc/lambda/4.0.0/modules/cloudwatch_logs_subscription` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/lambda/aws/4.0.0 @ `4.0.0` (`modules/cloudwatch_logs_subscription`) | +| `registry/observeinc/lambda/4.0.0/modules/cloudwatch_metrics` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/lambda/aws/4.0.0 @ `4.0.0` (`modules/cloudwatch_metrics`) | +| `registry/observeinc/lambda/4.0.0/modules/s3_bucket` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/lambda/aws/4.0.0 @ `4.0.0` (`modules/s3_bucket`) | +| `registry/observeinc/lambda/4.0.0/modules/s3_bucket_subscription` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/lambda/aws/4.0.0 @ `4.0.0` (`modules/s3_bucket_subscription`) | +| `registry/observeinc/lambda/4.0.0/modules/snapshot` | Apache-2.0 | https://registry.terraform.io/modules/observeinc/lambda/aws/4.0.0 @ `4.0.0` (`modules/snapshot`) | +| `registry/philips-labs/github-oidc/0.8.1` | MIT | https://registry.terraform.io/modules/philips-labs/github-oidc/aws/0.8.1 @ `0.8.1` | +| `registry/philips-labs/github-oidc/0.8.1/modules/provider` | MIT | https://registry.terraform.io/modules/philips-labs/github-oidc/aws/0.8.1 @ `0.8.1` (`modules/provider`) | +| `registry/philips-labs/github-runner/6.1.0` | MIT | https://registry.terraform.io/modules/philips-labs/github-runner/aws/6.1.0 @ `6.1.0` | +| `registry/philips-labs/github-runner/6.1.0/examples/base` | MIT | https://registry.terraform.io/modules/philips-labs/github-runner/aws/6.1.0 @ `6.1.0` (`examples/base`) | +| `registry/philips-labs/github-runner/6.1.0/modules/ami-housekeeper` | MIT | https://registry.terraform.io/modules/philips-labs/github-runner/aws/6.1.0 @ `6.1.0` (`modules/ami-housekeeper`) | +| `registry/philips-labs/github-runner/6.1.0/modules/lambda` | MIT | https://registry.terraform.io/modules/philips-labs/github-runner/aws/6.1.0 @ `6.1.0` (`modules/lambda`) | +| `registry/philips-labs/github-runner/6.1.0/modules/runner-binaries-syncer` | MIT | https://registry.terraform.io/modules/philips-labs/github-runner/aws/6.1.0 @ `6.1.0` (`modules/runner-binaries-syncer`) | +| `registry/philips-labs/github-runner/6.1.0/modules/runners/pool` | MIT | https://registry.terraform.io/modules/philips-labs/github-runner/aws/6.1.0 @ `6.1.0` (`modules/runners/pool`) | +| `registry/philips-labs/github-runner/6.1.0/modules/setup-iam-permissions` | MIT | https://registry.terraform.io/modules/philips-labs/github-runner/aws/6.1.0 @ `6.1.0` (`modules/setup-iam-permissions`) | +| `registry/philips-labs/github-runner/6.1.0/modules/ssm` | MIT | https://registry.terraform.io/modules/philips-labs/github-runner/aws/6.1.0 @ `6.1.0` (`modules/ssm`) | +| `registry/philips-labs/github-runner/6.1.0/modules/webhook` | MIT | https://registry.terraform.io/modules/philips-labs/github-runner/aws/6.1.0 @ `6.1.0` (`modules/webhook`) | +| `registry/philips-labs/github-runner/6.1.0/modules/webhook/direct` | MIT | https://registry.terraform.io/modules/philips-labs/github-runner/aws/6.1.0 @ `6.1.0` (`modules/webhook/direct`) | +| `registry/philips-labs/github-runner/6.1.0/modules/webhook/eventbridge` | MIT | https://registry.terraform.io/modules/philips-labs/github-runner/aws/6.1.0 @ `6.1.0` (`modules/webhook/eventbridge`) | +| `registry/rad-security/rad-security-connect/0.11.0` | Apache-2.0 | https://registry.terraform.io/modules/rad-security/rad-security-connect/aws/0.11.0 @ `0.11.0` | +| `registry/rad-security/rad-security-connect/0.11.0/examples/audit_logs` | Apache-2.0 | https://registry.terraform.io/modules/rad-security/rad-security-connect/aws/0.11.0 @ `0.11.0` (`examples/audit_logs`) | +| `registry/rad-security/rad-security-connect/0.11.0/examples/audit_logs_multi_region` | Apache-2.0 | https://registry.terraform.io/modules/rad-security/rad-security-connect/aws/0.11.0 @ `0.11.0` (`examples/audit_logs_multi_region`) | +| `registry/rad-security/rad-security-connect/0.11.0/examples/basic` | Apache-2.0 | https://registry.terraform.io/modules/rad-security/rad-security-connect/aws/0.11.0 @ `0.11.0` (`examples/basic`) | +| `registry/rad-security/rad-security-connect/0.11.0/examples/ecr_image_pull` | Apache-2.0 | https://registry.terraform.io/modules/rad-security/rad-security-connect/aws/0.11.0 @ `0.11.0` (`examples/ecr_image_pull`) | +| `registry/rallyware/cognito-user-pool-client/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/rallyware/cognito-user-pool-client/aws/0.3.0 @ `0.3.0` | +| `registry/rallyware/eks-iam-role/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/rallyware/eks-iam-role/aws/0.3.0 @ `0.3.0` | +| `registry/rallyware/eks-iam-role/0.3.0/examples/basic` | Apache-2.0 | https://registry.terraform.io/modules/rallyware/eks-iam-role/aws/0.3.0 @ `0.3.0` (`examples/basic`) | +| `registry/reegnz/oidc-provider-data/0.0.4` | MIT | https://registry.terraform.io/modules/reegnz/oidc-provider-data/aws/0.0.4 @ `0.0.4` | +| `registry/reegnz/oidc-provider-data/0.0.4/examples/eks-oidc-role` | MIT | https://registry.terraform.io/modules/reegnz/oidc-provider-data/aws/0.0.4 @ `0.0.4` (`examples/eks-oidc-role`) | +| `registry/schubergphilis/mcaf-aurora/5.0.0` | Apache-2.0 | https://registry.terraform.io/modules/schubergphilis/mcaf-aurora/aws/5.0.0 @ `5.0.0` | +| `registry/schubergphilis/mcaf-kms/2.2.0` | Apache-2.0 | https://registry.terraform.io/modules/schubergphilis/mcaf-kms/aws/2.2.0 @ `2.2.0` | +| `registry/schubergphilis/mcaf-lambda/4.1.0` | Apache-2.0 | https://registry.terraform.io/modules/schubergphilis/mcaf-lambda/aws/4.1.0 @ `4.1.0` | +| `registry/schubergphilis/mcaf-role/0.5.3` | Apache-2.0 | https://registry.terraform.io/modules/schubergphilis/mcaf-role/aws/0.5.3 @ `0.5.3` | +| `registry/schubergphilis/mcaf-s3/3.0.0` | Apache-2.0 | https://registry.terraform.io/modules/schubergphilis/mcaf-s3/aws/3.0.0 @ `3.0.0` | +| `registry/schubergphilis/mcaf-user/1.0.0` | Apache-2.0 | https://registry.terraform.io/modules/schubergphilis/mcaf-user/aws/1.0.0 @ `1.0.0` | +| `registry/schubergphilis/mcaf-workspace/4.1.1` | Apache-2.0 | https://registry.terraform.io/modules/schubergphilis/mcaf-workspace/aws/4.1.1 @ `4.1.1` | +| `registry/schubergphilis/mcaf-workspace/4.1.1/modules/auth` | Apache-2.0 | https://registry.terraform.io/modules/schubergphilis/mcaf-workspace/aws/4.1.1 @ `4.1.1` (`modules/auth`) | +| `registry/scribd/datadog/4.0.0` | MIT | https://registry.terraform.io/modules/scribd/datadog/aws/4.0.0 @ `4.0.0` | +| `registry/scribd/datadog/4.0.0/examples/cloudwatch_log_sync` | MIT | https://registry.terraform.io/modules/scribd/datadog/aws/4.0.0 @ `4.0.0` (`examples/cloudwatch_log_sync`) | +| `registry/scribd/datadog/4.0.0/examples/full_integration` | MIT | https://registry.terraform.io/modules/scribd/datadog/aws/4.0.0 @ `4.0.0` (`examples/full_integration`) | +| `registry/snowplow-devops/dynamodb-autoscaling/0.2.2` | Apache-2.0 | https://registry.terraform.io/modules/snowplow-devops/dynamodb-autoscaling/aws/0.2.2 @ `0.2.2` | +| `registry/sprylab/purple-s3-cloudfront/0.3.0` | Apache-2.0 | https://registry.terraform.io/modules/sprylab/purple-s3-cloudfront/aws/0.3.0 @ `0.3.0` | +| `registry/sprylab/purple-s3-cloudfront/0.3.0/modules/cloudfront` | Apache-2.0 | https://registry.terraform.io/modules/sprylab/purple-s3-cloudfront/aws/0.3.0 @ `0.3.0` (`modules/cloudfront`) | +| `registry/sprylab/purple-s3-cloudfront/0.3.0/modules/lambdas` | Apache-2.0 | https://registry.terraform.io/modules/sprylab/purple-s3-cloudfront/aws/0.3.0 @ `0.3.0` (`modules/lambdas`) | +| `registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-fargate-profiles` | Apache-2.0 | https://registry.terraform.io/modules/squareops/eks-bootstrap/aws/3.1.1 @ `3.1.1` (`EKS-Blueprint/modules/aws-eks-fargate-profiles`) | +| `registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-managed-node-groups` | Apache-2.0 | https://registry.terraform.io/modules/squareops/eks-bootstrap/aws/3.1.1 @ `3.1.1` (`EKS-Blueprint/modules/aws-eks-managed-node-groups`) | +| `registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-eks-teams` | Apache-2.0 | https://registry.terraform.io/modules/squareops/eks-bootstrap/aws/3.1.1 @ `3.1.1` (`EKS-Blueprint/modules/aws-eks-teams`) | +| `registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/aws-kms` | Apache-2.0 | https://registry.terraform.io/modules/squareops/eks-bootstrap/aws/3.1.1 @ `3.1.1` (`EKS-Blueprint/modules/aws-kms`) | +| `registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/irsa` | Apache-2.0 | https://registry.terraform.io/modules/squareops/eks-bootstrap/aws/3.1.1 @ `3.1.1` (`EKS-Blueprint/modules/irsa`) | +| `registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/kubernetes-addons/aws-kube-proxy` | Apache-2.0 | https://registry.terraform.io/modules/squareops/eks-bootstrap/aws/3.1.1 @ `3.1.1` (`EKS-Blueprint/modules/kubernetes-addons/aws-kube-proxy`) | +| `registry/squareops/eks-bootstrap/3.1.1/EKS-Blueprint/modules/launch-templates` | Apache-2.0 | https://registry.terraform.io/modules/squareops/eks-bootstrap/aws/3.1.1 @ `3.1.1` (`EKS-Blueprint/modules/launch-templates`) | +| `registry/squareops/eks-bootstrap/3.1.1/addons/efs` | Apache-2.0 | https://registry.terraform.io/modules/squareops/eks-bootstrap/aws/3.1.1 @ `3.1.1` (`addons/efs`) | +| `registry/squareops/eks-bootstrap/3.1.1/examples/complete` | Apache-2.0 | https://registry.terraform.io/modules/squareops/eks-bootstrap/aws/3.1.1 @ `3.1.1` (`examples/complete`) | +| `registry/squareops/eks/5.4.4` | Apache-2.0 | https://registry.terraform.io/modules/squareops/eks/aws/5.4.4 @ `5.4.4` | +| `registry/squareops/eks/5.4.4/examples/complete` | Apache-2.0 | https://registry.terraform.io/modules/squareops/eks/aws/5.4.4 @ `5.4.4` (`examples/complete`) | +| `registry/squareops/eks/5.4.4/examples/complete-ipv6` | Apache-2.0 | https://registry.terraform.io/modules/squareops/eks/aws/5.4.4 @ `5.4.4` (`examples/complete-ipv6`) | +| `registry/squareops/eks/5.4.4/modules/fargate-profile` | Apache-2.0 | https://registry.terraform.io/modules/squareops/eks/aws/5.4.4 @ `5.4.4` (`modules/fargate-profile`) | +| `registry/squareops/eks/5.4.4/modules/managed-nodegroup` | Apache-2.0 | https://registry.terraform.io/modules/squareops/eks/aws/5.4.4 @ `5.4.4` (`modules/managed-nodegroup`) | +| `registry/squareops/elasticache-redis/2.0.0` | Apache-2.0 | https://registry.terraform.io/modules/squareops/elasticache-redis/aws/2.0.0 @ `2.0.0` | +| `registry/squareops/elasticache-redis/2.0.0/examples/complete` | Apache-2.0 | https://registry.terraform.io/modules/squareops/elasticache-redis/aws/2.0.0 @ `2.0.0` (`examples/complete`) | +| `registry/squareops/elasticache-redis/2.0.0/examples/complete-cluster-mode` | Apache-2.0 | https://registry.terraform.io/modules/squareops/elasticache-redis/aws/2.0.0 @ `2.0.0` (`examples/complete-cluster-mode`) | +| `registry/squareops/elasticache-redis/2.0.0/examples/standalone` | Apache-2.0 | https://registry.terraform.io/modules/squareops/elasticache-redis/aws/2.0.0 @ `2.0.0` (`examples/standalone`) | +| `registry/squareops/elasticache-redis/2.0.0/lambda` | Apache-2.0 | https://registry.terraform.io/modules/squareops/elasticache-redis/aws/2.0.0 @ `2.0.0` (`lambda`) | +| `registry/squareops/keypair/1.0.4` | Apache-2.0 | https://registry.terraform.io/modules/squareops/keypair/aws/1.0.4 @ `1.0.4` | +| `registry/squareops/keypair/1.0.4/examples/complete` | Apache-2.0 | https://registry.terraform.io/modules/squareops/keypair/aws/1.0.4 @ `1.0.4` (`examples/complete`) | +| `registry/squareops/tfstate/1.1.1` | Apache-2.0 | https://registry.terraform.io/modules/squareops/tfstate/aws/1.1.1 @ `1.1.1` | +| `registry/squareops/vpc/3.4.1/examples/complete-vpc-with-vpn` | Apache-2.0 | https://registry.terraform.io/modules/squareops/vpc/aws/3.4.1 @ `3.4.1` (`examples/complete-vpc-with-vpn`) | +| `registry/squareops/vpc/3.4.1/examples/ipam-managed-vpc` | Apache-2.0 | https://registry.terraform.io/modules/squareops/vpc/aws/3.4.1 @ `3.4.1` (`examples/ipam-managed-vpc`) | +| `registry/squareops/vpc/3.4.1/examples/simple-vpc` | Apache-2.0 | https://registry.terraform.io/modules/squareops/vpc/aws/3.4.1 @ `3.4.1` (`examples/simple-vpc`) | +| `registry/squareops/vpc/3.4.1/examples/vpc-dualstack` | Apache-2.0 | https://registry.terraform.io/modules/squareops/vpc/aws/3.4.1 @ `3.4.1` (`examples/vpc-dualstack`) | +| `registry/squareops/vpc/3.4.1/examples/vpc-native-ipv6` | Apache-2.0 | https://registry.terraform.io/modules/squareops/vpc/aws/3.4.1 @ `3.4.1` (`examples/vpc-native-ipv6`) | +| `registry/squareops/vpc/3.4.1/examples/vpc-with-peering` | Apache-2.0 | https://registry.terraform.io/modules/squareops/vpc/aws/3.4.1 @ `3.4.1` (`examples/vpc-with-peering`) | +| `registry/squareops/vpc/3.4.1/examples/vpc-with-peering/vpc-requester-accepter` | Apache-2.0 | https://registry.terraform.io/modules/squareops/vpc/aws/3.4.1 @ `3.4.1` (`examples/vpc-with-peering/vpc-requester-accepter`) | +| `registry/squareops/vpc/3.4.1/examples/vpc-with-private-subnet` | Apache-2.0 | https://registry.terraform.io/modules/squareops/vpc/aws/3.4.1 @ `3.4.1` (`examples/vpc-with-private-subnet`) | +| `registry/squareops/vpc/3.4.1/examples/vpc-with-secondary-cidr` | Apache-2.0 | https://registry.terraform.io/modules/squareops/vpc/aws/3.4.1 @ `3.4.1` (`examples/vpc-with-secondary-cidr`) | +| `registry/squareops/vpc/3.4.1/modules/vpc_peering` | Apache-2.0 | https://registry.terraform.io/modules/squareops/vpc/aws/3.4.1 @ `3.4.1` (`modules/vpc_peering`) | +| `registry/squidfunk/api-gateway-enable-cors/0.3.3` | MIT | https://registry.terraform.io/modules/squidfunk/api-gateway-enable-cors/aws/0.3.3 @ `0.3.3` | +| `registry/tedilabs/misc/0.13.1/modules/resource-group` | Apache-2.0 | https://registry.terraform.io/modules/tedilabs/misc/aws/0.13.1 @ `0.13.1` (`modules/resource-group`) | +| `registry/tedilabs/misc/0.13.1/modules/s3-archive-bucket` | Apache-2.0 | https://registry.terraform.io/modules/tedilabs/misc/aws/0.13.1 @ `0.13.1` (`modules/s3-archive-bucket`) | +| `registry/tedilabs/misc/0.13.1/modules/sqs-aws-event-queue` | Apache-2.0 | https://registry.terraform.io/modules/tedilabs/misc/aws/0.13.1 @ `0.13.1` (`modules/sqs-aws-event-queue`) | +| `registry/telia-oss/ecr/3.0.0` | MIT | https://registry.terraform.io/modules/telia-oss/ecr/aws/3.0.0 @ `3.0.0` | +| `registry/telia-oss/ecs-fargate/7.3.1` | MIT | https://registry.terraform.io/modules/telia-oss/ecs-fargate/aws/7.3.1 @ `7.3.1` | +| `registry/telia-oss/loadbalancer/4.2.1` | MIT | https://registry.terraform.io/modules/telia-oss/loadbalancer/aws/4.2.1 @ `4.2.1` | +| `registry/terraform-aws-modules/acm/6.3.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/acm/aws/6.3.1 @ `6.3.1` | +| `registry/terraform-aws-modules/alb/10.5.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/alb/aws/10.5.1 @ `10.5.1` | +| `registry/terraform-aws-modules/alb/10.5.1/modules/lb_trust_store` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/alb/aws/10.5.1 @ `10.5.1` (`modules/lb_trust_store`) | +| `registry/terraform-aws-modules/apigateway-v2/6.1.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/apigateway-v2/aws/6.1.1 @ `6.1.1` | +| `registry/terraform-aws-modules/app-runner/1.2.3` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/app-runner/aws/1.2.3 @ `1.2.3` | +| `registry/terraform-aws-modules/appsync/4.1.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/appsync/aws/4.1.1 @ `4.1.1` | +| `registry/terraform-aws-modules/atlantis/5.1.2` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/atlantis/aws/5.1.2 @ `5.1.2` | +| `registry/terraform-aws-modules/autoscaling/9.3.2` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/autoscaling/aws/9.3.2 @ `9.3.2` | +| `registry/terraform-aws-modules/batch/3.0.3` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/batch/aws/3.0.3 @ `3.0.3` | +| `registry/terraform-aws-modules/cloudfront/6.7.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudfront/aws/6.7.1 @ `6.7.1` | +| `registry/terraform-aws-modules/cloudfront/6.7.1/modules/trust_store` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudfront/aws/6.7.1 @ `6.7.1` (`modules/trust_store`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_cloudwatch_log_group` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`examples/fixtures/aws_cloudwatch_log_group`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_kms_key` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`examples/fixtures/aws_kms_key`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_lambda_function` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`examples/fixtures/aws_lambda_function`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/examples/fixtures/aws_sns_topic` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`examples/fixtures/aws_sns_topic`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/modules/cis-alarms` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`modules/cis-alarms`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/modules/composite-alarm` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`modules/composite-alarm`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-account-policy` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`modules/log-account-policy`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-anomaly-detector` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`modules/log-anomaly-detector`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-data-protection-policy` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`modules/log-data-protection-policy`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-group` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`modules/log-group`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-metric-filter` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`modules/log-metric-filter`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-stream` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`modules/log-stream`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/modules/log-subscription-filter` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`modules/log-subscription-filter`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-alarm` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`modules/metric-alarm`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-alarms-by-multiple-dimensions` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`modules/metric-alarms-by-multiple-dimensions`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/modules/metric-stream` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`modules/metric-stream`) | +| `registry/terraform-aws-modules/cloudwatch/5.7.3/modules/query-definition` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/cloudwatch/aws/5.7.3 @ `5.7.3` (`modules/query-definition`) | +| `registry/terraform-aws-modules/datadog-forwarders/7.2.0/modules/rds_enhanced_monitoring_forwarder` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/datadog-forwarders/aws/7.2.0 @ `7.2.0` (`modules/rds_enhanced_monitoring_forwarder`) | +| `registry/terraform-aws-modules/datadog-forwarders/7.2.0/modules/vpc_flow_log_forwarder` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/datadog-forwarders/aws/7.2.0 @ `7.2.0` (`modules/vpc_flow_log_forwarder`) | +| `registry/terraform-aws-modules/dms/2.6.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/dms/aws/2.6.0 @ `2.6.0` | +| `registry/terraform-aws-modules/dynamodb-table/5.5.2` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/dynamodb-table/aws/5.5.2 @ `5.5.2` | +| `registry/terraform-aws-modules/ec2-instance/6.4.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/ec2-instance/aws/6.4.1 @ `6.4.1` | +| `registry/terraform-aws-modules/ecr/3.2.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/ecr/aws/3.2.0 @ `3.2.0` | +| `registry/terraform-aws-modules/ecr/3.2.0/modules/repository-template` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/ecr/aws/3.2.0 @ `3.2.0` (`modules/repository-template`) | +| `registry/terraform-aws-modules/ecs/7.6.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/ecs/aws/7.6.1 @ `7.6.1` | +| `registry/terraform-aws-modules/ecs/7.6.1/modules/cluster` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/ecs/aws/7.6.1 @ `7.6.1` (`modules/cluster`) | +| `registry/terraform-aws-modules/ecs/7.6.1/modules/container-definition` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/ecs/aws/7.6.1 @ `7.6.1` (`modules/container-definition`) | +| `registry/terraform-aws-modules/ecs/7.6.1/modules/express-service` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/ecs/aws/7.6.1 @ `7.6.1` (`modules/express-service`) | +| `registry/terraform-aws-modules/efs/2.2.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/efs/aws/2.2.1 @ `2.2.1` | +| `registry/terraform-aws-modules/eks-pod-identity/2.10.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/eks-pod-identity/aws/2.10.0 @ `2.10.0` | +| `registry/terraform-aws-modules/eks/21.29.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/21.29.0 @ `21.29.0` | +| `registry/terraform-aws-modules/eks/21.29.0/examples/eks-managed-node-group` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/21.29.0 @ `21.29.0` (`examples/eks-managed-node-group`) | +| `registry/terraform-aws-modules/eks/21.29.0/examples/self-managed-node-group` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/21.29.0 @ `21.29.0` (`examples/self-managed-node-group`) | +| `registry/terraform-aws-modules/eks/21.29.0/modules/capability` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/21.29.0 @ `21.29.0` (`modules/capability`) | +| `registry/terraform-aws-modules/eks/21.29.0/modules/fargate-profile` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/21.29.0 @ `21.29.0` (`modules/fargate-profile`) | +| `registry/terraform-aws-modules/eks/21.29.0/modules/hybrid-node-role` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/21.29.0 @ `21.29.0` (`modules/hybrid-node-role`) | +| `registry/terraform-aws-modules/eks/21.29.0/modules/karpenter` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/21.29.0 @ `21.29.0` (`modules/karpenter`) | +| `registry/terraform-aws-modules/elasticache/1.11.2` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/elasticache/aws/1.11.2 @ `1.11.2` | +| `registry/terraform-aws-modules/elasticache/1.11.2/modules/serverless-cache` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/elasticache/aws/1.11.2 @ `1.11.2` (`modules/serverless-cache`) | +| `registry/terraform-aws-modules/elasticache/1.11.2/modules/user-group` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/elasticache/aws/1.11.2 @ `1.11.2` (`modules/user-group`) | +| `registry/terraform-aws-modules/elb/4.0.3` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/elb/aws/4.0.3 @ `4.0.3` | +| `registry/terraform-aws-modules/elb/4.0.3/modules/elb` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/elb/aws/4.0.3 @ `4.0.3` (`modules/elb`) | +| `registry/terraform-aws-modules/elb/4.0.3/modules/elb_attachment` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/elb/aws/4.0.3 @ `4.0.3` (`modules/elb_attachment`) | +| `registry/terraform-aws-modules/emr/3.3.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/emr/aws/3.3.0 @ `3.3.0` | +| `registry/terraform-aws-modules/emr/3.3.0/modules/serverless` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/emr/aws/3.3.0 @ `3.3.0` (`modules/serverless`) | +| `registry/terraform-aws-modules/emr/3.3.0/modules/studio` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/emr/aws/3.3.0 @ `3.3.0` (`modules/studio`) | +| `registry/terraform-aws-modules/emr/3.3.0/modules/virtual-cluster` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/emr/aws/3.3.0 @ `3.3.0` (`modules/virtual-cluster`) | +| `registry/terraform-aws-modules/eventbridge/4.3.3` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/eventbridge/aws/4.3.3 @ `4.3.3` | +| `registry/terraform-aws-modules/fsx/1.3.2/modules/lustre` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/fsx/aws/1.3.2 @ `1.3.2` (`modules/lustre`) | +| `registry/terraform-aws-modules/fsx/1.3.2/modules/ontap` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/fsx/aws/1.3.2 @ `1.3.2` (`modules/ontap`) | +| `registry/terraform-aws-modules/fsx/1.3.2/modules/openzfs` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/fsx/aws/1.3.2 @ `1.3.2` (`modules/openzfs`) | +| `registry/terraform-aws-modules/fsx/1.3.2/modules/windows` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/fsx/aws/1.3.2 @ `1.3.2` (`modules/windows`) | +| `registry/terraform-aws-modules/global-accelerator/3.0.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/global-accelerator/aws/3.0.0 @ `3.0.0` | +| `registry/terraform-aws-modules/global-accelerator/3.0.0/modules/custom-routing` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/global-accelerator/aws/3.0.0 @ `3.0.0` (`modules/custom-routing`) | +| `registry/terraform-aws-modules/iam/6.8.2/modules/iam-account` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/iam/aws/6.8.2 @ `6.8.2` (`modules/iam-account`) | +| `registry/terraform-aws-modules/iam/6.8.2/modules/iam-group` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/iam/aws/6.8.2 @ `6.8.2` (`modules/iam-group`) | +| `registry/terraform-aws-modules/iam/6.8.2/modules/iam-oidc-provider` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/iam/aws/6.8.2 @ `6.8.2` (`modules/iam-oidc-provider`) | +| `registry/terraform-aws-modules/iam/6.8.2/modules/iam-policy` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/iam/aws/6.8.2 @ `6.8.2` (`modules/iam-policy`) | +| `registry/terraform-aws-modules/iam/6.8.2/modules/iam-read-only-policy` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/iam/aws/6.8.2 @ `6.8.2` (`modules/iam-read-only-policy`) | +| `registry/terraform-aws-modules/iam/6.8.2/modules/iam-role` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/iam/aws/6.8.2 @ `6.8.2` (`modules/iam-role`) | +| `registry/terraform-aws-modules/iam/6.8.2/modules/iam-role-for-service-accounts` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/iam/aws/6.8.2 @ `6.8.2` (`modules/iam-role-for-service-accounts`) | +| `registry/terraform-aws-modules/iam/6.8.2/modules/iam-user` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/iam/aws/6.8.2 @ `6.8.2` (`modules/iam-user`) | +| `registry/terraform-aws-modules/key-pair/3.0.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/key-pair/aws/3.0.1 @ `3.0.1` | +| `registry/terraform-aws-modules/kms/4.2.2` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/kms/aws/4.2.2 @ `4.2.2` | +| `registry/terraform-aws-modules/lambda/8.12.0/modules/alias` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/lambda/aws/8.12.0 @ `8.12.0` (`modules/alias`) | +| `registry/terraform-aws-modules/lambda/8.12.0/modules/docker-build` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/lambda/aws/8.12.0 @ `8.12.0` (`modules/docker-build`) | +| `registry/terraform-aws-modules/managed-service-grafana/2.3.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/managed-service-grafana/aws/2.3.1 @ `2.3.1` | +| `registry/terraform-aws-modules/memory-db/3.2.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/memory-db/aws/3.2.0 @ `3.2.0` | +| `registry/terraform-aws-modules/msk-kafka-cluster/3.3.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/msk-kafka-cluster/aws/3.3.0 @ `3.3.0` | +| `registry/terraform-aws-modules/msk-kafka-cluster/3.3.0/modules/serverless` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/msk-kafka-cluster/aws/3.3.0 @ `3.3.0` (`modules/serverless`) | +| `registry/terraform-aws-modules/network-firewall/2.3.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/network-firewall/aws/2.3.0 @ `2.3.0` | +| `registry/terraform-aws-modules/network-firewall/2.3.0/modules/firewall` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/network-firewall/aws/2.3.0 @ `2.3.0` (`modules/firewall`) | +| `registry/terraform-aws-modules/network-firewall/2.3.0/modules/policy` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/network-firewall/aws/2.3.0 @ `2.3.0` (`modules/policy`) | +| `registry/terraform-aws-modules/network-firewall/2.3.0/modules/rule-group` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/network-firewall/aws/2.3.0 @ `2.3.0` (`modules/rule-group`) | +| `registry/terraform-aws-modules/notify-slack/7.5.2` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/notify-slack/aws/7.5.2 @ `7.5.2` | +| `registry/terraform-aws-modules/opensearch/2.11.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/opensearch/aws/2.11.1 @ `2.11.1` | +| `registry/terraform-aws-modules/opensearch/2.11.1/modules/collection` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/opensearch/aws/2.11.1 @ `2.11.1` (`modules/collection`) | +| `registry/terraform-aws-modules/rds-aurora/10.4.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/rds-aurora/aws/10.4.1 @ `10.4.1` | +| `registry/terraform-aws-modules/rds-aurora/10.4.1/modules/dsql` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/rds-aurora/aws/10.4.1 @ `10.4.1` (`modules/dsql`) | +| `registry/terraform-aws-modules/rds-proxy/4.4.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/rds-proxy/aws/4.4.0 @ `4.4.0` | +| `registry/terraform-aws-modules/rds/7.2.2` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/rds/aws/7.2.2 @ `7.2.2` | +| `registry/terraform-aws-modules/rds/7.2.2/modules/db_instance` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/rds/aws/7.2.2 @ `7.2.2` (`modules/db_instance`) | +| `registry/terraform-aws-modules/rds/7.2.2/modules/db_instance_automated_backups_replication` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/rds/aws/7.2.2 @ `7.2.2` (`modules/db_instance_automated_backups_replication`) | +| `registry/terraform-aws-modules/rds/7.2.2/modules/db_instance_role_association` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/rds/aws/7.2.2 @ `7.2.2` (`modules/db_instance_role_association`) | +| `registry/terraform-aws-modules/rds/7.2.2/modules/db_option_group` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/rds/aws/7.2.2 @ `7.2.2` (`modules/db_option_group`) | +| `registry/terraform-aws-modules/rds/7.2.2/modules/db_parameter_group` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/rds/aws/7.2.2 @ `7.2.2` (`modules/db_parameter_group`) | +| `registry/terraform-aws-modules/rds/7.2.2/modules/db_subnet_group` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/rds/aws/7.2.2 @ `7.2.2` (`modules/db_subnet_group`) | +| `registry/terraform-aws-modules/redshift/7.1.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/redshift/aws/7.1.1 @ `7.1.1` | +| `registry/terraform-aws-modules/route53/6.5.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/route53/aws/6.5.1 @ `6.5.1` | +| `registry/terraform-aws-modules/route53/6.5.1/modules/delegation-sets` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/route53/aws/6.5.1 @ `6.5.1` (`modules/delegation-sets`) | +| `registry/terraform-aws-modules/route53/6.5.1/modules/resolver-endpoint` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/route53/aws/6.5.1 @ `6.5.1` (`modules/resolver-endpoint`) | +| `registry/terraform-aws-modules/route53/6.5.1/modules/resolver-firewall-rule-group` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/route53/aws/6.5.1 @ `6.5.1` (`modules/resolver-firewall-rule-group`) | +| `registry/terraform-aws-modules/s3-bucket/5.17.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/s3-bucket/aws/5.17.0 @ `5.17.0` | +| `registry/terraform-aws-modules/s3-bucket/5.17.0/modules/account-public-access` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/s3-bucket/aws/5.17.0 @ `5.17.0` (`modules/account-public-access`) | +| `registry/terraform-aws-modules/s3-bucket/5.17.0/modules/file-system` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/s3-bucket/aws/5.17.0 @ `5.17.0` (`modules/file-system`) | +| `registry/terraform-aws-modules/s3-bucket/5.17.0/modules/notification` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/s3-bucket/aws/5.17.0 @ `5.17.0` (`modules/notification`) | +| `registry/terraform-aws-modules/s3-bucket/5.17.0/modules/object` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/s3-bucket/aws/5.17.0 @ `5.17.0` (`modules/object`) | +| `registry/terraform-aws-modules/s3-bucket/5.17.0/modules/table-bucket` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/s3-bucket/aws/5.17.0 @ `5.17.0` (`modules/table-bucket`) | +| `registry/terraform-aws-modules/s3-bucket/5.17.0/modules/vectors` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/s3-bucket/aws/5.17.0 @ `5.17.0` (`modules/vectors`) | +| `registry/terraform-aws-modules/secrets-manager/2.2.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/secrets-manager/aws/2.2.0 @ `2.2.0` | +| `registry/terraform-aws-modules/security-group/6.0.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/security-group/aws/6.0.0 @ `6.0.0` | +| `registry/terraform-aws-modules/sns/7.2.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/sns/aws/7.2.0 @ `7.2.0` | +| `registry/terraform-aws-modules/sqs/5.2.2` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/sqs/aws/5.2.2 @ `5.2.2` | +| `registry/terraform-aws-modules/ssm-parameter/2.1.2` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/ssm-parameter/aws/2.1.2 @ `2.1.2` | +| `registry/terraform-aws-modules/step-functions/5.1.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/step-functions/aws/5.1.1 @ `5.1.1` | +| `registry/terraform-aws-modules/transit-gateway/3.3.1` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/transit-gateway/aws/3.3.1 @ `3.3.1` | +| `registry/terraform-aws-modules/vpc/6.7.3` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/6.7.3 @ `6.7.3` | +| `registry/terraform-aws-modules/vpc/6.7.3/modules/flow-log` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/6.7.3 @ `6.7.3` (`modules/flow-log`) | +| `registry/terraform-aws-modules/vpc/6.7.3/modules/vpc-endpoints` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/6.7.3 @ `6.7.3` (`modules/vpc-endpoints`) | +| `registry/terraform-aws-modules/vpn-gateway/4.0.0` | Apache-2.0 | https://registry.terraform.io/modules/terraform-aws-modules/vpn-gateway/aws/4.0.0 @ `4.0.0` | +| `registry/terraform-module/enforce-mfa/1.2.0` | MIT | https://registry.terraform.io/modules/terraform-module/enforce-mfa/aws/1.2.0 @ `1.2.0` | +| `registry/terraform-module/enforce-mfa/1.2.0/examples/basic` | MIT | https://registry.terraform.io/modules/terraform-module/enforce-mfa/aws/1.2.0 @ `1.2.0` (`examples/basic`) | +| `registry/terraform-module/github-oidc-provider/2.3.0` | MIT | https://registry.terraform.io/modules/terraform-module/github-oidc-provider/aws/2.3.0 @ `2.3.0` | +| `registry/terraform-module/lambda/2.13.1/examples/basic` | MIT | https://registry.terraform.io/modules/terraform-module/lambda/aws/2.13.1 @ `2.13.1` (`examples/basic`) | +| `registry/terraform-module/lambda/2.13.1/examples/tracing` | MIT | https://registry.terraform.io/modules/terraform-module/lambda/aws/2.13.1 @ `2.13.1` (`examples/tracing`) | +| `registry/terraform-redhat/rosa-sts/0.0.16` | Apache-2.0 | https://registry.terraform.io/modules/terraform-redhat/rosa-sts/aws/0.0.16 @ `0.0.16` | +| `registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation` | Apache-2.0 | https://registry.terraform.io/modules/terraform-redhat/rosa-sts/aws/0.0.16 @ `0.0.16` (`account_roles_creation`) | +| `registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/account_role` | Apache-2.0 | https://registry.terraform.io/modules/terraform-redhat/rosa-sts/aws/0.0.16 @ `0.0.16` (`account_roles_creation/account_role`) | +| `registry/terraform-redhat/rosa-sts/0.0.16/account_roles_creation/operator_role_policy` | Apache-2.0 | https://registry.terraform.io/modules/terraform-redhat/rosa-sts/aws/0.0.16 @ `0.0.16` (`account_roles_creation/operator_role_policy`) | +| `registry/terraform-redhat/rosa-sts/0.0.16/examples/account_roles` | Apache-2.0 | https://registry.terraform.io/modules/terraform-redhat/rosa-sts/aws/0.0.16 @ `0.0.16` (`examples/account_roles`) | +| `registry/terraform-redhat/rosa-sts/0.0.16/examples/operator_roles_and_oidc` | Apache-2.0 | https://registry.terraform.io/modules/terraform-redhat/rosa-sts/aws/0.0.16 @ `0.0.16` (`examples/operator_roles_and_oidc`) | +| `registry/terraform-redhat/rosa-sts/0.0.16/oidc_config_resources` | Apache-2.0 | https://registry.terraform.io/modules/terraform-redhat/rosa-sts/aws/0.0.16 @ `0.0.16` (`oidc_config_resources`) | +| `registry/terraform-redhat/rosa-sts/0.0.16/oidc_provider_creation` | Apache-2.0 | https://registry.terraform.io/modules/terraform-redhat/rosa-sts/aws/0.0.16 @ `0.0.16` (`oidc_provider_creation`) | +| `registry/terraform-redhat/rosa-sts/0.0.16/operator_roles_creation` | Apache-2.0 | https://registry.terraform.io/modules/terraform-redhat/rosa-sts/aws/0.0.16 @ `0.0.16` (`operator_roles_creation`) | +| `registry/terraform-redhat/rosa-sts/0.0.16/operator_roles_creation/operator_roles` | Apache-2.0 | https://registry.terraform.io/modules/terraform-redhat/rosa-sts/aws/0.0.16 @ `0.0.16` (`operator_roles_creation/operator_roles`) | +| `registry/tf-mod/rbac-role/1.1.2` | MIT | https://registry.terraform.io/modules/tf-mod/rbac-role/aws/1.1.2 @ `1.1.2` | +| `registry/tf-mod/rbac-role/1.1.2/examples/complete` | MIT | https://registry.terraform.io/modules/tf-mod/rbac-role/aws/1.1.2 @ `1.1.2` (`examples/complete`) | +| `registry/tmknom/elasticache-redis/2.0.0` | Apache-2.0 | https://registry.terraform.io/modules/tmknom/elasticache-redis/aws/2.0.0 @ `2.0.0` | +| `registry/transcend-io/lambda-at-edge/0.6.0` | MIT | https://registry.terraform.io/modules/transcend-io/lambda-at-edge/aws/0.6.0 @ `0.6.0` | +| `registry/truemark/bitbucket-oidc-provider/0.0.5` | BSD-3-Clause | https://registry.terraform.io/modules/truemark/bitbucket-oidc-provider/aws/0.0.5 @ `0.0.5` | +| `registry/truemark/bitbucket-oidc-provisioner/0.0.8` | BSD-3-Clause | https://registry.terraform.io/modules/truemark/bitbucket-oidc-provisioner/aws/0.0.8 @ `0.0.8` | +| `registry/truemark/provisioner/1.1.5` | BSD-3-Clause | https://registry.terraform.io/modules/truemark/provisioner/aws/1.1.5 @ `1.1.5` | +| `registry/trussworks/cloudtrail/5.3.0` | BSD-3-Clause | https://registry.terraform.io/modules/trussworks/cloudtrail/aws/5.3.0 @ `5.3.0` | +| `registry/trussworks/config/8.1.1` | BSD-3-Clause | https://registry.terraform.io/modules/trussworks/config/aws/8.1.1 @ `8.1.1` | +| `registry/trussworks/logs/18.0.0` | BSD-3-Clause | https://registry.terraform.io/modules/trussworks/logs/aws/18.0.0 @ `18.0.0` | +| `registry/trussworks/s3-private-bucket/9.0.1` | BSD-3-Clause | https://registry.terraform.io/modules/trussworks/s3-private-bucket/aws/9.0.1 @ `9.0.1` | +| `registry/trussworks/ses-domain/7.0.0` | BSD-3-Clause | https://registry.terraform.io/modules/trussworks/ses-domain/aws/7.0.0 @ `7.0.0` | +| `registry/trussworks/trusted-advisor-refresh/4.0.0` | BSD-3-Clause | https://registry.terraform.io/modules/trussworks/trusted-advisor-refresh/aws/4.0.0 @ `4.0.0` | +| `registry/trussworks/wafv2/4.0.0` | Apache-2.0 | https://registry.terraform.io/modules/trussworks/wafv2/aws/4.0.0 @ `4.0.0` | +| `registry/umotif-public/alb/2.2.2` | Apache-2.0 | https://registry.terraform.io/modules/umotif-public/alb/aws/2.2.2 @ `2.2.2` | +| `registry/umotif-public/ecs-fargate/8.2.0` | Apache-2.0 | https://registry.terraform.io/modules/umotif-public/ecs-fargate/aws/8.2.0 @ `8.2.0` | +| `registry/umotif-public/elasticache-redis/3.5.0` | Apache-2.0 | https://registry.terraform.io/modules/umotif-public/elasticache-redis/aws/3.5.0 @ `3.5.0` | +| `registry/umotif-public/waf-webaclv2/5.1.2` | Apache-2.0 | https://registry.terraform.io/modules/umotif-public/waf-webaclv2/aws/5.1.2 @ `5.1.2` | +| `registry/unfunco/oidc-github/3.1.0` | MIT | https://registry.terraform.io/modules/unfunco/oidc-github/aws/3.1.0 @ `3.1.0` | +| `registry/vantage-sh/vantage-integration/2.1.0` | MIT | https://registry.terraform.io/modules/vantage-sh/vantage-integration/aws/2.1.0 @ `2.1.0` | +| `registry/vantage-sh/vantage-integration/2.1.0/tests/fixtures/legacy_with_bucket` | MIT | https://registry.terraform.io/modules/vantage-sh/vantage-integration/aws/2.1.0 @ `2.1.0` (`tests/fixtures/legacy_with_bucket`) | +| `registry/vantage-sh/vantage-integration/2.1.0/tests/fixtures/legacy_without_bucket` | MIT | https://registry.terraform.io/modules/vantage-sh/vantage-integration/aws/2.1.0 @ `2.1.0` (`tests/fixtures/legacy_without_bucket`) | +| `registry/wandb/wandb/8.0.0` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` | +| `registry/wandb/wandb/8.0.0/docs/operator-migration` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`docs/operator-migration`) | +| `registry/wandb/wandb/8.0.0/examples/byo-vpc-eks` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`examples/byo-vpc-eks`) | +| `registry/wandb/wandb/8.0.0/examples/byob` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`examples/byob`) | +| `registry/wandb/wandb/8.0.0/examples/byob-sse-s3` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`examples/byob-sse-s3`) | +| `registry/wandb/wandb/8.0.0/modules/app_eks` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`modules/app_eks`) | +| `registry/wandb/wandb/8.0.0/modules/app_eks/cluster_autoscaler` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`modules/app_eks/cluster_autoscaler`) | +| `registry/wandb/wandb/8.0.0/modules/app_eks/external_dns` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`modules/app_eks/external_dns`) | +| `registry/wandb/wandb/8.0.0/modules/app_eks/lb_controller` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`modules/app_eks/lb_controller`) | +| `registry/wandb/wandb/8.0.0/modules/app_lb` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`modules/app_lb`) | +| `registry/wandb/wandb/8.0.0/modules/cloudtrail` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`modules/cloudtrail`) | +| `registry/wandb/wandb/8.0.0/modules/database` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`modules/database`) | +| `registry/wandb/wandb/8.0.0/modules/endpoint` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`modules/endpoint`) | +| `registry/wandb/wandb/8.0.0/modules/file_storage` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`modules/file_storage`) | +| `registry/wandb/wandb/8.0.0/modules/iam_role` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`modules/iam_role`) | +| `registry/wandb/wandb/8.0.0/modules/kms` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`modules/kms`) | +| `registry/wandb/wandb/8.0.0/modules/networking` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`modules/networking`) | +| `registry/wandb/wandb/8.0.0/modules/private_link` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`modules/private_link`) | +| `registry/wandb/wandb/8.0.0/modules/redis` | Apache-2.0 | https://registry.terraform.io/modules/wandb/wandb/aws/8.0.0 @ `8.0.0` (`modules/redis`) | diff --git a/cmd/openiac-conformance/main.go b/cmd/openiac-conformance/main.go new file mode 100644 index 0000000..ee8d8ce --- /dev/null +++ b/cmd/openiac-conformance/main.go @@ -0,0 +1,121 @@ +// Command openiac-conformance maintains the conformance corpus. +package main + +import ( + "context" + "flag" + "fmt" + "os" + "os/exec" + "os/signal" + "strings" + "syscall" + + "github.com/be-thomas/openiac/internal/conformance/collect" +) + +func main() { + if len(os.Args) < 2 { + usage() + os.Exit(2) + } + switch os.Args[1] { + case "collect": + if err := runCollect(os.Args[2:]); err != nil { + fmt.Fprintln(os.Stderr, "openiac-conformance:", err) + os.Exit(1) + } + case "-h", "--help", "help": + usage() + default: + fmt.Fprintf(os.Stderr, "unknown command %q\n", os.Args[1]) + usage() + os.Exit(2) + } +} + +func usage() { + fmt.Fprint(os.Stderr, `usage: openiac-conformance collect [flags] + +flags: + -config string sources file (default conformance/collection/sources.json) + -out string fixture tree (default conformance/fixtures) + -lock string lock file (default conformance/corpus.lock.json) + -third-party string attribution file (default THIRD_PARTY.md) + -report string run report (default .cache/conformance/collect-report.json) + -limit int override registry module cap + -pages int override registry page cap + -min-downloads int override registry popularity floor + -workers int concurrent downloads (default 6) + -v verbose progress +`) +} + +func runCollect(args []string) error { + fs := flag.NewFlagSet("collect", flag.ExitOnError) + configPath := fs.String("config", "conformance/collection/sources.json", "sources file") + out := fs.String("out", "conformance/fixtures", "fixture tree") + lock := fs.String("lock", "conformance/corpus.lock.json", "lock file") + thirdParty := fs.String("third-party", "THIRD_PARTY.md", "attribution file") + report := fs.String("report", ".cache/conformance/collect-report.json", "run report") + limit := fs.Int("limit", 0, "override registry module cap") + pages := fs.Int("pages", 0, "override registry page cap") + minDownloads := fs.Int("min-downloads", 0, "override registry popularity floor") + workers := fs.Int("workers", 6, "concurrent downloads") + verbose := fs.Bool("v", false, "verbose progress") + if err := fs.Parse(args); err != nil { + return err + } + + cfg, err := collect.LoadConfig(*configPath) + if err != nil { + return err + } + if *limit > 0 { + cfg.Registry.MaxModules = *limit + } + if *pages > 0 { + cfg.Registry.MaxPages = *pages + } + if *minDownloads > 0 { + cfg.Registry.MinDownloads = *minDownloads + } + + logf := func(string, ...any) {} + if *verbose { + logf = collect.Logf + } + client := collect.NewClient(githubToken()) + c := collect.New(cfg, client, collect.Options{ + OutDir: *out, + LockPath: *lock, + ThirdPartyPath: *thirdParty, + ReportPath: *report, + MaxModules: cfg.Registry.MaxModules, + MaxPages: cfg.Registry.MaxPages, + MinDownloads: cfg.Registry.MinDownloads, + Workers: *workers, + Logf: logf, + }) + + ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) + defer stop() + if err := c.Run(ctx); err != nil { + return err + } + fmt.Println(collect.Summary(c.Report())) + return nil +} + +func githubToken() string { + for _, key := range []string{"GITHUB_TOKEN", "GH_TOKEN"} { + if v := strings.TrimSpace(os.Getenv(key)); v != "" { + return v + } + } + out, err := exec.Command("gh", "auth", "token").Output() + if err != nil { + return "" + } + return strings.TrimSpace(string(out)) +} diff --git a/conformance/README.md b/conformance/README.md new file mode 100644 index 0000000..5f3c27b --- /dev/null +++ b/conformance/README.md @@ -0,0 +1,142 @@ +# Conformance corpus + +This directory holds the Terraform inputs used by the conformance harness. The +current phase is **inputs only**: fixtures contain real Terraform modules, the +exact upstream revision and the upstream license. Goldens and the L0–L4 oracle +layers are not written yet. + +The design and rollout plan are in [docs/CONFORMANCE.md](../docs/CONFORMANCE.md). + +## Snapshot + +Collected 2026-10-26 from the Terraform Registry and the configured GitHub +seeds: + +| Metric | Value | +|:--|--:| +| Fixtures | 918 | +| Files | 6,934 | +| Bytes | 25,173,266 | +| `smoke` / `core` / `advanced` / `modules` | 20 / 4 / 497 / 397 | +| Registry / GitHub | 867 / 51 | +| Apache-2.0 / MIT / BSD-3-Clause | 701 / 208 / 9 | + +`conformance/corpus.lock.json` is the authoritative aggregate; the counts here +are descriptive. + +## Layout + +```text +conformance/ +├── fixtures/ +│ ├── registry///[/]/ +│ └── github///[/]/ +├── collection/sources.json # seeds, caps and license allowlist +├── corpus.lock.json # generated aggregate, verified by CI +└── README.md +``` + +Each fixture contains: + +| Path | Purpose | +|:--|:--| +| `input/` | The Terraform module root, copied from upstream | +| `fixture.json` | ID, tier, provenance, hashes, license, features | +| `LICENSE` | Upstream license text | +| `NOTICE` | Upstream notice, when present | +| `expected/` | Reserved for curated goldens; not present in this phase | + +Local module sources (`source = "./modules/x"`) are copied into the same +`input/` tree so the fixture is self-contained. A candidate that references a +path outside its own root is rejected rather than committed broken. + +## Collecting + +```bash +export GITHUB_TOKEN=$(gh auth token) # or provide GITHUB_TOKEN yourself +go run ./cmd/openiac-conformance collect -v +``` + +The command reads [`collection/sources.json`](collection/sources.json), crawls +the Terraform Registry for AWS modules, resolves each module to an immutable +GitHub commit, downloads the archive and writes the accepted fixtures. It also +resolves the configured GitHub seeds, which is how monorepos with many local +modules are captured. + +Useful overrides: + +```bash +go run ./cmd/openiac-conformance collect -limit 50 -pages 10 -v +``` + +The collector is deliberately conservative: + +- Only `.tf` and `.tf.json` files are kept. State, plans, lockfiles, binaries + and `.tfvars` are never written. +- Only root license files whose text matches the allowlist are accepted. + Unknown or copyleft licenses are skipped. +- Provisioners, `data "external"` and credential-like literals reject a + candidate fixture. +- A fixture is capped at 512 KiB and 200 files; the whole tree is capped at + 100 MiB. +- Identical input trees are stored once. +- Local module references must stay inside the fixture root. + +Every run writes a detailed audit to `.cache/conformance/collect-report.json` +(gitignored). `corpus.lock.json` and `THIRD_PARTY.md` are generated from the +committed tree. + +## Fixture metadata + +```json +{ + "schema": 1, + "id": "registry/terraform-aws-modules/vpc/5.1.0", + "tier": "modules", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/5.1.0", + "ref": "5.1.0", + "path": ".", + "archiveSha256": "…", + "inputSha256": "…" + }, + "license": "Apache-2.0", + "providers": ["aws"], + "features": ["modules", "outputs", "variables"], + "targets": ["cdk", "pulumi"], + "support": "partial" +} +``` + +`inputSha256` is the deterministic digest of the input tree and is the unit of +deduplication. `archiveSha256` pins the exact downloaded tarball. + +## Tiers + +| Tier | Meaning | +|:--|:--| +| `smoke` | 20 smallest basic modules; selected for every pull request | +| `core` | Resources, variables and outputs only | +| `advanced` | Data sources, locals, expressions, count/for_each | +| `modules` | Module composition | + +Tier is metadata, not a directory. Re-tiering never moves a fixture. + +## Adding a source + +1. Add a registry namespace/module or a GitHub seed to + `collection/sources.json`. +2. Run the collector. +3. Review `git status` and the new `fixture.json` files. +4. Run `go test ./...` and commit the fixtures with the code that consumes them. + +Do not edit vendored Terraform files. If an upstream module needs a fix, add a +note and wait for a new upstream revision, or curate a fixture under an +`authored/` directory (not generated by the collector). + +## Licensing + +OpenIaC is GPL-3.0. Vendored fixtures remain under their upstream licenses; +`LICENSE` in each fixture is authoritative. The generated +[`THIRD_PARTY.md`](../THIRD_PARTY.md) lists every fixture and its upstream. diff --git a/conformance/collection/README.md b/conformance/collection/README.md new file mode 100644 index 0000000..4fa28f5 --- /dev/null +++ b/conformance/collection/README.md @@ -0,0 +1,44 @@ +# Collection sources + +`sources.json` is the input to `openiac-conformance collect`. It is committed; +edit it to change what enters the corpus, then regenerate. + +## Shape + +| Key | Meaning | +|:--|:--| +| `registry.provider` | Terraform Registry provider to crawl (`aws` for now) | +| `registry.maxPages` | API pages of 100 modules to read | +| `registry.minDownloads` | Download floor for modules outside the named namespaces | +| `registry.maxModules` | Upper bound after ranking by downloads | +| `registry.namespaces` | Namespaces whose modules bypass the download floor | +| `registry.modules` | Modules always considered, even if the crawl missed them | +| `registry.maxFixturesPerRepo` | Module roots kept per repository | +| `github[]` | Extra repositories: `repo`, `ref`, optional `include` globs and `maxFixtures` | +| `limits` | Archive, per-file, per-fixture and total-tree byte caps | +| `licenses` | SPDX identifiers allowed for a vendored fixture | + +Every registry module is resolved through +`/v1/modules/{ns}/{name}/{provider}/{version}/download`, which returns an +`X-Terraform-Get` source. That ref is resolved to an immutable GitHub commit +before the tarball is downloaded, so a fixture always pins the exact revision +that was reviewed. + +## Changing the corpus + +1. Edit `sources.json`. +2. Run `make conformance-inputs`. +3. Read `.cache/conformance/collect-report.json` and check the skip reasons. +4. Review `git status`; the collector only replaces each fixture's `input/`, + `LICENSE`, `NOTICE` and `fixture.json`, never a curated `expected/`. +5. Commit the regenerated fixtures together with the config change. + +Removing a seed does not delete existing fixtures. Prune them explicitly if the +corpus should shrink, then regenerate `conformance/corpus.lock.json`. + +## Limits + +`limits.maxFixtureBytes` and `limits.maxFixtureFiles` apply per module root, +after local modules have been copied in. `limits.maxTotalBytes` is enforced +across the whole tree. A candidate that exceeds a cap is skipped and recorded in +the report rather than truncated. diff --git a/conformance/collection/sources.json b/conformance/collection/sources.json new file mode 100644 index 0000000..5a7c1fd --- /dev/null +++ b/conformance/collection/sources.json @@ -0,0 +1,63 @@ +{ + "schema": 1, + "registry": { + "provider": "aws", + "maxPages": 100, + "minDownloads": 1000, + "maxModules": 400, + "namespaces": [ + "terraform-aws-modules", + "cloudposse", + "aws-ia", + "hashicorp" + ], + "modules": [ + "terraform-aws-modules/vpc/aws", + "terraform-aws-modules/eks/aws", + "terraform-aws-modules/security-group/aws", + "terraform-aws-modules/rds/aws", + "terraform-aws-modules/s3-bucket/aws", + "terraform-aws-modules/iam/aws", + "terraform-aws-modules/alb/aws", + "terraform-aws-modules/lambda/aws" + ], + "maxFixturesPerRepo": 50 + }, + "github": [ + { + "repo": "cloudposse/terraform-aws-components", + "ref": "main", + "include": [ + "modules/**" + ], + "maxFixtures": 120 + }, + { + "repo": "aws-ia/terraform-aws-eks-blueprints", + "ref": "main", + "include": [ + "patterns/**" + ], + "maxFixtures": 50 + } + ], + "limits": { + "maxArchiveBytes": 41943040, + "maxArchiveTextBytes": 83886080, + "maxFixtureBytes": 524288, + "maxFixtureFiles": 200, + "maxTotalBytes": 104857600, + "maxFileBytes": 1048576, + "maxCandidatesPerRepo": 50 + }, + "licenses": [ + "Apache-2.0", + "MIT", + "BSD-2-Clause", + "BSD-3-Clause", + "ISC", + "MPL-2.0", + "Unlicense", + "CC0-1.0" + ] +} diff --git a/conformance/corpus.lock.json b/conformance/corpus.lock.json new file mode 100644 index 0000000..a5f595a --- /dev/null +++ b/conformance/corpus.lock.json @@ -0,0 +1,22 @@ +{ + "schema": 1, + "fixtureCount": 918, + "fileCount": 6934, + "totalBytes": 25173266, + "treeSha256": "3a50a02837daf1d60d996b25b2749c91bb884f4410ba500fdd51d99439597148", + "tiers": { + "advanced": 497, + "core": 4, + "modules": 397, + "smoke": 20 + }, + "licenses": { + "Apache-2.0": 701, + "BSD-3-Clause": 9, + "MIT": 208 + }, + "origins": { + "github": 51, + "registry": 867 + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/fixture.json new file mode 100644 index 0000000..9b18abf --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/fixture.json @@ -0,0 +1,33 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/agones-game-controller", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "45ca149ac36faaedece78f79ede4116bebc0635346a6f6674b67a7ddb7265fc0" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm" + ], + "features": [ + "data", + "functions", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/main.tf new file mode 100644 index 0000000..7727c41 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/main.tf @@ -0,0 +1,203 @@ +provider "aws" { + region = local.region +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + gameserver_minport = 7000 + gameserver_maxport = 8000 + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.11" + + cluster_name = local.name + cluster_version = "1.30" + cluster_endpoint_public_access = true + + # Give the Terraform identity admin access to the cluster + # which will allow resources to be deployed into the cluster + enable_cluster_creator_admin_permissions = true + + vpc_id = module.vpc.vpc_id + control_plane_subnet_ids = module.vpc.private_subnets + subnet_ids = module.vpc.public_subnets + + eks_managed_node_groups = { + default = { + instance_types = ["m5.large"] + min_size = 1 + max_size = 5 + desired_size = 2 + } + + agones_system = { + instance_types = ["m5.large"] + labels = { + "agones.dev/agones-system" = true + } + taint = { + dedicated = { + key = "agones.dev/agones-system" + value = true + effect = "NO_EXECUTE" + } + } + min_size = 1 + max_size = 1 + desired_size = 1 + } + + agones_metrics = { + instance_types = ["m5.large"] + labels = { + "agones.dev/agones-metrics" = true + } + taints = { + dedicated = { + key = "agones.dev/agones-metrics" + value = true + effect = "NO_EXECUTE" + } + } + min_size = 1 + max_size = 1 + desired_size = 1 + } + } + + node_security_group_additional_rules = { + ingress_gameserver_udp = { + description = "Agones Game Server Ports" + protocol = "udp" + from_port = local.gameserver_minport + to_port = local.gameserver_maxport + type = "ingress" + cidr_blocks = ["0.0.0.0/0"] + ipv6_cidr_blocks = ["::/0"] + }, + ingress_gameserver_webhook = { + description = "Cluster API to node 8081/tcp agones webhook" + protocol = "tcp" + from_port = 8081 + to_port = 8081 + type = "ingress" + source_cluster_security_group = true + } + } + + tags = local.tags +} + +################################################################################ +# EKS Blueprints Addons +################################################################################ + +module "eks_blueprints_addons" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.16" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + # EKS Add-Ons + eks_addons = { + coredns = {} + vpc-cni = {} + kube-proxy = {} + } + + # Add-ons + enable_metrics_server = true + enable_cluster_autoscaler = true + + helm_releases = { + agones = { + description = "A Helm chart for Agones game server" + namespace = "agones-system" + create_namespace = true + chart = "agones" + chart_version = "1.32.0" + repository = "https://agones.dev/chart/stable" + values = [ + templatefile("${path.module}/helm_values/agones-values.yaml", { + expose_udp = true + gameserver_minport = local.gameserver_minport + gameserver_maxport = local.gameserver_maxport + }) + ] + } + } + + tags = local.tags +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + # NOTE: Agones requires a Node group in Public Subnets and enable Public IP + map_public_ip_on_launch = true + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/outputs.tf new file mode 100644 index 0000000..c624023 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/outputs.tf @@ -0,0 +1,4 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/variables.tf new file mode 100644 index 0000000..e69de29 diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/versions.tf new file mode 100644 index 0000000..47681ae --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/agones-game-controller/input/versions.tf @@ -0,0 +1,21 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/agones-game-controller/terraform.tfstate" + # } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/fixture.json new file mode 100644 index 0000000..bc2a170 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/aws-neuron-efa", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "92938b100ac80cfc2c8030ede10779c0220f74cd1b5e7bf3be6e507c2557b684" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm" + ], + "features": [ + "data", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/input/eks.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/input/eks.tf new file mode 100644 index 0000000..4533922 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/input/eks.tf @@ -0,0 +1,108 @@ +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.34" + + cluster_name = local.name + cluster_version = "1.32" + + # Give the Terraform identity admin access to the cluster + # which will allow it to deploy resources into the cluster + enable_cluster_creator_admin_permissions = true + cluster_endpoint_public_access = true + + # These will become the default in the next major version of the module + bootstrap_self_managed_addons = false + enable_irsa = false + enable_security_groups_for_pods = false + + cluster_addons = { + coredns = {} + eks-node-monitoring-agent = {} + eks-pod-identity-agent = { + before_compute = true + } + kube-proxy = {} + vpc-cni = { + most_recent = true + before_compute = true + } + } + + # Add security group rules on the node group security group to + # allow EFA traffic + enable_efa_support = true + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_group_defaults = { + node_repair_config = { + enabled = true + } + } + + eks_managed_node_groups = { + neuron-efa = { + # The EKS AL2023 Neuron AMI provides all of the necessary components + # for accelerated workloads w/ EFA + ami_type = "AL2023_x86_64_NEURON" + instance_types = ["trn1.32xlarge"] + + # Mount instance store volumes in RAID-0 for kubelet and containerd + # https://github.com/awslabs/amazon-eks-ami/blob/master/doc/USER_GUIDE.md#raid-0-for-kubelet-and-containerd-raid0 + cloudinit_pre_nodeadm = [ + { + content_type = "application/node.eks.aws" + content = <<-EOT + --- + apiVersion: node.eks.aws/v1alpha1 + kind: NodeConfig + spec: + instance: + localStorage: + strategy: RAID0 + EOT + } + ] + + min_size = 2 + max_size = 2 + desired_size = 2 + + # This will: + # 1. Create a placement group to place the instances close to one another + # 2. Ignore subnets that reside in AZs that do not support the instance type + # 3. Expose all of the available EFA interfaces on the launch template + enable_efa_support = true + + labels = { + "vpc.amazonaws.com/efa.present" = "true" + "aws.amazon.com/neuron.present" = "true" + } + + taints = { + # Ensure only Neuron workloads are scheduled on this node group + gpu = { + key = "aws.amazon.com/neuron" + value = "true" + effect = "NO_SCHEDULE" + } + } + } + + # This node group is for core addons such as CoreDNS + default = { + instance_types = ["m5.large"] + + min_size = 1 + max_size = 2 + desired_size = 2 + } + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/input/helm.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/input/helm.tf new file mode 100644 index 0000000..6f1ca1f --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/input/helm.tf @@ -0,0 +1,50 @@ +data "aws_ecrpublic_authorization_token" "token" { + provider = aws.ecr +} + +################################################################################ +# Helm charts +################################################################################ + +resource "helm_release" "neuron" { + name = "neuron" + repository = "oci://public.ecr.aws/neuron" + chart = "neuron-helm-chart" + version = "1.1.1" + namespace = "neuron" + create_namespace = true + wait = false + + # Public ECR + repository_username = data.aws_ecrpublic_authorization_token.token.user_name + repository_password = data.aws_ecrpublic_authorization_token.token.password + + values = [ + <<-EOT + nodeSelector: + aws.amazon.com/neuron.present: 'true' + npd: + enabled: false + EOT + ] +} + +resource "helm_release" "aws_efa_device_plugin" { + name = "aws-efa-k8s-device-plugin" + repository = "https://aws.github.io/eks-charts" + chart = "aws-efa-k8s-device-plugin" + version = "v0.5.7" + namespace = "kube-system" + wait = false + + values = [ + <<-EOT + nodeSelector: + vpc.amazonaws.com/efa.present: 'true' + tolerations: + - key: aws.amazon.com/neuron + operator: Exists + effect: NoSchedule + EOT + ] +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/input/main.tf new file mode 100644 index 0000000..228380d --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-neuron-efa/input/main.tf @@ -0,0 +1,109 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/aws-neuron-efa/terraform.tfstate" + # } +} + +provider "aws" { + region = local.region +} + +# This provider is required for Public ECR. Public ECR is only available in us-east-1 +# If your region is same as us-east-1 then you can just use one aws provider +provider "aws" { + alias = "ecr" + region = "us-east-1" +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +################################################################################ +# Common data/locals +################################################################################ + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-east-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Output +################################################################################ + +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/fixture.json new file mode 100644 index 0000000..86e8e13 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/fixture.json @@ -0,0 +1,36 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/aws-vpc-cni-network-policy", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "7c524a86003488ccef1836f0ab0c5d38d338bccd34edd442cffe1cf6c433ddeb" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm", + "kubernetes" + ], + "features": [ + "data", + "depends_on", + "functions", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/main.tf new file mode 100644 index 0000000..9c72dba --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/main.tf @@ -0,0 +1,299 @@ +provider "aws" { + region = local.region +} + +provider "kubernetes" { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.11" + + cluster_name = local.name + cluster_version = "1.30" # Must be 1.25 or higher + cluster_endpoint_public_access = true + + # Give the Terraform identity admin access to the cluster + # which will allow resources to be deployed into the cluster + enable_cluster_creator_admin_permissions = true + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_groups = { + initial = { + instance_types = ["m5.large"] + + min_size = 3 + max_size = 10 + desired_size = 5 + } + } + + tags = local.tags +} + +################################################################################ +# EKS Addons (demo application) +################################################################################ + +module "addons" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.16" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + # EKS Addons + eks_addons = { + coredns = {} + kube-proxy = {} + vpc-cni = { + most_recent = true # Must be 1.14.0 or higher + + timeouts = { + create = "25m" + delete = "10m" + } + + # Must enable network policy support + configuration_values = jsonencode({ + enableNetworkPolicy : "true", + }) + } + } + + # Deploy demo-application + helm_releases = { + demo-application = { + description = "A Helm chart to deploy the network policy demo application" + namespace = "default" + chart = "./charts/demo-application" + } + } + + tags = local.tags +} + +################################################################################ +# Restrict traffic flow using Network Policies +################################################################################ + +# Block all ingress and egress traffic within the stars namespace +resource "kubernetes_network_policy_v1" "default_deny_stars" { + metadata { + name = "default-deny" + namespace = "stars" + } + spec { + policy_types = ["Ingress"] + pod_selector { + match_labels = {} + } + } + depends_on = [module.addons] +} + +# Block all ingress and egress traffic within the client namespace +resource "kubernetes_network_policy_v1" "default_deny_client" { + metadata { + name = "default-deny" + namespace = "client" + } + spec { + policy_types = ["Ingress"] + pod_selector { + match_labels = {} + } + } + depends_on = [module.addons] +} + +# Allow the management-ui to access the star application pods +resource "kubernetes_network_policy_v1" "allow_ui_to_stars" { + metadata { + name = "allow-ui" + namespace = "stars" + } + spec { + policy_types = ["Ingress"] + pod_selector { + match_labels = {} + } + ingress { + from { + namespace_selector { + match_labels = { + role = "management-ui" + } + } + } + } + } + depends_on = [module.addons] +} + +# Allow the management-ui to access the client application pods +resource "kubernetes_network_policy_v1" "allow_ui_to_client" { + metadata { + name = "allow-ui" + namespace = "client" + } + spec { + policy_types = ["Ingress"] + pod_selector { + match_labels = {} + } + ingress { + from { + namespace_selector { + match_labels = { + role = "management-ui" + } + } + } + } + } + depends_on = [module.addons] +} + +# Allow the frontend pod to access the backend pod within the stars namespace +resource "kubernetes_network_policy_v1" "allow_frontend_to_backend" { + metadata { + name = "backend-policy" + namespace = "stars" + } + spec { + policy_types = ["Ingress"] + pod_selector { + match_labels = { + role = "backend" + } + } + ingress { + from { + pod_selector { + match_labels = { + role = "frontend" + } + } + } + ports { + protocol = "TCP" + port = "6379" + } + } + } + depends_on = [module.addons] +} + +# Allow the client pod to access the frontend pod within the stars namespace +resource "kubernetes_network_policy_v1" "allow_client_to_backend" { + metadata { + name = "frontend-policy" + namespace = "stars" + } + + spec { + policy_types = ["Ingress"] + pod_selector { + match_labels = { + role = "frontend" + } + } + ingress { + from { + namespace_selector { + match_labels = { + role = "client" + } + } + } + ports { + protocol = "TCP" + port = "80" + } + } + } + + depends_on = [module.addons] +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/outputs.tf new file mode 100644 index 0000000..c952ef9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/outputs.tf @@ -0,0 +1,4 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks update-kubeconfig --name ${module.eks.cluster_name} --alias ${module.eks.cluster_name} --region ${local.region}" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/variables.tf new file mode 100644 index 0000000..e69de29 diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/versions.tf new file mode 100644 index 0000000..a9c6c96 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/aws-vpc-cni-network-policy/input/versions.tf @@ -0,0 +1,18 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + kubernetes = { + source = "hashicorp/kubernetes" + version = ">= 2.20" + } + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/fixture.json new file mode 100644 index 0000000..4058f82 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/blue-green-upgrade/environment", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "f476e1dca01e8ee1758a5908bfa859b319d8642a3b1e89eb31db9cb08487cf93" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "random" + ], + "features": [ + "data", + "functions", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/main.tf new file mode 100644 index 0000000..28f3754 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/main.tf @@ -0,0 +1,111 @@ +provider "aws" { + region = local.region +} + +locals { + name = var.environment_name + region = var.aws_region + + vpc_cidr = var.vpc_cidr + num_of_subnets = min(length(data.aws_availability_zones.available.names), 3) + azs = slice(data.aws_availability_zones.available.names, 0, local.num_of_subnets) + + argocd_secret_manager_name = var.argocd_secret_manager_name_suffix + + hosted_zone_name = var.hosted_zone_name + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 6, k)] + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 6, k + 10)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} + +# Retrieve existing root hosted zone +data "aws_route53_zone" "root" { + name = local.hosted_zone_name +} + +# Create Sub HostedZone four our deployment +resource "aws_route53_zone" "sub" { + name = "${local.name}.${local.hosted_zone_name}" +} + +# Validate records for the new HostedZone +resource "aws_route53_record" "ns" { + zone_id = data.aws_route53_zone.root.zone_id + name = "${local.name}.${local.hosted_zone_name}" + type = "NS" + ttl = "30" + records = aws_route53_zone.sub.name_servers +} + +module "acm" { + source = "terraform-aws-modules/acm/aws" + version = "~> 4.0" + + domain_name = "${local.name}.${local.hosted_zone_name}" + zone_id = aws_route53_zone.sub.zone_id + + subject_alternative_names = [ + "*.${local.name}.${local.hosted_zone_name}" + ] + + wait_for_validation = true + + tags = { + Name = "${local.name}.${local.hosted_zone_name}" + } +} + +#--------------------------------------------------------------- +# ArgoCD Admin Password credentials with Secrets Manager +# Login to AWS Secrets manager with the same role as Terraform to extract the ArgoCD admin password with the secret name as "argocd" +#--------------------------------------------------------------- +resource "random_password" "argocd" { + length = 16 + special = true + override_special = "!#$%&*()-_=+[]{}<>:?" +} + +resource "aws_secretsmanager_secret" "argocd" { + name = "${local.argocd_secret_manager_name}.${local.name}" + recovery_window_in_days = 0 # Set to zero for this example to force delete during Terraform destroy +} + +resource "aws_secretsmanager_secret_version" "argocd" { + secret_id = aws_secretsmanager_secret.argocd.id + secret_string = random_password.argocd.result +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/outputs.tf new file mode 100644 index 0000000..c58c272 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/outputs.tf @@ -0,0 +1,14 @@ +output "vpc_id" { + description = "The ID of the VPC" + value = module.vpc.vpc_id +} + +output "aws_route53_zone" { + description = "The new Route53 Zone" + value = aws_route53_zone.sub.name +} + +output "aws_acm_certificate_status" { + description = "Status of Certificate" + value = module.acm.acm_certificate_status +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/variables.tf new file mode 100644 index 0000000..2cfc335 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/variables.tf @@ -0,0 +1,29 @@ +variable "environment_name" { + description = "The name of environment Infrastructure stack, feel free to rename it. Used for cluster and VPC names." + type = string + default = "eks-blueprint" +} + +variable "aws_region" { + description = "AWS Region" + type = string + default = "us-west-2" +} + +variable "vpc_cidr" { + description = "CIDR block for VPC" + type = string + default = "10.0.0.0/16" +} + +variable "argocd_secret_manager_name_suffix" { + type = string + description = "Name of secret manager secret for ArgoCD Admin UI Password" + default = "argocd-admin-secret" +} + +variable "hosted_zone_name" { + type = string + description = "Route53 domain for the cluster." + default = "example.com" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/versions.tf new file mode 100644 index 0000000..6227221 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/environment/input/versions.tf @@ -0,0 +1,15 @@ +terraform { + required_version = ">= 1.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.67" + } + random = { + source = "hashicorp/random" + version = ">= 3.0" + } + + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/fixture.json new file mode 100644 index 0000000..fca21e7 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/fixture.json @@ -0,0 +1,41 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/blue-green-upgrade/modules/eks_cluster", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "1ea8463838909c269ef805f2133460e232757756d72d3acb855cf1edcb25e934" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "kubernetes" + ], + "features": [ + "count", + "data", + "depends_on", + "for_each", + "for_expressions", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "sensitive", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/main.tf new file mode 100644 index 0000000..9cb2903 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/main.tf @@ -0,0 +1,699 @@ +# Required for public ECR where Karpenter artifacts are hosted +provider "aws" { + region = "us-east-1" + alias = "ecr" +} + +locals { + environment = var.environment_name + service = var.service_name + region = var.aws_region + + env = local.service + name = "${local.environment}-${local.service}" + + # Mapping + hosted_zone_name = var.hosted_zone_name + ingress_type = var.ingress_type + aws_secret_manager_git_private_ssh_key_name = var.aws_secret_manager_git_private_ssh_key_name + cluster_version = var.cluster_version + argocd_secret_manager_name = var.argocd_secret_manager_name_suffix + eks_admin_role_name = var.eks_admin_role_name + + gitops_workloads_url = "${var.gitops_workloads_org}/${var.gitops_workloads_repo}" + gitops_workloads_path = var.gitops_workloads_path + gitops_workloads_revision = var.gitops_workloads_revision + + gitops_addons_url = "${var.gitops_addons_org}/${var.gitops_addons_repo}" + gitops_addons_basepath = var.gitops_addons_basepath + gitops_addons_path = var.gitops_addons_path + gitops_addons_revision = var.gitops_addons_revision + + # Route 53 Ingress Weights + argocd_route53_weight = var.argocd_route53_weight + route53_weight = var.route53_weight + ecsfrontend_route53_weight = var.ecsfrontend_route53_weight + + eks_cluster_domain = "${local.environment}.${local.hosted_zone_name}" # for external-dns + + tag_val_vpc = local.environment + tag_val_public_subnet = "${local.environment}-public-" + tag_val_private_subnet = "${local.environment}-private-" + + node_group_name = "managed-ondemand" + + #--------------------------------------------------------------- + # ARGOCD ADD-ON APPLICATION + #--------------------------------------------------------------- + + aws_addons = { + enable_cert_manager = true + enable_aws_ebs_csi_resources = true # generate gp2 and gp3 storage classes for ebs-csi + #enable_aws_efs_csi_driver = true + #enable_aws_fsx_csi_driver = true + enable_aws_cloudwatch_metrics = true + #enable_aws_privateca_issuer = true + #enable_cluster_autoscaler = true + enable_external_dns = true + enable_external_secrets = true + enable_aws_load_balancer_controller = true + #enable_fargate_fluentbit = true + enable_aws_for_fluentbit = true + #enable_aws_node_termination_handler = true + enable_karpenter = true + #enable_velero = true + #enable_aws_gateway_api_controller = true + #enable_aws_secrets_store_csi_driver_provider = true + } + oss_addons = { + #enable_argo_rollouts = true + #enable_argo_workflows = true + #enable_cluster_proportional_autoscaler = true + #enable_gatekeeper = true + #enable_gpu_operator = true + enable_ingress_nginx = true + enable_kyverno = true + #enable_kube_prometheus_stack = true + enable_metrics_server = true + #enable_prometheus_adapter = true + #enable_secrets_store_csi_driver = true + #enable_vpa = true + #enable_foo = true # you can add any addon here, make sure to update the gitops repo with the corresponding application set + } + addons = merge(local.aws_addons, local.oss_addons, { kubernetes_version = local.cluster_version }) + + #---------------------------------------------------------------- + # GitOps Bridge, define metadatas to pass from Terraform to ArgoCD + #---------------------------------------------------------------- + + addons_metadata = merge( + try(module.eks_blueprints_addons.gitops_metadata, {}), # eks blueprints addons automatically expose metadatas + { + aws_cluster_name = module.eks.cluster_name + aws_region = local.region + aws_account_id = data.aws_caller_identity.current.account_id + aws_vpc_id = data.aws_vpc.vpc.id + cluster_endpoint = try(module.eks.cluster_endpoint, {}) + env = local.env + }, + { + argocd_password = bcrypt(data.aws_secretsmanager_secret_version.admin_password_version.secret_string) + aws_secret_manager_git_private_ssh_key_name = local.aws_secret_manager_git_private_ssh_key_name + + gitops_workloads_url = local.gitops_workloads_url + gitops_workloads_path = local.gitops_workloads_path + gitops_workloads_revision = local.gitops_workloads_revision + + addons_repo_url = local.gitops_addons_url + addons_repo_basepath = local.gitops_addons_basepath + addons_repo_path = local.gitops_addons_path + addons_repo_revision = local.gitops_addons_revision + }, + { + eks_cluster_domain = local.eks_cluster_domain + external_dns_policy = "sync" + ingress_type = local.ingress_type + argocd_route53_weight = local.argocd_route53_weight + route53_weight = local.route53_weight + ecsfrontend_route53_weight = local.ecsfrontend_route53_weight + #target_group_arn = local.service == "blue" ? data.aws_lb_target_group.tg_blue.arn : data.aws_lb_target_group.tg_green.arn # <-- Add this line + # external_lb_dns = data.aws_lb.alb.dns_name + } + ) + + #--------------------------------------------------------------- + # Manifests for bootstraping the cluster for addons & workloads + #--------------------------------------------------------------- + + argocd_apps = { + addons = file("${path.module}/../../bootstrap/addons.yaml") + workloads = file("${path.module}/../../bootstrap/workloads.yaml") + } + + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } + +} + +# Find the user currently in use by AWS +data "aws_caller_identity" "current" {} + +data "aws_vpc" "vpc" { + filter { + name = "tag:Name" + values = [local.tag_val_vpc] + } +} + +data "aws_subnets" "private" { + filter { + name = "tag:Name" + values = ["${local.tag_val_private_subnet}*"] + } +} + +#Add Tags for the new cluster in the VPC Subnets +resource "aws_ec2_tag" "private_subnets" { + for_each = toset(data.aws_subnets.private.ids) + resource_id = each.value + key = "kubernetes.io/cluster/${local.environment}-${local.service}" + value = "shared" +} + +data "aws_subnets" "public" { + filter { + name = "tag:Name" + values = ["${local.tag_val_public_subnet}*"] + } +} + +#Add Tags for the new cluster in the VPC Subnets +resource "aws_ec2_tag" "public_subnets" { + for_each = toset(data.aws_subnets.public.ids) + resource_id = each.value + key = "kubernetes.io/cluster/${local.environment}-${local.service}" + value = "shared" +} + +# Get HostedZone four our deployment +data "aws_route53_zone" "sub" { + name = "${local.environment}.${local.hosted_zone_name}" +} + +################################################################################ +# AWS Secret Manager for argocd password +################################################################################ + +data "aws_secretsmanager_secret" "argocd" { + name = "${local.argocd_secret_manager_name}.${local.environment}" +} + +data "aws_secretsmanager_secret_version" "admin_password_version" { + secret_id = data.aws_secretsmanager_secret.argocd.id +} + +################################################################################ +# EKS Cluster +################################################################################ +#tfsec:ignore:aws-eks-enable-control-plane-logging +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 19.15.2" + + cluster_name = local.name + cluster_version = local.cluster_version + cluster_endpoint_public_access = true + + vpc_id = data.aws_vpc.vpc.id + subnet_ids = data.aws_subnets.private.ids + + #we uses only 1 security group to allow connection with Fargate, MNG, and Karpenter nodes + create_node_security_group = false + eks_managed_node_groups = { + initial = { + node_group_name = local.node_group_name + instance_types = ["m5.large"] + + min_size = 1 + max_size = 5 + desired_size = 3 + subnet_ids = data.aws_subnets.private.ids + } + } + + manage_aws_auth_configmap = true + aws_auth_roles = concat( + [for team in module.eks_blueprints_dev_teams : team.aws_auth_configmap_role], + [ + module.eks_blueprints_platform_teams.aws_auth_configmap_role, + { + rolearn = module.eks_blueprints_addons.karpenter.node_iam_role_arn + username = "system:node:{{EC2PrivateDNSName}}" + groups = [ + "system:bootstrappers", + "system:nodes", + ] + }, + { + rolearn = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${local.eks_admin_role_name}" # The ARN of the IAM role + username = "ops-role" # The user name within Kubernetes to map to the IAM role + groups = ["system:masters"] # A list of groups within Kubernetes to which the role is mapped; Checkout K8s Role and Rolebindings + } + ] + ) + + tags = merge(local.tags, { + # NOTE - if creating multiple security groups with this module, only tag the + # security group that Karpenter should utilize with the following tag + # (i.e. - at most, only one security group should have this tag in your account) + "karpenter.sh/discovery" = "${local.environment}-${local.service}" + }) +} + +data "aws_iam_role" "eks_admin_role_name" { + count = local.eks_admin_role_name != "" ? 1 : 0 + name = local.eks_admin_role_name +} + +################################################################################ +# EKS Blueprints Teams +################################################################################ +module "eks_blueprints_platform_teams" { + source = "aws-ia/eks-blueprints-teams/aws" + version = "~> 1.0" + + name = "team-platform" + + # Enables elevated, admin privileges for this team + enable_admin = true + + # Define who can impersonate the team-platform Role + users = [ + data.aws_caller_identity.current.arn, + try(data.aws_iam_role.eks_admin_role_name[0].arn, data.aws_caller_identity.current.arn), + ] + cluster_arn = module.eks.cluster_arn + oidc_provider_arn = module.eks.oidc_provider_arn + + labels = { + "elbv2.k8s.aws/pod-readiness-gate-inject" = "enabled", + "appName" = "platform-team-app", + "projectName" = "project-platform", + #"pod-security.kubernetes.io/enforce" = "restricted", + } + + annotations = { + team = "platform" + } + + namespaces = { + "team-platform" = { + + resource_quota = { + hard = { + "requests.cpu" = "10000m", + "requests.memory" = "20Gi", + "limits.cpu" = "20000m", + "limits.memory" = "50Gi", + "pods" = "20", + "secrets" = "20", + "services" = "20" + } + } + + limit_range = { + limit = [ + { + type = "Pod" + max = { + cpu = "1000m" + memory = "1Gi" + }, + min = { + cpu = "10m" + memory = "4Mi" + } + }, + { + type = "PersistentVolumeClaim" + min = { + storage = "24M" + } + } + ] + } + + } + + } + + tags = local.tags +} + +module "eks_blueprints_dev_teams" { + source = "aws-ia/eks-blueprints-teams/aws" + version = "~> 1.0" + + for_each = { + burnham = { + labels = { + "elbv2.k8s.aws/pod-readiness-gate-inject" = "enabled", + "appName" = "burnham-team-app", + "projectName" = "project-burnham", + #"pod-security.kubernetes.io/enforce" = "restricted", + } + } + riker = { + labels = { + "elbv2.k8s.aws/pod-readiness-gate-inject" = "enabled", + "appName" = "riker-team-app", + "projectName" = "project-riker", + } + } + } + name = "team-${each.key}" + + users = [data.aws_caller_identity.current.arn] + cluster_arn = module.eks.cluster_arn + oidc_provider_arn = module.eks.oidc_provider_arn + + labels = merge( + { + team = each.key + }, + try(each.value.labels, {}) + ) + + annotations = { + team = each.key + } + + namespaces = { + "team-${each.key}" = { + labels = merge( + { + team = each.key + }, + try(each.value.labels, {}) + ) + + resource_quota = { + hard = { + "requests.cpu" = "100", + "requests.memory" = "20Gi", + "limits.cpu" = "200", + "limits.memory" = "50Gi", + "pods" = "100", + "secrets" = "10", + "services" = "20" + } + } + + limit_range = { + limit = [ + { + type = "Pod" + max = { + cpu = "2" + memory = "1Gi" + } + min = { + cpu = "10m" + memory = "4Mi" + } + }, + { + type = "PersistentVolumeClaim" + min = { + storage = "24M" + } + }, + { + type = "Container" + default = { + cpu = "50m" + memory = "24Mi" + } + } + ] + } + } + } + + tags = local.tags + +} + +module "eks_blueprints_ecsdemo_teams" { + source = "aws-ia/eks-blueprints-teams/aws" + version = "~> 1.0" + + for_each = { + ecsdemo-frontend = {} + ecsdemo-nodejs = {} + ecsdemo-crystal = {} + } + name = "team-${each.key}" + + users = [data.aws_caller_identity.current.arn] + cluster_arn = module.eks.cluster_arn + oidc_provider_arn = module.eks.oidc_provider_arn + + labels = { + "elbv2.k8s.aws/pod-readiness-gate-inject" = "enabled", + "appName" = "${each.key}-app", + "projectName" = each.key, + "environment" = "dev", + } + + annotations = { + team = each.key + } + + namespaces = { + (each.key) = { + labels = { + "elbv2.k8s.aws/pod-readiness-gate-inject" = "enabled", + "appName" = "${each.key}-app", + "projectName" = each.key, + "environment" = "dev", + } + + resource_quota = { + hard = { + "requests.cpu" = "100", + "requests.memory" = "20Gi", + "limits.cpu" = "200", + "limits.memory" = "50Gi", + "pods" = "100", + "secrets" = "10", + "services" = "20" + } + } + + limit_range = { + limit = [ + { + type = "Pod" + max = { + cpu = "2" + memory = "1Gi" + } + min = { + cpu = "10m" + memory = "4Mi" + } + }, + { + type = "PersistentVolumeClaim" + min = { + storage = "24M" + } + }, + { + type = "Container" + default = { + cpu = "50m" + memory = "24Mi" + } + } + ] + } + } + } + + tags = local.tags +} + +################################################################################ +# GitOps Bridge: Private ssh keys for git +################################################################################ +data "aws_secretsmanager_secret" "workload_repo_secret" { + name = local.aws_secret_manager_git_private_ssh_key_name +} + +data "aws_secretsmanager_secret_version" "workload_repo_secret" { + secret_id = data.aws_secretsmanager_secret.workload_repo_secret.id +} + +resource "kubernetes_namespace" "argocd" { + depends_on = [module.eks_blueprints_addons] + metadata { + name = "argocd" + } +} + +resource "kubernetes_secret" "git_secrets" { + + for_each = { + git-addons = { + type = "git" + url = local.gitops_addons_url + # comment if you want to uses public repo wigh syntax "https://github.com/xxx" syntax, uncomment when using syntax "git@github.com:xxx" + sshPrivateKey = data.aws_secretsmanager_secret_version.workload_repo_secret.secret_string + } + git-workloads = { + type = "git" + url = local.gitops_workloads_url + # comment if you want to uses public repo wigh syntax "https://github.com/xxx" syntax, uncomment when using syntax "git@github.com:xxx" + sshPrivateKey = data.aws_secretsmanager_secret_version.workload_repo_secret.secret_string + } + } + metadata { + name = each.key + namespace = kubernetes_namespace.argocd.metadata[0].name + labels = { + "argocd.argoproj.io/secret-type" = "repo-creds" + } + } + data = each.value +} + +################################################################################ +# GitOps Bridge: Bootstrap +################################################################################ +module "gitops_bridge_bootstrap" { + source = "github.com/gitops-bridge-dev/gitops-bridge-argocd-bootstrap-terraform?ref=v2.0.0" + + cluster = { + cluster_name = module.eks.cluster_name + environment = local.environment + metadata = local.addons_metadata + addons = local.addons + } + apps = local.argocd_apps + + argocd = { + create_namespace = false + set = [ + { + name = "server.service.type" + value = "LoadBalancer" + } + ] + set_sensitive = [ + { + name = "configs.secret.argocdServerAdminPassword" + value = bcrypt(data.aws_secretsmanager_secret_version.admin_password_version.secret_string) + } + ] + } + + depends_on = [kubernetes_secret.git_secrets] +} + +################################################################################ +# EKS Blueprints Addons +################################################################################ +module "eks_blueprints_addons" { + source = "aws-ia/eks-blueprints-addons/aws" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + # Using GitOps Bridge + create_kubernetes_resources = false + + eks_addons = { + + # Remove for workshop as ebs-csi is long to provision (15mn) + # aws-ebs-csi-driver = { + # most_recent = true + # service_account_role_arn = module.ebs_csi_driver_irsa.iam_role_arn + # } + coredns = { + most_recent = true + } + vpc-cni = { + # Specify the VPC CNI addon should be deployed before compute to ensure + # the addon is configured before data plane compute resources are created + # See README for further details + service_account_role_arn = module.vpc_cni_irsa.iam_role_arn + before_compute = true + #addon_version = "v1.12.2-eksbuild.1" + most_recent = true # To ensure access to the latest settings provided + configuration_values = jsonencode({ + env = { + # Reference docs https://docs.aws.amazon.com/eks/latest/userguide/cni-increase-ip-addresses.html + ENABLE_PREFIX_DELEGATION = "true" + WARM_PREFIX_TARGET = "1" + } + }) + } + kube-proxy = { + most_recent = true + } + } + + # EKS Blueprints Addons + enable_cert_manager = try(local.aws_addons.enable_cert_manager, false) + #enable_aws_ebs_csi_resources = try(local.aws_addons.enable_aws_ebs_csi_resources, false) + enable_aws_efs_csi_driver = try(local.aws_addons.enable_aws_efs_csi_driver, false) + enable_aws_fsx_csi_driver = try(local.aws_addons.enable_aws_fsx_csi_driver, false) + enable_aws_cloudwatch_metrics = try(local.aws_addons.enable_aws_cloudwatch_metrics, false) + enable_aws_privateca_issuer = try(local.aws_addons.enable_aws_privateca_issuer, false) + enable_cluster_autoscaler = try(local.aws_addons.enable_cluster_autoscaler, false) + enable_external_dns = try(local.aws_addons.enable_external_dns, false) + external_dns_route53_zone_arns = [data.aws_route53_zone.sub.arn] + enable_external_secrets = try(local.aws_addons.enable_external_secrets, false) + enable_aws_load_balancer_controller = try(local.aws_addons.enable_aws_load_balancer_controller, false) + aws_load_balancer_controller = { + service_account_name = "aws-lb-sa" + } + + enable_fargate_fluentbit = try(local.aws_addons.enable_fargate_fluentbit, false) + enable_aws_for_fluentbit = try(local.aws_addons.enable_aws_for_fluentbit, false) + enable_aws_node_termination_handler = try(local.aws_addons.enable_aws_node_termination_handler, false) + aws_node_termination_handler_asg_arns = [for asg in module.eks.self_managed_node_groups : asg.autoscaling_group_arn] + enable_karpenter = try(local.aws_addons.enable_karpenter, false) + enable_velero = try(local.aws_addons.enable_velero, false) + #velero = { + # s3_backup_location = "${module.velero_backup_s3_bucket.s3_bucket_arn}/backups" + #} + enable_aws_gateway_api_controller = try(local.aws_addons.enable_aws_gateway_api_controller, false) + #enable_aws_secrets_store_csi_driver_provider = try(local.enable_aws_secrets_store_csi_driver_provider, false) + + tags = local.tags +} + +module "ebs_csi_driver_irsa" { + source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks" + version = "~> 5.20" + + role_name_prefix = "${module.eks.cluster_name}-ebs-csi-" + + attach_ebs_csi_policy = true + + oidc_providers = { + main = { + provider_arn = module.eks.oidc_provider_arn + namespace_service_accounts = ["kube-system:ebs-csi-controller-sa"] + } + } + + tags = local.tags +} + +module "vpc_cni_irsa" { + source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks" + version = "~> 5.20" + + role_name_prefix = "${module.eks.cluster_name}-vpc-cni-" + + attach_vpc_cni_policy = true + vpc_cni_enable_ipv4 = true + + oidc_providers = { + main = { + provider_arn = module.eks.oidc_provider_arn + namespace_service_accounts = ["kube-system:aws-node"] + } + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/outputs.tf new file mode 100644 index 0000000..3df93a5 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/outputs.tf @@ -0,0 +1,51 @@ +output "eks_cluster_id" { + description = "The name of the EKS cluster." + value = module.eks.cluster_name +} + +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${var.aws_region} update-kubeconfig --name ${module.eks.cluster_name}" +} + +output "eks_blueprints_platform_teams_configure_kubectl" { + description = "Configure kubectl Platform Team: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${var.aws_region} update-kubeconfig --name ${module.eks.cluster_name} --role-arn ${module.eks_blueprints_platform_teams.iam_role_arn}" +} + +output "eks_blueprints_dev_teams_configure_kubectl" { + description = "Configure kubectl for each Dev Application Teams: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = [for team in module.eks_blueprints_dev_teams : "aws eks --region ${var.aws_region} update-kubeconfig --name ${module.eks.cluster_name} --role-arn ${team.iam_role_arn}"] +} + +output "eks_blueprints_ecsdemo_teams_configure_kubectl" { + description = "Configure kubectl for each ECSDEMO Application Teams: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = [for team in module.eks_blueprints_ecsdemo_teams : "aws eks --region ${var.aws_region} update-kubeconfig --name ${module.eks.cluster_name} --role-arn ${team.iam_role_arn}"] +} + +output "eks_cluster_endpoint" { + description = "The endpoint of the EKS cluster." + value = module.eks.cluster_endpoint +} + +output "cluster_certificate_authority_data" { + description = "cluster_certificate_authority_data" + value = module.eks.cluster_certificate_authority_data +} + +output "access_argocd" { + description = "ArgoCD Access" + value = <<-EOT + export KUBECONFIG="/tmp/${module.eks.cluster_name}" + aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name} + echo "ArgoCD URL: https://$(kubectl get svc -n argocd argo-cd-argocd-server -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')" + echo "ArgoCD Username: admin" + echo "ArgoCD Password: $(aws secretsmanager get-secret-value --secret-id argocd-admin-secret.${local.environment} --query SecretString --output text --region ${local.region})" + EOT +} + +output "gitops_metadata" { + description = "export gitops_metadata" + value = local.addons_metadata + sensitive = true +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/variables.tf new file mode 100644 index 0000000..769c006 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/variables.tf @@ -0,0 +1,121 @@ +variable "aws_region" { + description = "AWS Region" + type = string + default = "us-west-2" +} + +variable "environment_name" { + description = "The name of Environment Infrastructure stack, feel free to rename it. Used for cluster and VPC names." + type = string + default = "eks-blueprint" +} + +variable "ingress_type" { + type = string + description = "Type of ingress to uses (alb | nginx | ...). this parameter will be sent to argocd via gitops bridge" + default = "alb" +} + +variable "hosted_zone_name" { + type = string + description = "Route53 domain for the cluster." + default = "" +} + +variable "eks_admin_role_name" { + type = string + description = "Additional IAM role to be admin in the cluster" + default = "" +} + +variable "aws_secret_manager_git_private_ssh_key_name" { + type = string + description = "Secret Manager secret name for hosting Github SSH-Key to Access private repository" + default = "github-blueprint-ssh-key" +} + +variable "argocd_secret_manager_name_suffix" { + type = string + description = "Name of secret manager secret for ArgoCD Admin UI Password" + default = "argocd-admin-secret" +} + +variable "gitops_addons_org" { + type = string + description = "Git repository org/user contains for addons" + default = "git@github.com:aws-samples" +} +variable "gitops_addons_repo" { + type = string + description = "Git repository contains for addons" + default = "eks-blueprints-add-ons" +} +variable "gitops_addons_basepath" { + type = string + description = "Git repository base path for addons" + default = "argocd/" +} +variable "gitops_addons_path" { + type = string + description = "Git repository path for addons" + default = "argocd/bootstrap/control-plane/addons" +} +variable "gitops_addons_revision" { + type = string + description = "Git repository revision/branch/ref for addons" + default = "HEAD" +} + +variable "gitops_workloads_org" { + type = string + description = "Git repository org/user contains for workloads" + default = "git@github.com:aws-samples" +} + +variable "gitops_workloads_repo" { + type = string + description = "Git repository contains for workloads" + default = "eks-blueprints-workloads" +} + +variable "gitops_workloads_path" { + type = string + description = "Git repo path in workload_repo_url for the ArgoCD workload deployment" + default = "envs/dev" +} + +variable "gitops_workloads_revision" { + type = string + description = "Git repo revision in gitops_workloads_url for the ArgoCD workload deployment" + default = "main" +} + +variable "service_name" { + description = "The name of the Suffix for the stack name" + type = string + default = "blue" +} + +variable "cluster_version" { + description = "The Version of Kubernetes to deploy" + type = string + default = "1.25" +} + +variable "argocd_route53_weight" { + description = "The Route53 weighted records weight for argocd application" + type = string + default = "100" +} + +variable "ecsfrontend_route53_weight" { + description = "The Route53 weighted records weight for ecsdemo-frontend application" + type = string + default = "100" +} + +variable "route53_weight" { + description = "The Route53 weighted records weight for others application" + type = string + default = "100" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/versions.tf new file mode 100644 index 0000000..d6775e7 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/blue-green-upgrade/modules/eks_cluster/input/versions.tf @@ -0,0 +1,15 @@ +terraform { + required_version = ">= 1.4.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + + kubernetes = { + source = "hashicorp/kubernetes" + version = "2.22.0" + } + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/fixture.json new file mode 100644 index 0000000..d1ebf6a --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/bottlerocket", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "787aaedcb4cbc2ac3179ef767541bd9ffd2c66aa72cab61c2f3ad26ab4d1b324" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm", + "kubernetes" + ], + "features": [ + "data", + "depends_on", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/addons.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/addons.tf new file mode 100644 index 0000000..1024e89 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/addons.tf @@ -0,0 +1,107 @@ +################################################################################ +# EKS Blueprints Addons +################################################################################ +data "aws_ecrpublic_authorization_token" "token" { + provider = aws.ecr +} + +module "eks_blueprints_addons" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.16" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + enable_cert_manager = true + cert_manager = { + wait = true + wait_for_jobs = true + values = [<<-EOT + tolerations: + - key: "CriticalAddonsOnly" + operator: "Exists" + cainjector: + tolerations: + - key: "CriticalAddonsOnly" + operator: "Exists" + webhook: + tolerations: + - key: "CriticalAddonsOnly" + operator: "Exists" + startupapicheck: + tolerations: + - key: "CriticalAddonsOnly" + operator: "Exists" + EOT + ] + } + + enable_karpenter = true + karpenter = { + repository_username = data.aws_ecrpublic_authorization_token.token.user_name + repository_password = data.aws_ecrpublic_authorization_token.token.password + } + + enable_bottlerocket_update_operator = true + bottlerocket_update_operator = { + values = [<<-EOT + scheduler_cron_expression: "* * * * * * *" + placement: + agent: + tolerations: + - key: "CriticalAddonsOnly" + operator: "Exists" + controller: + tolerations: + - key: "CriticalAddonsOnly" + operator: "Exists" + apiserver: + tolerations: + - key: "CriticalAddonsOnly" + operator: "Exists" + EOT + ] + } + + tags = local.tags +} + +################################################################################ +# Karpenter resources +################################################################################ +resource "aws_eks_access_entry" "karpenter" { + + cluster_name = module.eks.cluster_name + principal_arn = module.eks_blueprints_addons.karpenter.node_iam_role_arn + type = "EC2_LINUX" + + tags = local.tags + + depends_on = [module.eks_blueprints_addons] +} + +resource "helm_release" "karpenter_resources" { + name = "karpenter-resources" + chart = "./karpenter-resources" + set_list { + name = "nodepool.zone" + value = local.azs + } + values = [<<-EOT + ec2nodeclass: + securityGroupSelectorTerms: + tags: ${module.eks.cluster_name} + subnetSelectorTerms: + tags: ${module.eks.cluster_name} + tags: ${module.eks.cluster_name} + role: ${split("/", module.eks_blueprints_addons.karpenter.node_iam_role_arn)[1]} + blockDeviceMappings: + ebs: + kmsKeyID: ${module.ebs_kms_key.key_id} + EOT + ] + + depends_on = [module.eks_blueprints_addons] +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/eks.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/eks.tf new file mode 100644 index 0000000..1b993c9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/eks.tf @@ -0,0 +1,113 @@ +################################################################################ +# EKS Cluster +################################################################################ +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.20" + + cluster_name = local.name + cluster_version = "1.30" + cluster_endpoint_public_access = true + + cluster_enabled_log_types = ["api", "audit", "authenticator", "controllerManager", "scheduler"] + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + cluster_addons = { + coredns = { + most_recent = true + } + kube-proxy = { + most_recent = true + } + vpc-cni = { + most_recent = true + before_compute = true + } + } + # Give the Terraform identity admin access to the cluster + # which will allow resources to be deployed into the cluster + enable_cluster_creator_admin_permissions = true + authentication_mode = "API" + + eks_managed_node_groups = { + bottlerocket = { + ami_type = "BOTTLEROCKET_x86_64" + instance_types = ["m5.large", "m5a.large"] + + iam_role_attach_cni_policy = true + # The below AMI release version is for testing purposes in order to validate Botterocket Update Operator. + ami_release_version = "1.20.0-fcf71a47" + + min_size = 1 + max_size = 5 + desired_size = 3 + + ebs_optimized = true + enable_monitoring = true + block_device_mappings = { + xvda = { + device_name = "/dev/xvda" + ebs = { + encrypted = true + kms_key_id = module.ebs_kms_key.key_arn + delete_on_termination = true + } + } + xvdb = { + device_name = "/dev/xvdb" + ebs = { + encrypted = true + kms_key_id = module.ebs_kms_key.key_arn + delete_on_termination = true + } + } + } + + # The following block customize your Bottlerocket instances, including kubernetes tags, host and kernel parameters, and user-data. + bootstrap_extra_args = <<-EOT + [settings.host-containers.admin] + enabled = false + + [settings.host-containers.control] + enabled = true + + [settings.kernel] + lockdown = "integrity" + + [settings.kubernetes.node-labels] + "bottlerocket.aws/updater-interface-version" = "2.0.0" + + [settings.kubernetes.node-taints] + "CriticalAddonsOnly" = "true:NoSchedule" + EOT + } + } + + tags = merge(local.tags, { + "karpenter.sh/discovery" = local.name + }) +} + +module "ebs_kms_key" { + source = "terraform-aws-modules/kms/aws" + version = "~> 1.5" + + description = "Customer managed key to encrypt EKS managed node group volumes" + + # Policy + key_administrators = [ + data.aws_caller_identity.current.arn + ] + + key_service_roles_for_autoscaling = [ + "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling", + module.eks.cluster_iam_role_arn, + module.eks_blueprints_addons.karpenter.iam_role_arn + ] + + aliases = ["eks/${local.name}/ebs"] + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/main.tf new file mode 100644 index 0000000..1a5ded5 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/main.tf @@ -0,0 +1,56 @@ +################################################################################ +# Providers +################################################################################ +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +data "aws_caller_identity" "current" {} + +locals { + name = substr(basename(path.cwd), 0, 12) + region = "us-west-2" + tags = { + Sample = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +provider "aws" { + region = local.region +} + +# This provider is required for ECR to autheticate with public repos. Please note ECR authetication requires us-east-1 as region hence its hardcoded below. +# If your region is same as us-east-1 then you can just use one aws provider +provider "aws" { + alias = "ecr" + region = "us-east-1" +} + +provider "kubernetes" { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", local.region] + } +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", local.region] + } + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/outputs.tf new file mode 100644 index 0000000..f8e1d59 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/outputs.tf @@ -0,0 +1,7 @@ +################################################################################ +# Outputs +################################################################################ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig." + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/versions.tf new file mode 100644 index 0000000..1bd3457 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/versions.tf @@ -0,0 +1,18 @@ +terraform { + required_version = ">= 1.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + kubernetes = { + source = "hashicorp/kubernetes" + version = ">= 2.20" + } + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/vpc.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/vpc.tf new file mode 100644 index 0000000..2b5555d --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/bottlerocket/input/vpc.tf @@ -0,0 +1,34 @@ +################################################################################ +# VPC +################################################################################ +locals { + azs = slice(data.aws_availability_zones.available.names, 0, 3) + vpc_cidr = "10.0.0.0/16" +} + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.9" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + # Tags subnets for Karpenter auto-discovery + "karpenter.sh/discovery" = local.name + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/fixture.json new file mode 100644 index 0000000..4b014cb --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/fixture.json @@ -0,0 +1,39 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/ecr-pull-through-cache", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "9e24196b7630e146a08d77ddab35ee2b2818c0ac5e69566ef4add26c1f94110a" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm", + "kubernetes" + ], + "features": [ + "data", + "depends_on", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "sensitive", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/addons.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/addons.tf new file mode 100644 index 0000000..ad0de9c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/addons.tf @@ -0,0 +1,134 @@ +locals { + ecr_url = "${data.aws_caller_identity.current.account_id}.dkr.ecr.${local.region}.amazonaws.com" +} + +module "eks_blueprints_addons" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.16" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + enable_argocd = true + argocd = { + values = [<<-EOT + global: + image: + repository: ${local.ecr_url}/quay/argoproj/argocd + dex: + image: + repository: ${local.ecr_url}/docker-hub/dexidp/dex + haproxy: + image: + repository: ${local.ecr_url}/docker-hub/library/haproxy + EOT + ] + } + + enable_metrics_server = true + metrics_server = { + set = [{ + name = "image.repository" + value = "${local.ecr_url}/k8s/metrics-server/metrics-server" + } + ] + } + + enable_aws_load_balancer_controller = true + aws_load_balancer_controller = { + set = [{ + name = "image.repository" + value = "${local.ecr_url}/ecr/eks/aws-load-balancer-controller" + } + ] + } + + enable_kube_prometheus_stack = true + kube_prometheus_stack = { + values = [<<-EOT + global: + imageRegistry: ${local.ecr_url} + prometheusOperator: + image: + repository: quay/prometheus-operator/prometheus-operator + admissionWebhooks: + deployment: + image: + repository: quay/prometheus-operator/admission-webhook + patch: + image: + repository: k8s/ingress-nginx/kube-webhook-certgen + prometheusConfigReloader: + image: + repository: quay/prometheus-operator/prometheus-config-reloader + alertmanager: + alertmanagerSpec: + image: + repository: quay/prometheus/alertmanager + prometheus: + prometheusSpec: + image: + repository: quay/prometheus/prometheus + prometheus-node-exporter: + image: + repository: quay/prometheus/node-exporter + kube-state-metrics: + image: + repository: k8s/kube-state-metrics/kube-state-metrics + grafana: + global: + imageRegistry: ${local.ecr_url} + downloadDashboardsImage: + repository: ${local.ecr_url}/docker-hub/curlimages/curl + image: + repository: ${local.ecr_url}/quay/grafana/grafana + imageRenderer: + repository: ${local.ecr_url}/quay/grafana/grafana-image-renderer + sidecar: + image: + repository: ${local.ecr_url}/quay/kiwigrid/k8s-sidecar + EOT + ] + } + + depends_on = [module.eks.cluster_addons] +} + +module "gatekeeper" { + source = "aws-ia/eks-blueprints-addon/aws" + version = "~> 1.1" + + name = "gatekeeper" + description = "A Helm chart to deploy gatekeeper project" + namespace = "gatekeeper-system" + create_namespace = true + chart = "gatekeeper" + chart_version = "3.16.3" + repository = "https://open-policy-agent.github.io/gatekeeper/charts" + values = [<<-EOT + image: + repository: ${local.ecr_url}/docker-hub/openpolicyagent/gatekeeper + crdRepository: ${local.ecr_url}/docker-hub/openpolicyagent/gatekeeper-crds + postUpgrade: + labelNamespace: + image: + repository: ${local.ecr_url}/docker-hub/openpolicyagent/gatekeeper-crds + postInstall: + labelNamespace: + image: + repository: ${local.ecr_url}/docker-hub/openpolicyagent/gatekeeper-crds + probeWebhook: + image: + repository: ${local.ecr_url}/docker-hub/curlimages/curl + preUninstall: + deleteWebhookConfigurations: + image: + repository: ${local.ecr_url}/docker-hub/openpolicyagent/gatekeeper-crds + + EOT + ] + + depends_on = [module.eks.cluster_addons] +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/ecr.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/ecr.tf new file mode 100644 index 0000000..d13b950 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/ecr.tf @@ -0,0 +1,49 @@ +module "secrets_manager" { + source = "terraform-aws-modules/secrets-manager/aws" + version = "~> 1.1" + + name = "ecr-pullthroughcache/docker" + secret_string = jsonencode(var.docker_secret) + recovery_window_in_days = 0 # Set to 0 for testing purposes, this will immediately delete the secret. This action is irreversible. https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_DeleteSecret.html +} + +module "ecr" { + source = "terraform-aws-modules/ecr/aws" + version = "~> 2.2" + + create_repository = false + + registry_pull_through_cache_rules = { + ecr = { + ecr_repository_prefix = "ecr" + upstream_registry_url = "public.ecr.aws" + } + k8s = { + ecr_repository_prefix = "k8s" + upstream_registry_url = "registry.k8s.io" + } + quay = { + ecr_repository_prefix = "quay" + upstream_registry_url = "quay.io" + } + dockerhub = { + ecr_repository_prefix = "docker-hub" + upstream_registry_url = "registry-1.docker.io" + credential_arn = module.secrets_manager.secret_arn + } + } + + manage_registry_scanning_configuration = true + registry_scan_type = "ENHANCED" + registry_scan_rules = [ + { + scan_frequency = "SCAN_ON_PUSH" + filter = [ + { + filter = "*" + filter_type = "WILDCARD" + }, + ] + } + ] +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/eks.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/eks.tf new file mode 100644 index 0000000..4b587ab --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/eks.tf @@ -0,0 +1,105 @@ +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.20" + + cluster_name = local.name + cluster_version = local.cluster_version + + # Give the Terraform identity admin access to the cluster + # which will allow it to deploy resources into the cluster + enable_cluster_creator_admin_permissions = true + cluster_endpoint_public_access = true + + cluster_addons = { + aws-ebs-csi-driver = { + most_recent = true + service_account_role_arn = module.ebs_csi_driver_irsa.iam_role_arn + } + coredns = { + most_recent = true + } + kube-proxy = { + most_recent = true + } + vpc-cni = { + before_compute = true # Ensure the addon is configured before compute resources are created + most_recent = true + } + } + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_groups = { + initial = { + instance_types = ["m5.large", "m5a.large"] + + min_size = 1 + max_size = 5 + desired_size = 3 + + subnet_ids = module.vpc.private_subnets + + iam_role_additional_policies = { + AmazonEC2ContainerRegistryReadOnly = "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly" + additional = aws_iam_policy.ecrpullthroughcache.arn + } + } + } + + tags = local.tags + + depends_on = [module.vpc] +} + +resource "aws_iam_policy" "ecrpullthroughcache" { + name = "ECRPullThroughCache" + + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Action = [ + "ecr:CreateRepository", + "ecr:BatchImportUpstreamImage", + "ecr:TagResource" + ] + Effect = "Allow" + Resource = "*" + }, + ] + }) + + tags = local.tags +} + +################################################################################ +# EBS CSI Driver Role +################################################################################ + +module "ebs_csi_driver_irsa" { + source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks" + version = "~> 5.30" + + role_name = "${local.name}-ebs-csi-driver" + + attach_ebs_csi_policy = true + + oidc_providers = { + main = { + provider_arn = module.eks.oidc_provider_arn + namespace_service_accounts = ["kube-system:ebs-csi-controller-sa"] + } + } + + tags = local.tags +} + +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name} --alias ${module.eks.cluster_name}" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/main.tf new file mode 100644 index 0000000..715756e --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/main.tf @@ -0,0 +1,73 @@ +terraform { + required_version = ">= 1.8" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + kubernetes = { + source = "hashicorp/kubernetes" + version = ">= 2.20" + } + } +} + +provider "aws" { + region = local.region +} + +provider "kubernetes" { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + exec { + api_version = "client.authentication.k8s.io/v1beta1" + args = ["eks", "get-token", "--cluster-name", local.name, "--region", local.region] + command = "aws" + } +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + exec { + api_version = "client.authentication.k8s.io/v1beta1" + args = ["eks", "get-token", "--cluster-name", local.name, "--region", local.region] + command = "aws" + } + } +} + +################################################################################ +# Common data/locals +################################################################################ + +data "aws_caller_identity" "current" {} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + cluster_version = "1.30" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/variables.tf new file mode 100644 index 0000000..c9c9184 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/variables.tf @@ -0,0 +1,8 @@ +variable "docker_secret" { + description = "Inform your docker username and accessToken to allow pullTroughCache to get images from Docker.io. E.g. `{username='user',accessToken='pass'}`" + type = object({ + username = string + accessToken = string + }) + sensitive = true +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/vpc.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/vpc.tf new file mode 100644 index 0000000..956ecc8 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ecr-pull-through-cache/input/vpc.tf @@ -0,0 +1,24 @@ +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.9" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/fixture.json new file mode 100644 index 0000000..eacd019 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/fixture.json @@ -0,0 +1,36 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/eks-automode/automode-custom-nodepools", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "b828aa9d553c741421fb7e2eaed088a47ecf1c9a9351ecedfe011240688f0cb1" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm", + "kubectl" + ], + "features": [ + "data", + "for_each", + "functions", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/input/eks-automode-config.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/input/eks-automode-config.tf new file mode 100644 index 0000000..4064523 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/input/eks-automode-config.tf @@ -0,0 +1,51 @@ +# Yaml manifests are provided under folder ./eks-automode-config/ +locals { + storageclass_yamls = [ + "ebs-storageclass.yaml" + ] + ingressclass_yamls = [ + "alb-ingressclass.yaml", + "alb-ingressclassParams.yaml" + ] + custom_nodeclass_yamls = [ + "nodeclass-basic.yaml", + "nodeclass-ebs-optimized.yaml" + ] + custom_nodepool_yamls = [ + "nodepool-amd64.yaml", + "nodepool-graviton.yaml" + ] +} + +# Apply default storage class for EKS AutoMode. EBS CSI Driver runs on AWS side, managed by AWS. +resource "kubectl_manifest" "storageclass_yamls" { + for_each = toset(local.storageclass_yamls) + + yaml_body = file("${path.module}/eks-automode-config/${each.value}") +} + +# Apply default ingress class for EKS AutoMode plus ingress class parameters. AWS Load Balancer Controller runs on AWS side, managed by AWS. +resource "kubectl_manifest" "ingressclass_yamls" { + for_each = toset(local.ingressclass_yamls) + + yaml_body = file("${path.module}/eks-automode-config/${each.value}") +} + +# Apply custom nodeclass objects +resource "kubectl_manifest" "custom_nodeclass" { + for_each = toset(local.custom_nodeclass_yamls) + + yaml_body = templatefile("${path.module}/eks-automode-config/${each.value}", { + node_iam_role_name = aws_iam_role.custom_nodeclass_role.name + cluster_name = module.eks.cluster_name + }) + +} + +# Apply custom nodepool objects +resource "kubectl_manifest" "custom_nodepool" { + for_each = toset(local.custom_nodepool_yamls) + + yaml_body = file("${path.module}/eks-automode-config/${each.value}") + +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/input/main.tf new file mode 100644 index 0000000..517b218 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/eks-automode/automode-custom-nodepools/input/main.tf @@ -0,0 +1,196 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + kubectl = { + source = "alekc/kubectl" + version = ">= 2.1" + } + } +} + +provider "aws" { + region = local.region +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, + "--region", local.region] + } + } +} + +provider "kubectl" { + apply_retry_count = 5 + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + load_config_file = false + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, + "--region", local.region] + } +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-east-1" + + cluster_version = "1.31" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 2) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } + +} + +############################################################### +# EKS Cluster +############################################################### + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.34" + + cluster_name = local.name + cluster_version = local.cluster_version + + # if true, Your cluster API server is accessible from the internet. You can, optionally, limit the CIDR blocks that can access the public endpoint. + #WARNING: Avoid using this option (cluster_endpoint_public_access = true) in preprod or prod accounts. This feature is designed for sandbox accounts, simplifying cluster deployment and testing. + # Alternatively, create a bastion host in the same VPC as the cluster to access the cluster API server over a private connection + cluster_endpoint_public_access = true + + vpc_id = module.vpc.vpc_id + + subnet_ids = module.vpc.private_subnets + + enable_cluster_creator_admin_permissions = true + + # Enable EKS AutoMode + cluster_compute_config = { + enabled = true + node_pools = [] + } + + access_entries = { + # One access entry with a policy associated + custom_nodeclass_access = { + principal_arn = aws_iam_role.custom_nodeclass_role.arn + type = "EC2" + + policy_associations = { + auto = { + policy_arn = "arn:aws:eks::aws:cluster-access-policy/AmazonEKSAutoNodePolicy" + access_scope = { + type = "cluster" + } + } + } + } + } + + tags = local.tags +} + +############################################################### +# Creating IAM Role for custom nodeclass nodes +############################################################### + +# Create nodeclass role and associate with IAM policies +resource "aws_iam_role" "custom_nodeclass_role" { + name = "${local.name}-AmazonEKSAutoNodeRole" + + assume_role_policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Action = "sts:AssumeRole" + Effect = "Allow" + Sid = "" + Principal = { + Service = "ec2.amazonaws.com" + } + }, + ] + }) + + tags = local.tags +} + +# Attach AmazonEKSWorkerNodeMinimalPolicy +resource "aws_iam_role_policy_attachment" "eks_worker_node_policy" { + policy_arn = "arn:aws:iam::aws:policy/AmazonEKSWorkerNodeMinimalPolicy" + role = aws_iam_role.custom_nodeclass_role.name +} + +# Attach AmazonEC2ContainerRegistryPullOnly +resource "aws_iam_role_policy_attachment" "ecr_pull_policy" { + policy_arn = "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryPullOnly" + role = aws_iam_role.custom_nodeclass_role.name +} + +############################################################### +# Supporting Resources +############################################################### + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.19" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { "kubernetes.io/role/elb" = 1 } + + private_subnet_tags = { "kubernetes.io/role/internal-elb" = 1 } + + tags = local.tags +} + + +############################################################### +# Outputs +############################################################### + +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/fixture.json new file mode 100644 index 0000000..26a2fc9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/fixture.json @@ -0,0 +1,36 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/fargate-serverless", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "1971ec96bf585573796d0d3fb5bb45674f232c716246f505df3ba5913da42316" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm", + "kubernetes" + ], + "features": [ + "data", + "for_expressions", + "functions", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/main.tf new file mode 100644 index 0000000..11575fe --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/main.tf @@ -0,0 +1,269 @@ +provider "aws" { + region = local.region +} + +provider "kubernetes" { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + app_name = "app-2048" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.11" + + cluster_name = local.name + cluster_version = "1.30" + cluster_endpoint_public_access = true + + # Give the Terraform identity admin access to the cluster + # which will allow resources to be deployed into the cluster + enable_cluster_creator_admin_permissions = true + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + # Fargate profiles use the cluster primary security group so these are not utilized + create_cluster_security_group = false + create_node_security_group = false + + fargate_profiles = { + app_wildcard = { + selectors = [ + { namespace = "app-*" } + ] + } + kube_system = { + name = "kube-system" + selectors = [ + { namespace = "kube-system" } + ] + } + } + + fargate_profile_defaults = { + iam_role_additional_policies = { + additional = module.eks_blueprints_addons.fargate_fluentbit.iam_policy[0].arn + } + } + + tags = local.tags +} + +################################################################################ +# EKS Blueprints Addons +################################################################################ + +module "eks_blueprints_addons" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.16" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + # We want to wait for the Fargate profiles to be deployed first + create_delay_dependencies = [for prof in module.eks.fargate_profiles : prof.fargate_profile_arn] + + # EKS Add-ons + eks_addons = { + coredns = { + configuration_values = jsonencode({ + computeType = "Fargate" + # Ensure that the we fully utilize the minimum amount of resources that are supplied by + # Fargate https://docs.aws.amazon.com/eks/latest/userguide/fargate-pod-configuration.html + # Fargate adds 256 MB to each pod's memory reservation for the required Kubernetes + # components (kubelet, kube-proxy, and containerd). Fargate rounds up to the following + # compute configuration that most closely matches the sum of vCPU and memory requests in + # order to ensure pods always have the resources that they need to run. + resources = { + limits = { + cpu = "0.25" + # We are targeting the smallest Task size of 512Mb, so we subtract 256Mb from the + # request/limit to ensure we can fit within that task + memory = "256M" + } + requests = { + cpu = "0.25" + # We are targeting the smallest Task size of 512Mb, so we subtract 256Mb from the + # request/limit to ensure we can fit within that task + memory = "256M" + } + } + }) + } + vpc-cni = {} + kube-proxy = {} + } + + # Enable Fargate logging this may generate a large ammount of logs, disable it if not explicitly required + enable_fargate_fluentbit = true + fargate_fluentbit = { + flb_log_cw = true + } + + enable_aws_load_balancer_controller = true + aws_load_balancer_controller = { + set = [ + { + name = "vpcId" + value = module.vpc.vpc_id + }, + { + name = "podDisruptionBudget.maxUnavailable" + value = 1 + }, + ] + } + + tags = local.tags +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} + +################################################################################ +# Sample App +################################################################################ + +resource "kubernetes_namespace_v1" "this" { + metadata { + name = local.app_name + } +} + +resource "kubernetes_deployment_v1" "this" { + metadata { + name = local.app_name + namespace = kubernetes_namespace_v1.this.metadata[0].name + } + + spec { + replicas = 3 + + selector { + match_labels = { + "app.kubernetes.io/name" = local.app_name + } + } + + template { + metadata { + labels = { + "app.kubernetes.io/name" = local.app_name + } + } + + spec { + container { + image = "public.ecr.aws/l6m2t8p7/docker-2048:latest" + # image_pull_policy = "Always" + name = local.app_name + + port { + container_port = 80 + } + } + toleration { + effect = "NoSchedule" + key = "eks.amazonaws.com/compute-type" + value = "fargate" + } + } + } + } +} + +resource "kubernetes_service_v1" "this" { + metadata { + name = local.app_name + namespace = kubernetes_namespace_v1.this.metadata[0].name + } + + spec { + selector = { + "app.kubernetes.io/name" = local.app_name + } + + port { + port = 80 + target_port = 80 + protocol = "TCP" + } + + type = "NodePort" + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/outputs.tf new file mode 100644 index 0000000..c624023 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/outputs.tf @@ -0,0 +1,4 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/variables.tf new file mode 100644 index 0000000..e69de29 diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/versions.tf new file mode 100644 index 0000000..1a94f55 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fargate-serverless/input/versions.tf @@ -0,0 +1,25 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + kubernetes = { + source = "hashicorp/kubernetes" + version = ">= 2.20" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/fargate-serverless/terraform.tfstate" + # } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/fixture.json new file mode 100644 index 0000000..f12e875 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/fixture.json @@ -0,0 +1,33 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/fully-private-cluster", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "4bdb67e2dd6a6065ecfbbecfa440cc2e08ab2dd5eced0076ed0be3ef11b85d62" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "data", + "for_expressions", + "functions", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/main.tf new file mode 100644 index 0000000..787cfdd --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/main.tf @@ -0,0 +1,123 @@ +provider "aws" { + region = local.region +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.11" + + cluster_name = local.name + cluster_version = "1.30" + + # EKS Addons + cluster_addons = { + coredns = {} + kube-proxy = {} + vpc-cni = {} + } + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_groups = { + initial = { + instance_types = ["m5.large"] + + min_size = 1 + max_size = 5 + desired_size = 3 + } + } + + tags = local.tags +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + manage_default_vpc = true + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + + enable_nat_gateway = false + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} + +module "vpc_endpoints" { + source = "terraform-aws-modules/vpc/aws//modules/vpc-endpoints" + version = "~> 5.1" + + vpc_id = module.vpc.vpc_id + + # Security group + create_security_group = true + security_group_name_prefix = "${local.name}-vpc-endpoints-" + security_group_description = "VPC endpoint security group" + security_group_rules = { + ingress_https = { + description = "HTTPS from VPC" + cidr_blocks = [module.vpc.vpc_cidr_block] + } + } + + endpoints = merge({ + s3 = { + service = "s3" + service_type = "Gateway" + route_table_ids = module.vpc.private_route_table_ids + tags = { + Name = "${local.name}-s3" + } + } + }, + { for service in toset(["autoscaling", "ecr.api", "ecr.dkr", "ec2", "ec2messages", "elasticloadbalancing", "sts", "kms", "logs", "ssm", "ssmmessages"]) : + replace(service, ".", "_") => + { + service = service + subnet_ids = module.vpc.private_subnets + private_dns_enabled = true + tags = { Name = "${local.name}-${service}" } + } + }) + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/outputs.tf new file mode 100644 index 0000000..c624023 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/outputs.tf @@ -0,0 +1,4 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/variables.tf new file mode 100644 index 0000000..e69de29 diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/versions.tf new file mode 100644 index 0000000..0be1556 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/fully-private-cluster/input/versions.tf @@ -0,0 +1,17 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/fully-private-cluster/terraform.tfstate" + # } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/fixture.json new file mode 100644 index 0000000..8e3866a --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/fixture.json @@ -0,0 +1,36 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/gitops/getting-started-argocd", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "d43b546a1e08d5eaf8ff64a29b8870dedb1f8af9ab32525aaad1d4e77b54d620" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm", + "kubernetes" + ], + "features": [ + "data", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/main.tf new file mode 100644 index 0000000..fe3ca9f --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/main.tf @@ -0,0 +1,258 @@ +provider "aws" { + region = local.region +} + +data "aws_caller_identity" "current" {} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", local.region] + } + } +} + +provider "kubernetes" { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", local.region] + } +} + +locals { + name = "getting-started-gitops" + region = var.region + + cluster_version = var.kubernetes_version + + vpc_cidr = var.vpc_cidr + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + gitops_addons_url = "${var.gitops_addons_org}/${var.gitops_addons_repo}" + gitops_addons_basepath = var.gitops_addons_basepath + gitops_addons_path = var.gitops_addons_path + gitops_addons_revision = var.gitops_addons_revision + + gitops_workload_url = "${var.gitops_workload_org}/${var.gitops_workload_repo}" + gitops_workload_basepath = var.gitops_workload_basepath + gitops_workload_path = var.gitops_workload_path + gitops_workload_revision = var.gitops_workload_revision + + aws_addons = { + enable_cert_manager = try(var.addons.enable_cert_manager, false) + enable_aws_efs_csi_driver = try(var.addons.enable_aws_efs_csi_driver, false) + enable_aws_fsx_csi_driver = try(var.addons.enable_aws_fsx_csi_driver, false) + enable_aws_cloudwatch_metrics = try(var.addons.enable_aws_cloudwatch_metrics, false) + enable_aws_privateca_issuer = try(var.addons.enable_aws_privateca_issuer, false) + enable_cluster_autoscaler = try(var.addons.enable_cluster_autoscaler, false) + enable_external_dns = try(var.addons.enable_external_dns, false) + enable_external_secrets = try(var.addons.enable_external_secrets, false) + enable_aws_load_balancer_controller = try(var.addons.enable_aws_load_balancer_controller, false) + enable_fargate_fluentbit = try(var.addons.enable_fargate_fluentbit, false) + enable_aws_for_fluentbit = try(var.addons.enable_aws_for_fluentbit, false) + enable_aws_node_termination_handler = try(var.addons.enable_aws_node_termination_handler, false) + enable_karpenter = try(var.addons.enable_karpenter, false) + enable_velero = try(var.addons.enable_velero, false) + enable_aws_gateway_api_controller = try(var.addons.enable_aws_gateway_api_controller, false) + enable_aws_ebs_csi_resources = try(var.addons.enable_aws_ebs_csi_resources, false) + enable_aws_secrets_store_csi_driver_provider = try(var.addons.enable_aws_secrets_store_csi_driver_provider, false) + enable_ack_apigatewayv2 = try(var.addons.enable_ack_apigatewayv2, false) + enable_ack_dynamodb = try(var.addons.enable_ack_dynamodb, false) + enable_ack_s3 = try(var.addons.enable_ack_s3, false) + enable_ack_rds = try(var.addons.enable_ack_rds, false) + enable_ack_prometheusservice = try(var.addons.enable_ack_prometheusservice, false) + enable_ack_emrcontainers = try(var.addons.enable_ack_emrcontainers, false) + enable_ack_sfn = try(var.addons.enable_ack_sfn, false) + enable_ack_eventbridge = try(var.addons.enable_ack_eventbridge, false) + } + oss_addons = { + enable_argocd = try(var.addons.enable_argocd, true) + enable_argo_rollouts = try(var.addons.enable_argo_rollouts, false) + enable_argo_events = try(var.addons.enable_argo_events, false) + enable_argo_workflows = try(var.addons.enable_argo_workflows, false) + enable_cluster_proportional_autoscaler = try(var.addons.enable_cluster_proportional_autoscaler, false) + enable_gatekeeper = try(var.addons.enable_gatekeeper, false) + enable_gpu_operator = try(var.addons.enable_gpu_operator, false) + enable_ingress_nginx = try(var.addons.enable_ingress_nginx, false) + enable_kyverno = try(var.addons.enable_kyverno, false) + enable_kube_prometheus_stack = try(var.addons.enable_kube_prometheus_stack, false) + enable_metrics_server = try(var.addons.enable_metrics_server, false) + enable_prometheus_adapter = try(var.addons.enable_prometheus_adapter, false) + enable_secrets_store_csi_driver = try(var.addons.enable_secrets_store_csi_driver, false) + enable_vpa = try(var.addons.enable_vpa, false) + } + addons = merge( + local.aws_addons, + local.oss_addons, + { kubernetes_version = local.cluster_version }, + { aws_cluster_name = module.eks.cluster_name } + ) + + addons_metadata = merge( + module.eks_blueprints_addons.gitops_metadata, + { + aws_cluster_name = module.eks.cluster_name + aws_region = local.region + aws_account_id = data.aws_caller_identity.current.account_id + aws_vpc_id = module.vpc.vpc_id + }, + { + addons_repo_url = local.gitops_addons_url + addons_repo_basepath = local.gitops_addons_basepath + addons_repo_path = local.gitops_addons_path + addons_repo_revision = local.gitops_addons_revision + }, + { + workload_repo_url = local.gitops_workload_url + workload_repo_basepath = local.gitops_workload_basepath + workload_repo_path = local.gitops_workload_path + workload_repo_revision = local.gitops_workload_revision + } + ) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# GitOps Bridge: Bootstrap +################################################################################ +module "gitops_bridge_bootstrap" { + source = "github.com/gitops-bridge-dev/gitops-bridge-argocd-bootstrap-terraform?ref=v2.0.0" + + cluster = { + metadata = local.addons_metadata + addons = local.addons + } +} + +################################################################################ +# EKS Blueprints Addons +################################################################################ +module "eks_blueprints_addons" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.0" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + # Using GitOps Bridge + create_kubernetes_resources = false + + # EKS Blueprints Addons + enable_cert_manager = local.aws_addons.enable_cert_manager + enable_aws_efs_csi_driver = local.aws_addons.enable_aws_efs_csi_driver + enable_aws_fsx_csi_driver = local.aws_addons.enable_aws_fsx_csi_driver + enable_aws_cloudwatch_metrics = local.aws_addons.enable_aws_cloudwatch_metrics + enable_aws_privateca_issuer = local.aws_addons.enable_aws_privateca_issuer + enable_cluster_autoscaler = local.aws_addons.enable_cluster_autoscaler + enable_external_dns = local.aws_addons.enable_external_dns + enable_external_secrets = local.aws_addons.enable_external_secrets + enable_aws_load_balancer_controller = local.aws_addons.enable_aws_load_balancer_controller + enable_fargate_fluentbit = local.aws_addons.enable_fargate_fluentbit + enable_aws_for_fluentbit = local.aws_addons.enable_aws_for_fluentbit + enable_aws_node_termination_handler = local.aws_addons.enable_aws_node_termination_handler + enable_karpenter = local.aws_addons.enable_karpenter + enable_velero = local.aws_addons.enable_velero + enable_aws_gateway_api_controller = local.aws_addons.enable_aws_gateway_api_controller + + tags = local.tags +} + +################################################################################ +# EKS Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 19.13" + + cluster_name = local.name + cluster_version = local.cluster_version + cluster_endpoint_public_access = true + + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_groups = { + initial = { + instance_types = ["m5.large"] + + min_size = 1 + max_size = 3 + desired_size = 2 + } + } + # EKS Addons + cluster_addons = { + coredns = {} + kube-proxy = {} + vpc-cni = { + # Specify the VPC CNI addon should be deployed before compute to ensure + # the addon is configured before data plane compute resources are created + # See README for further details + before_compute = true + most_recent = true # To ensure access to the latest settings provided + configuration_values = jsonencode({ + env = { + # Reference docs https://docs.aws.amazon.com/eks/latest/userguide/cni-increase-ip-addresses.html + ENABLE_PREFIX_DELEGATION = "true" + WARM_PREFIX_TARGET = "1" + } + }) + } + } + tags = local.tags +} + +################################################################################ +# Supporting Resources +################################################################################ +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/outputs.tf new file mode 100644 index 0000000..d4ecfbf --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/outputs.tf @@ -0,0 +1,33 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = <<-EOT + export KUBECONFIG="/tmp/${module.eks.cluster_name}" + aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name} + EOT +} + +output "configure_argocd" { + description = "Terminal Setup" + value = <<-EOT + export KUBECONFIG="/tmp/${module.eks.cluster_name}" + aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name} + export ARGOCD_OPTS="--port-forward --port-forward-namespace argocd --grpc-web" + kubectl config set-context --current --namespace argocd + argocd login --port-forward --username admin --password $(argocd admin initial-password | head -1) + echo "ArgoCD Username: admin" + echo "ArgoCD Password: $(kubectl get secrets argocd-initial-admin-secret -n argocd --template="{{index .data.password | base64decode}}")" + echo Port Forward: http://localhost:8080 + kubectl port-forward -n argocd svc/argo-cd-argocd-server 8080:80 + EOT +} + +output "access_argocd" { + description = "ArgoCD Access" + value = <<-EOT + export KUBECONFIG="/tmp/${module.eks.cluster_name}" + aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name} + echo "ArgoCD Username: admin" + echo "ArgoCD Password: $(kubectl get secrets argocd-initial-admin-secret -n argocd --template="{{index .data.password | base64decode}}")" + echo "ArgoCD URL: https://$(kubectl get svc -n argocd argo-cd-argocd-server -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')" + EOT +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/variables.tf new file mode 100644 index 0000000..d0ef0fe --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/variables.tf @@ -0,0 +1,76 @@ +variable "vpc_cidr" { + description = "VPC CIDR" + type = string + default = "10.0.0.0/16" +} +variable "region" { + description = "AWS region" + type = string + default = "us-west-2" +} +variable "kubernetes_version" { + description = "Kubernetes version" + type = string + default = "1.28" +} +variable "addons" { + description = "Kubernetes addons" + type = any + default = { + enable_aws_load_balancer_controller = true + enable_metrics_server = true + } +} +# Addons Git +variable "gitops_addons_org" { + description = "Git repository org/user contains for addons" + type = string + default = "https://github.com/aws-samples" +} +variable "gitops_addons_repo" { + description = "Git repository contains for addons" + type = string + default = "eks-blueprints-add-ons" +} +variable "gitops_addons_revision" { + description = "Git repository revision/branch/ref for addons" + type = string + default = "main" +} +variable "gitops_addons_basepath" { + description = "Git repository base path for addons" + type = string + default = "argocd/" +} +variable "gitops_addons_path" { + description = "Git repository path for addons" + type = string + default = "bootstrap/control-plane/addons" +} + +# Workloads Git +variable "gitops_workload_org" { + description = "Git repository org/user contains for workload" + type = string + default = "https://github.com/aws-ia" +} +variable "gitops_workload_repo" { + description = "Git repository contains for workload" + type = string + default = "terraform-aws-eks-blueprints" +} +variable "gitops_workload_revision" { + description = "Git repository revision/branch/ref for workload" + type = string + default = "main" +} +variable "gitops_workload_basepath" { + description = "Git repository base path for workload" + type = string + default = "patterns/gitops/" +} +variable "gitops_workload_path" { + description = "Git repository path for workload" + type = string + default = "getting-started-argocd/k8s" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/versions.tf new file mode 100644 index 0000000..fb54e0b --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/getting-started-argocd/input/versions.tf @@ -0,0 +1,25 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + kubernetes = { + source = "hashicorp/kubernetes" + version = ">= 2.22" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/getting-started-argocd/terraform.tfstate" + # } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/fixture.json new file mode 100644 index 0000000..5fece2c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/gitops/multi-cluster-hub-spoke-argocd/hub", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "f3cdb32da5d24910fa4e09cc490c4ecf3fa5ef1bd9da8d70f8821659dbb85dc1" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm", + "kubernetes" + ], + "features": [ + "data", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/main.tf new file mode 100644 index 0000000..2d5bc26 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/main.tf @@ -0,0 +1,316 @@ +provider "aws" { + region = local.region +} + +data "aws_caller_identity" "current" {} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", local.region] + } + } +} + +provider "kubernetes" { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", local.region] + } +} + +locals { + name = "hub-${local.environment}" + environment = "control-plane" + region = var.region + + cluster_version = var.kubernetes_version + + vpc_cidr = var.vpc_cidr + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + gitops_addons_url = "${var.gitops_addons_org}/${var.gitops_addons_repo}" + gitops_addons_basepath = var.gitops_addons_basepath + gitops_addons_path = var.gitops_addons_path + gitops_addons_revision = var.gitops_addons_revision + + authentication_mode = var.authentication_mode + + argocd_namespace = "argocd" + + aws_addons = { + enable_cert_manager = try(var.addons.enable_cert_manager, false) + enable_aws_efs_csi_driver = try(var.addons.enable_aws_efs_csi_driver, false) + enable_aws_fsx_csi_driver = try(var.addons.enable_aws_fsx_csi_driver, false) + enable_aws_cloudwatch_metrics = try(var.addons.enable_aws_cloudwatch_metrics, false) + enable_aws_privateca_issuer = try(var.addons.enable_aws_privateca_issuer, false) + enable_cluster_autoscaler = try(var.addons.enable_cluster_autoscaler, false) + enable_external_dns = try(var.addons.enable_external_dns, false) + enable_external_secrets = try(var.addons.enable_external_secrets, false) + enable_aws_load_balancer_controller = try(var.addons.enable_aws_load_balancer_controller, false) + enable_fargate_fluentbit = try(var.addons.enable_fargate_fluentbit, false) + enable_aws_for_fluentbit = try(var.addons.enable_aws_for_fluentbit, false) + enable_aws_node_termination_handler = try(var.addons.enable_aws_node_termination_handler, false) + enable_karpenter = try(var.addons.enable_karpenter, false) + enable_velero = try(var.addons.enable_velero, false) + enable_aws_gateway_api_controller = try(var.addons.enable_aws_gateway_api_controller, false) + enable_aws_ebs_csi_resources = try(var.addons.enable_aws_ebs_csi_resources, false) + enable_aws_secrets_store_csi_driver_provider = try(var.addons.enable_aws_secrets_store_csi_driver_provider, false) + enable_ack_apigatewayv2 = try(var.addons.enable_ack_apigatewayv2, false) + enable_ack_dynamodb = try(var.addons.enable_ack_dynamodb, false) + enable_ack_s3 = try(var.addons.enable_ack_s3, false) + enable_ack_rds = try(var.addons.enable_ack_rds, false) + enable_ack_prometheusservice = try(var.addons.enable_ack_prometheusservice, false) + enable_ack_emrcontainers = try(var.addons.enable_ack_emrcontainers, false) + enable_ack_sfn = try(var.addons.enable_ack_sfn, false) + enable_ack_eventbridge = try(var.addons.enable_ack_eventbridge, false) + enable_aws_argocd = try(var.addons.enable_aws_argocd, false) + } + oss_addons = { + enable_argocd = try(var.addons.enable_argocd, false) + enable_argo_rollouts = try(var.addons.enable_argo_rollouts, false) + enable_argo_events = try(var.addons.enable_argo_events, false) + enable_argo_workflows = try(var.addons.enable_argo_workflows, false) + enable_cluster_proportional_autoscaler = try(var.addons.enable_cluster_proportional_autoscaler, false) + enable_gatekeeper = try(var.addons.enable_gatekeeper, false) + enable_gpu_operator = try(var.addons.enable_gpu_operator, false) + enable_ingress_nginx = try(var.addons.enable_ingress_nginx, false) + enable_kyverno = try(var.addons.enable_kyverno, false) + enable_kube_prometheus_stack = try(var.addons.enable_kube_prometheus_stack, false) + enable_metrics_server = try(var.addons.enable_metrics_server, false) + enable_prometheus_adapter = try(var.addons.enable_prometheus_adapter, false) + enable_secrets_store_csi_driver = try(var.addons.enable_secrets_store_csi_driver, false) + enable_vpa = try(var.addons.enable_vpa, false) + } + addons = merge( + local.aws_addons, + local.oss_addons, + { kubernetes_version = local.cluster_version }, + { aws_cluster_name = module.eks.cluster_name } + ) + + addons_metadata = merge( + module.eks_blueprints_addons.gitops_metadata, + { + aws_cluster_name = module.eks.cluster_name + aws_region = local.region + aws_account_id = data.aws_caller_identity.current.account_id + aws_vpc_id = module.vpc.vpc_id + }, + { + argocd_namespace = local.argocd_namespace + }, + { + addons_repo_url = local.gitops_addons_url + addons_repo_basepath = local.gitops_addons_basepath + addons_repo_path = local.gitops_addons_path + addons_repo_revision = local.gitops_addons_revision + } + ) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/gitops-bridge-dev/gitops-bridge" + } +} + +################################################################################ +# GitOps Bridge: Bootstrap +################################################################################ +module "gitops_bridge_bootstrap" { + source = "github.com/gitops-bridge-dev/gitops-bridge-argocd-bootstrap-terraform?ref=v2.0.0" + + cluster = { + cluster_name = module.eks.cluster_name + environment = local.environment + metadata = local.addons_metadata + addons = local.addons + } + + argocd = { + namespace = local.argocd_namespace + } +} + +################################################################################ +# ArgoCD EKS Access +################################################################################ +data "aws_iam_policy_document" "eks_assume" { + statement { + effect = "Allow" + principals { + type = "Service" + identifiers = ["pods.eks.amazonaws.com"] + } + actions = ["sts:AssumeRole", "sts:TagSession"] + } +} +resource "aws_iam_role" "argocd_hub" { + name = "${module.eks.cluster_name}-argocd-hub" + assume_role_policy = data.aws_iam_policy_document.eks_assume.json +} +data "aws_iam_policy_document" "aws_assume_policy" { + statement { + effect = "Allow" + resources = ["*"] + actions = ["sts:AssumeRole", "sts:TagSession"] + } +} +resource "aws_iam_policy" "aws_assume_policy" { + name = "${module.eks.cluster_name}-argocd-aws-assume" + description = "IAM Policy for ArgoCD Hub" + policy = data.aws_iam_policy_document.aws_assume_policy.json + tags = local.tags +} +resource "aws_iam_role_policy_attachment" "aws_assume_policy" { + role = aws_iam_role.argocd_hub.name + policy_arn = aws_iam_policy.aws_assume_policy.arn +} +resource "aws_eks_pod_identity_association" "argocd_app_controller" { + cluster_name = module.eks.cluster_name + namespace = "argocd" + service_account = "argocd-application-controller" + role_arn = aws_iam_role.argocd_hub.arn +} +resource "aws_eks_pod_identity_association" "argocd_api_server" { + cluster_name = module.eks.cluster_name + namespace = "argocd" + service_account = "argocd-server" + role_arn = aws_iam_role.argocd_hub.arn +} + + + +################################################################################ +# EKS Blueprints Addons +################################################################################ +module "eks_blueprints_addons" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.0" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + # Using GitOps Bridge + create_kubernetes_resources = false + + # EKS Blueprints Addons + enable_cert_manager = local.aws_addons.enable_cert_manager + enable_aws_efs_csi_driver = local.aws_addons.enable_aws_efs_csi_driver + enable_aws_fsx_csi_driver = local.aws_addons.enable_aws_fsx_csi_driver + enable_aws_cloudwatch_metrics = local.aws_addons.enable_aws_cloudwatch_metrics + enable_aws_privateca_issuer = local.aws_addons.enable_aws_privateca_issuer + enable_cluster_autoscaler = local.aws_addons.enable_cluster_autoscaler + enable_external_dns = local.aws_addons.enable_external_dns + enable_external_secrets = local.aws_addons.enable_external_secrets + enable_aws_load_balancer_controller = local.aws_addons.enable_aws_load_balancer_controller + enable_fargate_fluentbit = local.aws_addons.enable_fargate_fluentbit + enable_aws_for_fluentbit = local.aws_addons.enable_aws_for_fluentbit + enable_aws_node_termination_handler = local.aws_addons.enable_aws_node_termination_handler + enable_karpenter = local.aws_addons.enable_karpenter + enable_velero = local.aws_addons.enable_velero + enable_aws_gateway_api_controller = local.aws_addons.enable_aws_gateway_api_controller + + tags = local.tags +} + +################################################################################ +# EKS Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.8" + + cluster_name = local.name + cluster_version = local.cluster_version + cluster_endpoint_public_access = true + + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + authentication_mode = local.authentication_mode + + enable_cluster_creator_admin_permissions = true + + eks_managed_node_groups = { + initial = { + instance_types = ["t3.medium"] + + min_size = 3 + max_size = 10 + desired_size = 3 + } + } + # EKS Addons + cluster_addons = { + eks-pod-identity-agent = { + most_recent = true + } + vpc-cni = { + # Specify the VPC CNI addon should be deployed before compute to ensure + # the addon is configured before data plane compute resources are created + # See README for further details + before_compute = true + most_recent = true # To ensure access to the latest settings provided + configuration_values = jsonencode({ + env = { + # Reference docs https://docs.aws.amazon.com/eks/latest/userguide/cni-increase-ip-addresses.html + ENABLE_PREFIX_DELEGATION = "true" + WARM_PREFIX_TARGET = "1" + } + }) + } + } + tags = local.tags +} + +################################################################################ +# Supporting Resources +################################################################################ +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/outputs.tf new file mode 100644 index 0000000..2acf846 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/outputs.tf @@ -0,0 +1,52 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = <<-EOT + export KUBECONFIG="/tmp/hub-spoke" + aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name} --alias hub + EOT +} + + +output "configure_argocd" { + description = "Terminal Setup" + value = <<-EOT + export KUBECONFIG="/tmp/hub-spoke" + aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name} --alias hub + export ARGOCD_OPTS="--port-forward --port-forward-namespace argocd --grpc-web" + kubectl --context hub config set-context --current --namespace argocd + argocd login --port-forward --username admin --password $(argocd admin initial-password | head -1) + echo "ArgoCD Username: admin" + echo "ArgoCD Password: $(kubectl get secrets argocd-initial-admin-secret -n argocd --template="{{index .data.password | base64decode}}")" + echo Port Forward: http://localhost:8080 + kubectl port-forward -n argocd svc/argo-cd-argocd-server 8080:80 + EOT +} + +output "access_argocd" { + description = "ArgoCD Access" + value = <<-EOT + export KUBECONFIG="/tmp/hub-spoke" + aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name} --alias hub + echo "ArgoCD Username: admin" + echo "ArgoCD Password: $(kubectl --context hub get secrets argocd-initial-admin-secret -n argocd --template="{{index .data.password | base64decode}}")" + echo "ArgoCD URL: https://$(kubectl --context hub get svc -n argocd argo-cd-argocd-server -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')" + EOT +} + + +output "cluster_name" { + description = "Cluster Hub name" + value = module.eks.cluster_name +} +output "cluster_endpoint" { + description = "Cluster Hub endpoint" + value = module.eks.cluster_endpoint +} +output "cluster_certificate_authority_data" { + description = "Cluster Hub certificate_authority_data" + value = module.eks.cluster_certificate_authority_data +} +output "cluster_region" { + description = "Cluster Hub region" + value = local.region +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/variables.tf new file mode 100644 index 0000000..68c1ad8 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/variables.tf @@ -0,0 +1,62 @@ +variable "vpc_cidr" { + description = "VPC CIDR" + type = string + default = "10.0.0.0/16" +} +variable "region" { + description = "AWS region" + type = string + default = "us-west-2" +} +variable "kubernetes_version" { + description = "Kubernetes version" + type = string + default = "1.29" +} +variable "addons" { + description = "Kubernetes addons" + type = any + default = { + enable_aws_load_balancer_controller = true + enable_metrics_server = true + enable_argocd = true + } +} + +output "argocd_iam_role_arn" { + description = "IAM Role for ArgoCD Cluster Hub, use to connect to spoke clusters" + value = aws_iam_role.argocd_hub.arn +} + +# Addons Git +variable "gitops_addons_org" { + description = "Git repository org/user contains for addons" + type = string + default = "https://github.com/gitops-bridge-dev" +} +variable "gitops_addons_repo" { + description = "Git repository contains for addons" + type = string + default = "gitops-bridge-argocd-control-plane-template" +} +variable "gitops_addons_revision" { + description = "Git repository revision/branch/ref for addons" + type = string + default = "main" +} +variable "gitops_addons_basepath" { + description = "Git repository base path for addons" + type = string + default = "" +} +variable "gitops_addons_path" { + description = "Git repository path for addons" + type = string + default = "bootstrap/control-plane/addons" +} + +variable "authentication_mode" { + description = "The authentication mode for the cluster. Valid values are CONFIG_MAP, API or API_AND_CONFIG_MAP" + type = string + default = "API" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/versions.tf new file mode 100644 index 0000000..cd0ad84 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/hub/input/versions.tf @@ -0,0 +1,25 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + kubernetes = { + source = "hashicorp/kubernetes" + version = ">= 2.22" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/ipv4-prefix-delegation/terraform.tfstate" + # } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/fixture.json new file mode 100644 index 0000000..cd57c24 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/gitops/multi-cluster-hub-spoke-argocd/spokes", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "5d90e6143433fbe664fc726a1f69ac9853ca7a6aa33a4be663453e254b2c3b10" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "kubernetes", + "terraform" + ], + "features": [ + "data", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/main.tf new file mode 100644 index 0000000..283c84a --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/main.tf @@ -0,0 +1,345 @@ +provider "aws" { + region = local.region +} + +data "aws_caller_identity" "current" {} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +data "terraform_remote_state" "cluster_hub" { + backend = "local" + + config = { + path = "${path.module}/../hub/terraform.tfstate" + } +} + +################################################################################ +# Kubernetes Access for Hub Cluster +################################################################################ + +provider "kubernetes" { + host = data.terraform_remote_state.cluster_hub.outputs.cluster_endpoint + cluster_ca_certificate = base64decode(data.terraform_remote_state.cluster_hub.outputs.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", data.terraform_remote_state.cluster_hub.outputs.cluster_name, "--region", data.terraform_remote_state.cluster_hub.outputs.cluster_region] + } + alias = "hub" +} + +################################################################################ +# Kubernetes Access for Spoke Cluster +################################################################################ + +provider "kubernetes" { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", local.region] + } +} + + + +locals { + name = "spoke-${terraform.workspace}" + environment = terraform.workspace + region = var.region + + cluster_version = var.kubernetes_version + + vpc_cidr = var.vpc_cidr + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + gitops_addons_url = "${var.gitops_addons_org}/${var.gitops_addons_repo}" + gitops_addons_basepath = var.gitops_addons_basepath + gitops_addons_path = var.gitops_addons_path + gitops_addons_revision = var.gitops_addons_revision + + gitops_workload_org = var.gitops_workload_org + gitops_workload_repo = var.gitops_workload_repo + gitops_workload_basepath = var.gitops_workload_basepath + gitops_workload_path = var.gitops_workload_path + gitops_workload_revision = var.gitops_workload_revision + gitops_workload_url = "${local.gitops_workload_org}/${local.gitops_workload_repo}" + + authentication_mode = var.authentication_mode + + aws_addons = { + enable_cert_manager = try(var.addons.enable_cert_manager, false) + enable_aws_efs_csi_driver = try(var.addons.enable_aws_efs_csi_driver, false) + enable_aws_fsx_csi_driver = try(var.addons.enable_aws_fsx_csi_driver, false) + enable_aws_cloudwatch_metrics = try(var.addons.enable_aws_cloudwatch_metrics, false) + enable_aws_privateca_issuer = try(var.addons.enable_aws_privateca_issuer, false) + enable_cluster_autoscaler = try(var.addons.enable_cluster_autoscaler, false) + enable_external_dns = try(var.addons.enable_external_dns, false) + enable_external_secrets = try(var.addons.enable_external_secrets, false) + enable_aws_load_balancer_controller = try(var.addons.enable_aws_load_balancer_controller, false) + enable_fargate_fluentbit = try(var.addons.enable_fargate_fluentbit, false) + enable_aws_for_fluentbit = try(var.addons.enable_aws_for_fluentbit, false) + enable_aws_node_termination_handler = try(var.addons.enable_aws_node_termination_handler, false) + enable_karpenter = try(var.addons.enable_karpenter, false) + enable_velero = try(var.addons.enable_velero, false) + enable_aws_gateway_api_controller = try(var.addons.enable_aws_gateway_api_controller, false) + enable_aws_ebs_csi_resources = try(var.addons.enable_aws_ebs_csi_resources, false) + enable_aws_secrets_store_csi_driver_provider = try(var.addons.enable_aws_secrets_store_csi_driver_provider, false) + enable_ack_apigatewayv2 = try(var.addons.enable_ack_apigatewayv2, false) + enable_ack_dynamodb = try(var.addons.enable_ack_dynamodb, false) + enable_ack_s3 = try(var.addons.enable_ack_s3, false) + enable_ack_rds = try(var.addons.enable_ack_rds, false) + enable_ack_prometheusservice = try(var.addons.enable_ack_prometheusservice, false) + enable_ack_emrcontainers = try(var.addons.enable_ack_emrcontainers, false) + enable_ack_sfn = try(var.addons.enable_ack_sfn, false) + enable_ack_eventbridge = try(var.addons.enable_ack_eventbridge, false) + enable_aws_argocd = try(var.addons.enable_aws_argocd, false) + } + oss_addons = { + enable_argocd = try(var.addons.enable_argocd, false) + enable_argo_rollouts = try(var.addons.enable_argo_rollouts, false) + enable_argo_events = try(var.addons.enable_argo_events, false) + enable_argo_workflows = try(var.addons.enable_argo_workflows, false) + enable_cluster_proportional_autoscaler = try(var.addons.enable_cluster_proportional_autoscaler, false) + enable_gatekeeper = try(var.addons.enable_gatekeeper, false) + enable_gpu_operator = try(var.addons.enable_gpu_operator, false) + enable_ingress_nginx = try(var.addons.enable_ingress_nginx, false) + enable_kyverno = try(var.addons.enable_kyverno, false) + enable_kube_prometheus_stack = try(var.addons.enable_kube_prometheus_stack, false) + enable_metrics_server = try(var.addons.enable_metrics_server, false) + enable_prometheus_adapter = try(var.addons.enable_prometheus_adapter, false) + enable_secrets_store_csi_driver = try(var.addons.enable_secrets_store_csi_driver, false) + enable_vpa = try(var.addons.enable_vpa, false) + } + addons = merge( + local.aws_addons, + local.oss_addons, + { kubernetes_version = local.cluster_version }, + { aws_cluster_name = module.eks.cluster_name } + ) + + addons_metadata = merge( + module.eks_blueprints_addons.gitops_metadata, + { + aws_cluster_name = module.eks.cluster_name + aws_region = local.region + aws_account_id = data.aws_caller_identity.current.account_id + aws_vpc_id = module.vpc.vpc_id + }, + { + addons_repo_url = local.gitops_addons_url + addons_repo_basepath = local.gitops_addons_basepath + addons_repo_path = local.gitops_addons_path + addons_repo_revision = local.gitops_addons_revision + }, + { + workload_repo_url = local.gitops_workload_url + workload_repo_basepath = local.gitops_workload_basepath + workload_repo_path = local.gitops_workload_path + workload_repo_revision = local.gitops_workload_revision + } + ) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/gitops-bridge-dev/gitops-bridge" + } +} + +################################################################################ +# GitOps Bridge: Bootstrap for Hub Cluster +################################################################################ +module "gitops_bridge_bootstrap_hub" { + source = "github.com/gitops-bridge-dev/gitops-bridge-argocd-bootstrap-terraform?ref=v2.0.0" + + # The ArgoCD remote cluster secret is deploy on hub cluster not on spoke clusters + providers = { + kubernetes = kubernetes.hub + } + + install = false # We are not installing argocd via helm on hub cluster + cluster = { + cluster_name = module.eks.cluster_name + environment = local.environment + metadata = local.addons_metadata + addons = local.addons + server = module.eks.cluster_endpoint + config = <<-EOT + { + "tlsClientConfig": { + "insecure": false, + "caData" : "${module.eks.cluster_certificate_authority_data}" + }, + "awsAuthConfig" : { + "clusterName": "${module.eks.cluster_name}", + "roleARN": "${aws_iam_role.spoke.arn}" + } + } + EOT + } +} + +################################################################################ +# ArgoCD EKS Access +################################################################################ +resource "aws_iam_role" "spoke" { + name = "${local.name}-argocd-spoke" + assume_role_policy = data.aws_iam_policy_document.assume_role_policy.json +} + +data "aws_iam_policy_document" "assume_role_policy" { + statement { + actions = ["sts:AssumeRole", "sts:TagSession"] + principals { + type = "AWS" + identifiers = [data.terraform_remote_state.cluster_hub.outputs.argocd_iam_role_arn] + } + } +} + + + +################################################################################ +# EKS Blueprints Addons +################################################################################ +module "eks_blueprints_addons" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.0" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + # Using GitOps Bridge + create_kubernetes_resources = false + + # EKS Blueprints Addons + enable_cert_manager = local.aws_addons.enable_cert_manager + enable_aws_efs_csi_driver = local.aws_addons.enable_aws_efs_csi_driver + enable_aws_fsx_csi_driver = local.aws_addons.enable_aws_fsx_csi_driver + enable_aws_cloudwatch_metrics = local.aws_addons.enable_aws_cloudwatch_metrics + enable_aws_privateca_issuer = local.aws_addons.enable_aws_privateca_issuer + enable_cluster_autoscaler = local.aws_addons.enable_cluster_autoscaler + enable_external_dns = local.aws_addons.enable_external_dns + enable_external_secrets = local.aws_addons.enable_external_secrets + enable_aws_load_balancer_controller = local.aws_addons.enable_aws_load_balancer_controller + enable_fargate_fluentbit = local.aws_addons.enable_fargate_fluentbit + enable_aws_for_fluentbit = local.aws_addons.enable_aws_for_fluentbit + enable_aws_node_termination_handler = local.aws_addons.enable_aws_node_termination_handler + enable_karpenter = local.aws_addons.enable_karpenter + enable_velero = local.aws_addons.enable_velero + enable_aws_gateway_api_controller = local.aws_addons.enable_aws_gateway_api_controller + + tags = local.tags +} + +################################################################################ +# EKS Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.8.4" + + cluster_name = local.name + cluster_version = local.cluster_version + cluster_endpoint_public_access = true + + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + authentication_mode = local.authentication_mode + + # Cluster access entry + # To add the current caller identity as an administrator + enable_cluster_creator_admin_permissions = true + + access_entries = { + # One access entry with a policy associated + example = { + principal_arn = aws_iam_role.spoke.arn + + policy_associations = { + argocd = { + policy_arn = "arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy" + access_scope = { + type = "cluster" + } + } + } + } + } + + eks_managed_node_groups = { + initial = { + instance_types = ["t3.medium"] + + min_size = 3 + max_size = 10 + desired_size = 3 + } + } + # EKS Addons + cluster_addons = { + eks-pod-identity-agent = { + most_recent = true + } + vpc-cni = { + # Specify the VPC CNI addon should be deployed before compute to ensure + # the addon is configured before data plane compute resources are created + # See README for further details + before_compute = true + most_recent = true # To ensure access to the latest settings provided + configuration_values = jsonencode({ + env = { + # Reference docs https://docs.aws.amazon.com/eks/latest/userguide/cni-increase-ip-addresses.html + ENABLE_PREFIX_DELEGATION = "true" + WARM_PREFIX_TARGET = "1" + } + }) + } + } + tags = local.tags +} + +################################################################################ +# Supporting Resources +################################################################################ +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/outputs.tf new file mode 100644 index 0000000..eb23c2d --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/outputs.tf @@ -0,0 +1,7 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = <<-EOT + export KUBECONFIG="/tmp/hub-spoke" + aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name} --alias ${local.environment} + EOT +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/variables.tf new file mode 100644 index 0000000..2793c33 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/variables.tf @@ -0,0 +1,75 @@ +variable "region" { + description = "AWS region" + type = string +} +variable "vpc_cidr" { + description = "VPC CIDR" + type = string +} +variable "kubernetes_version" { + description = "EKS version" + type = string +} +variable "addons" { + description = "Kubernetes addons" + type = any +} +# Addons Git +variable "gitops_addons_org" { + description = "Git repository org/user contains for addons" + type = string + default = "https://github.com/gitops-bridge-dev" +} +variable "gitops_addons_repo" { + description = "Git repository contains for addons" + type = string + default = "gitops-bridge-argocd-control-plane-template" +} +variable "gitops_addons_revision" { + description = "Git repository revision/branch/ref for addons" + type = string + default = "main" +} +variable "gitops_addons_basepath" { + description = "Git repository base path for addons" + type = string + default = "" +} +variable "gitops_addons_path" { + description = "Git repository path for addons" + type = string + default = "bootstrap/control-plane/addons" +} + +# Workloads Git +variable "gitops_workload_org" { + description = "Git repository org/user contains for workload" + type = string + default = "https://github.com/argoproj" +} +variable "gitops_workload_repo" { + description = "Git repository contains for workload" + type = string + default = "argocd-example-apps" +} +variable "gitops_workload_revision" { + description = "Git repository revision/branch/ref for workload" + type = string + default = "master" +} +variable "gitops_workload_basepath" { + description = "Git repository base path for workload" + type = string + default = "" +} +variable "gitops_workload_path" { + description = "Git repository path for workload" + type = string + default = "helm-guestbook" +} + +variable "authentication_mode" { + description = "The authentication mode for the cluster. Valid values are CONFIG_MAP, API or API_AND_CONFIG_MAP" + type = string + default = "API" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/versions.tf new file mode 100644 index 0000000..7aad4fe --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/gitops/multi-cluster-hub-spoke-argocd/spokes/input/versions.tf @@ -0,0 +1,21 @@ +terraform { + required_version = ">= 1.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + kubernetes = { + source = "hashicorp/kubernetes" + version = "2.22.0" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/ipv4-prefix-delegation/terraform.tfstate" + # } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/fixture.json new file mode 100644 index 0000000..4896277 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/fixture.json @@ -0,0 +1,32 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/ipv6-eks-cluster", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "66c11fca8c68486dbedfdba1afff3a27742e6f525d166bb73618c8f2ff3989f2" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "data", + "functions", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/main.tf new file mode 100644 index 0000000..941bcaf --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/main.tf @@ -0,0 +1,101 @@ +provider "aws" { + region = local.region +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 21.0.7" + + name = local.name + kubernetes_version = "1.33" + endpoint_public_access = true + + # IPV6 + ip_family = "ipv6" + create_cni_ipv6_iam_policy = true + + addons = { + coredns = {} + kube-proxy = {} + vpc-cni = { + before_compute = true + } + } + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_groups = { + initial = { + instance_types = ["m5.large"] + + min_size = 1 + max_size = 3 + desired_size = 2 + } + } + + tags = local.tags +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 6.0.1" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + enable_ipv6 = true + create_egress_only_igw = true + + public_subnet_ipv6_prefixes = [0, 1, 2] + public_subnet_assign_ipv6_address_on_creation = true + private_subnet_ipv6_prefixes = [3, 4, 5] + private_subnet_assign_ipv6_address_on_creation = true + private_subnet_enable_dns64 = false + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} \ No newline at end of file diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/outputs.tf new file mode 100644 index 0000000..c624023 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/outputs.tf @@ -0,0 +1,4 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/variables.tf new file mode 100644 index 0000000..e69de29 diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/versions.tf new file mode 100644 index 0000000..86c32d6 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ipv6-eks-cluster/input/versions.tf @@ -0,0 +1,17 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 6.0" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/ipv6-eks-cluster/terraform.tfstate" + # } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/fixture.json new file mode 100644 index 0000000..21d8a71 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/istio", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "a8dc336762730ca41af3fe27397dd291bfcadb1fa3f9680ae7892d3ea8a1e08d" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm", + "kubernetes" + ], + "features": [ + "data", + "functions", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/main.tf new file mode 100644 index 0000000..a1912f8 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/main.tf @@ -0,0 +1,218 @@ +provider "aws" { + region = local.region +} + +provider "kubernetes" { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + istio_chart_url = "https://istio-release.storage.googleapis.com/charts" + istio_chart_version = "1.20.2" + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.11" + + cluster_name = local.name + cluster_version = "1.30" + cluster_endpoint_public_access = true + + # Give the Terraform identity admin access to the cluster + # which will allow resources to be deployed into the cluster + enable_cluster_creator_admin_permissions = true + + cluster_addons = { + coredns = {} + kube-proxy = {} + vpc-cni = {} + } + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_groups = { + initial = { + instance_types = ["m5.large"] + + min_size = 1 + max_size = 5 + desired_size = 2 + } + } + + # EKS K8s API cluster needs to be able to talk with the EKS worker nodes with port 15017/TCP and 15012/TCP which is used by Istio + # Istio in order to create sidecar needs to be able to communicate with webhook and for that network passage to EKS is needed. + node_security_group_additional_rules = { + ingress_15017 = { + description = "Cluster API - Istio Webhook namespace.sidecar-injector.istio.io" + protocol = "TCP" + from_port = 15017 + to_port = 15017 + type = "ingress" + source_cluster_security_group = true + } + ingress_15012 = { + description = "Cluster API to nodes ports/protocols" + protocol = "TCP" + from_port = 15012 + to_port = 15012 + type = "ingress" + source_cluster_security_group = true + } + } + + tags = local.tags +} + +################################################################################ +# EKS Blueprints Addons +################################################################################ + +resource "kubernetes_namespace_v1" "istio_system" { + metadata { + name = "istio-system" + } +} + +module "eks_blueprints_addons" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.16" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + # This is required to expose Istio Ingress Gateway + enable_aws_load_balancer_controller = true + + helm_releases = { + istio-base = { + chart = "base" + chart_version = local.istio_chart_version + repository = local.istio_chart_url + name = "istio-base" + namespace = kubernetes_namespace_v1.istio_system.metadata[0].name + } + + istiod = { + chart = "istiod" + chart_version = local.istio_chart_version + repository = local.istio_chart_url + name = "istiod" + namespace = kubernetes_namespace_v1.istio_system.metadata[0].name + + set = [ + { + name = "meshConfig.accessLogFile" + value = "/dev/stdout" + } + ] + } + + istio-ingress = { + chart = "gateway" + chart_version = local.istio_chart_version + repository = local.istio_chart_url + name = "istio-ingress" + namespace = "istio-ingress" # per https://github.com/istio/istio/blob/master/manifests/charts/gateways/istio-ingress/values.yaml#L2 + create_namespace = true + + values = [ + yamlencode( + { + labels = { + istio = "ingressgateway" + } + service = { + annotations = { + "service.beta.kubernetes.io/aws-load-balancer-type" = "external" + "service.beta.kubernetes.io/aws-load-balancer-nlb-target-type" = "ip" + "service.beta.kubernetes.io/aws-load-balancer-scheme" = "internet-facing" + "service.beta.kubernetes.io/aws-load-balancer-attributes" = "load_balancing.cross_zone.enabled=true" + } + } + } + ) + ] + } + } + + tags = local.tags +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/outputs.tf new file mode 100644 index 0000000..c624023 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/outputs.tf @@ -0,0 +1,4 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/variables.tf new file mode 100644 index 0000000..e69de29 diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/versions.tf new file mode 100644 index 0000000..3c01978 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/istio/input/versions.tf @@ -0,0 +1,25 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + kubernetes = { + source = "hashicorp/kubernetes" + version = ">= 2.20" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/istio/terraform.tfstate" + # } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/fixture.json new file mode 100644 index 0000000..75a0896 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/karpenter-mng", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "969662c2203f22a376d1baf620291a8dae5eece4198f8154a1bf05b200be2f1e" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm" + ], + "features": [ + "data", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/eks.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/eks.tf new file mode 100644 index 0000000..018d5c4 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/eks.tf @@ -0,0 +1,78 @@ +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.24" + + cluster_name = local.name + cluster_version = "1.30" + + # Give the Terraform identity admin access to the cluster + # which will allow it to deploy resources into the cluster + enable_cluster_creator_admin_permissions = true + cluster_endpoint_public_access = true + + cluster_addons = { + coredns = { + configuration_values = jsonencode({ + tolerations = [ + # Allow CoreDNS to run on the same nodes as the Karpenter controller + # for use during cluster creation when Karpenter nodes do not yet exist + { + key = "karpenter.sh/controller" + value = "true" + effect = "NoSchedule" + } + ] + }) + } + eks-pod-identity-agent = {} + kube-proxy = {} + vpc-cni = {} + } + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_groups = { + karpenter = { + ami_type = "BOTTLEROCKET_x86_64" + instance_types = ["m5.large"] + + min_size = 2 + max_size = 3 + desired_size = 2 + + labels = { + # Used to ensure Karpenter runs on nodes that it does not manage + "karpenter.sh/controller" = "true" + } + + taints = { + # The pods that do not tolerate this taint should run on nodes + # created by Karpenter + karpenter = { + key = "karpenter.sh/controller" + value = "true" + effect = "NO_SCHEDULE" + } + } + } + } + + node_security_group_tags = merge(local.tags, { + # NOTE - if creating multiple security groups with this module, only tag the + # security group that Karpenter should utilize with the following tag + # (i.e. - at most, only one security group should have this tag in your account) + "karpenter.sh/discovery" = local.name + }) + + tags = local.tags +} + +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/karpenter.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/karpenter.tf new file mode 100644 index 0000000..6a9ac08 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/karpenter.tf @@ -0,0 +1,64 @@ +locals { + namespace = "karpenter" +} + +################################################################################ +# Controller & Node IAM roles, SQS Queue, Eventbridge Rules +################################################################################ + +module "karpenter" { + source = "terraform-aws-modules/eks/aws//modules/karpenter" + version = "~> 20.24" + + cluster_name = module.eks.cluster_name + enable_v1_permissions = true + namespace = local.namespace + + # Name needs to match role name passed to the EC2NodeClass + node_iam_role_use_name_prefix = false + node_iam_role_name = local.name + create_pod_identity_association = true + + tags = local.tags +} + +################################################################################ +# Helm charts +################################################################################ + +resource "helm_release" "karpenter" { + name = "karpenter" + namespace = local.namespace + create_namespace = true + repository = "oci://public.ecr.aws/karpenter" + repository_username = data.aws_ecrpublic_authorization_token.token.user_name + repository_password = data.aws_ecrpublic_authorization_token.token.password + chart = "karpenter" + version = "1.0.2" + wait = false + + values = [ + <<-EOT + nodeSelector: + karpenter.sh/controller: 'true' + settings: + clusterName: ${module.eks.cluster_name} + clusterEndpoint: ${module.eks.cluster_endpoint} + interruptionQueue: ${module.karpenter.queue_name} + tolerations: + - key: CriticalAddonsOnly + operator: Exists + - key: karpenter.sh/controller + operator: Exists + effect: NoSchedule + webhook: + enabled: false + EOT + ] + + lifecycle { + ignore_changes = [ + repository_password + ] + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/main.tf new file mode 100644 index 0000000..5ea552d --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/main.tf @@ -0,0 +1,75 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/karpenter-mng/terraform.tfstate" + # } +} + +provider "aws" { + region = local.region +} + +# This provider is required for ECR to authenticate with public repos. Please note ECR authentication requires us-east-1 as region hence its hardcoded below. +# If your region is same as us-east-1 then you can just use one aws provider +provider "aws" { + alias = "ecr" + region = "us-east-1" +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +################################################################################ +# Common data/locals +################################################################################ + +data "aws_ecrpublic_authorization_token" "token" { + provider = aws.ecr +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = "ex-${basename(path.cwd)}" + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/vpc.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/vpc.tf new file mode 100644 index 0000000..2eb92e2 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter-mng/input/vpc.tf @@ -0,0 +1,26 @@ +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + # Tags subnets for Karpenter auto-discovery + "karpenter.sh/discovery" = local.name + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/fixture.json new file mode 100644 index 0000000..fa7b6b2 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/karpenter", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "ac5894321879ba303d473ff8df728796d65bbf8908d0142841a0bd0a4bfe89ee" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm" + ], + "features": [ + "data", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/eks.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/eks.tf new file mode 100644 index 0000000..ccc1132 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/eks.tf @@ -0,0 +1,52 @@ +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.24" + + cluster_name = local.name + cluster_version = "1.30" + + # Give the Terraform identity admin access to the cluster + # which will allow it to deploy resources into the cluster + enable_cluster_creator_admin_permissions = true + cluster_endpoint_public_access = true + + cluster_addons = { + # Enable after creation to run on Karpenter managed nodes + # coredns = {} + eks-pod-identity-agent = {} + kube-proxy = {} + vpc-cni = {} + } + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + # Fargate profiles use the cluster primary security group + # Therefore these are not used and can be skipped + create_cluster_security_group = false + create_node_security_group = false + + fargate_profiles = { + karpenter = { + selectors = [ + { namespace = "karpenter" } + ] + } + } + + tags = merge(local.tags, { + # NOTE - if creating multiple security groups with this module, only tag the + # security group that Karpenter should utilize with the following tag + # (i.e. - at most, only one security group should have this tag in your account) + "karpenter.sh/discovery" = local.name + }) +} + +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/karpenter.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/karpenter.tf new file mode 100644 index 0000000..10ee201 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/karpenter.tf @@ -0,0 +1,64 @@ +locals { + namespace = "karpenter" +} + +################################################################################ +# Controller & Node IAM roles, SQS Queue, Eventbridge Rules +################################################################################ + +module "karpenter" { + source = "terraform-aws-modules/eks/aws//modules/karpenter" + version = "~> 20.24" + + cluster_name = module.eks.cluster_name + enable_v1_permissions = true + namespace = local.namespace + + # Name needs to match role name passed to the EC2NodeClass + node_iam_role_use_name_prefix = false + node_iam_role_name = local.name + + # EKS Fargate does not support pod identity + create_pod_identity_association = false + enable_irsa = true + irsa_oidc_provider_arn = module.eks.oidc_provider_arn + + tags = local.tags +} + +################################################################################ +# Helm charts +################################################################################ + +resource "helm_release" "karpenter" { + name = "karpenter" + namespace = local.namespace + create_namespace = true + repository = "oci://public.ecr.aws/karpenter" + repository_username = data.aws_ecrpublic_authorization_token.token.user_name + repository_password = data.aws_ecrpublic_authorization_token.token.password + chart = "karpenter" + version = "1.0.2" + wait = false + + values = [ + <<-EOT + dnsPolicy: Default + settings: + clusterName: ${module.eks.cluster_name} + clusterEndpoint: ${module.eks.cluster_endpoint} + interruptionQueue: ${module.karpenter.queue_name} + serviceAccount: + annotations: + eks.amazonaws.com/role-arn: ${module.karpenter.iam_role_arn} + webhook: + enabled: false + EOT + ] + + lifecycle { + ignore_changes = [ + repository_password + ] + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/main.tf new file mode 100644 index 0000000..3655f17 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/main.tf @@ -0,0 +1,75 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/karpenter/terraform.tfstate" + # } +} + +provider "aws" { + region = local.region +} + +# This provider is required for ECR to authenticate with public repos. Please note ECR authentication requires us-east-1 as region hence its hardcoded below. +# If your region is same as us-east-1 then you can just use one aws provider +provider "aws" { + alias = "ecr" + region = "us-east-1" +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +################################################################################ +# Common data/locals +################################################################################ + +data "aws_ecrpublic_authorization_token" "token" { + provider = aws.ecr +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = "ex-${basename(path.cwd)}" + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/vpc.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/vpc.tf new file mode 100644 index 0000000..2eb92e2 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/karpenter/input/vpc.tf @@ -0,0 +1,26 @@ +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + # Tags subnets for Karpenter auto-discovery + "karpenter.sh/discovery" = local.name + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/fixture.json new file mode 100644 index 0000000..d5091d0 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/fixture.json @@ -0,0 +1,36 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/kubecost", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "d7ba61694b1a37168467a02e516a68303578c5e7f440e5fe06d6a24940c8eafa" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm" + ], + "features": [ + "data", + "depends_on", + "functions", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/main.tf new file mode 100644 index 0000000..c956dd4 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/main.tf @@ -0,0 +1,409 @@ +provider "aws" { + region = local.region +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +data "aws_caller_identity" "current" {} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 2) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.11" + + cluster_name = local.name + cluster_version = "1.30" + cluster_endpoint_public_access = true + + # Give the Terraform identity admin access to the cluster + # which will allow resources to be deployed into the cluster + enable_cluster_creator_admin_permissions = true + + # EKS Addons + cluster_addons = { + aws-ebs-csi-driver = { + service_account_role_arn = module.ebs_csi_driver_irsa.iam_role_arn + } + coredns = {} + kube-proxy = {} + vpc-cni = {} + } + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_groups = { + initial = { + instance_types = ["m6i.large", "m5.large", "m5n.large", "m5zn.large"] + capacity_type = "SPOT" + min_size = 3 + max_size = 10 + desired_size = 5 + } + } + + tags = local.tags +} + +################################################################################ +# Addons +################################################################################ + +module "eks_blueprints_addons" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.16" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + enable_metrics_server = true + + depends_on = [module.eks.eks_managed_node_groups] +} + +################################################################################ +# EBS CSI Driver Role +################################################################################ + +module "ebs_csi_driver_irsa" { + source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks" + version = "~> 5.20" + + role_name = "${local.name}-ebs-csi-driver" + + attach_ebs_csi_policy = true + + oidc_providers = { + main = { + provider_arn = module.eks.oidc_provider_arn + namespace_service_accounts = ["kube-system:ebs-csi-controller-sa"] + } + } + + tags = local.tags +} + +################################################################################ +# CUR +################################################################################ + +resource "aws_s3_bucket" "cur" { + bucket_prefix = "kubecost-" + force_destroy = true + + tags = local.tags +} + +resource "aws_s3_bucket_public_access_block" "example" { + bucket = aws_s3_bucket.cur.id + + block_public_acls = true + block_public_policy = true + ignore_public_acls = true + restrict_public_buckets = true +} + +resource "aws_s3_bucket_lifecycle_configuration" "cur" { + bucket = aws_s3_bucket.cur.id + rule { + id = "cost" + expiration { + days = 7 + } + status = "Enabled" + } +} + +resource "aws_s3_bucket_policy" "allow_access" { + bucket = aws_s3_bucket.cur.id + policy = data.aws_iam_policy_document.cur_bucket_policy.json +} + +data "aws_iam_policy_document" "cur_bucket_policy" { + statement { + principals { + type = "Service" + identifiers = ["billingreports.amazonaws.com"] + } + + actions = [ + "s3:GetBucketAcl", + "s3:GetBucketPolicy" + ] + + resources = [ + aws_s3_bucket.cur.arn, + ] + } + + statement { + principals { + type = "Service" + identifiers = ["billingreports.amazonaws.com"] + } + + actions = [ + "s3:PutObject" + ] + + resources = [ + "${aws_s3_bucket.cur.arn}/*", + ] + } +} + +resource "aws_cur_report_definition" "cur" { + report_name = "kubecost" + time_unit = "DAILY" + format = "Parquet" + compression = "Parquet" + additional_schema_elements = ["RESOURCES"] + s3_bucket = aws_s3_bucket.cur.id + s3_prefix = "reports" + s3_region = local.region + additional_artifacts = ["ATHENA"] + report_versioning = "OVERWRITE_REPORT" +} + +################################################################################ +# Athena +################################################################################ + +resource "aws_s3_bucket" "athena_results" { + bucket_prefix = "aws-athena-query-results-" + force_destroy = true + + tags = local.tags +} + +resource "aws_s3_bucket_lifecycle_configuration" "athena_results" { + bucket = aws_s3_bucket.athena_results.id + rule { + id = "cost" + expiration { + days = 1 + } + status = "Enabled" + } +} + +resource "aws_s3_bucket_ownership_controls" "athena_results" { + bucket = aws_s3_bucket.athena_results.id + + rule { + object_ownership = "BucketOwnerPreferred" + } +} + +resource "aws_s3_bucket_acl" "athena_results" { + depends_on = [aws_s3_bucket_ownership_controls.athena_results] + + bucket = aws_s3_bucket.athena_results.id + acl = "private" +} + +################################################################################ +# Kubecost +################################################################################ + +module "kubecost_irsa" { + source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks" + version = "~> 5.30" + + role_name_prefix = "${local.name}-" + assume_role_condition_test = "StringLike" + + role_policy_arns = { + policy = aws_iam_policy.kubecost.arn + } + + oidc_providers = { + main = { + provider_arn = module.eks.oidc_provider_arn + namespace_service_accounts = ["kubecost:*"] + } + } + + tags = local.tags +} + +resource "aws_iam_policy" "kubecost" { + name = local.name + policy = data.aws_iam_policy_document.combined.json +} + +data "aws_iam_policy_document" "combined" { + source_policy_documents = [ + data.aws_iam_policy_document.kubecost.json, + data.aws_iam_policy_document.athena.json + ] +} + +data "aws_iam_policy_document" "kubecost" { + statement { + sid = "KubecostSavingsAccess" + effect = "Allow" + actions = [ + "ec2:DescribeAddresses", + "ec2:DescribeVolumes" + ] + resources = ["*"] + } + statement { + effect = "Allow" + actions = [ + "s3:ListAllMyBuckets", + ] + resources = ["*"] + } +} + +data "aws_iam_policy_document" "athena" { + statement { + sid = "athenaaccess" + effect = "Allow" + actions = ["athena:*"] + resources = ["*"] + } + statement { + sid = "ReadAccessToAthenaCurDataViaGlue" + effect = "Allow" + actions = [ + "glue:GetDatabase*", + "glue:GetTable*", + "glue:GetPartition*", + "glue:GetUserDefinedFunction", + "glue:BatchGetPartition" + ] + resources = [ + "arn:aws:glue:*:*:catalog", + "arn:aws:glue:*:*:database/athenacurcfn*", + "arn:aws:glue:*:*:table/athenacurcfn*/*" + ] + } + statement { + sid = "AthenaQueryResultsOutput" + effect = "Allow" + actions = [ + "s3:GetBucketLocation", + "s3:GetObject", + "s3:ListBucket", + "s3:ListBucketMultipartUploads", + "s3:ListMultipartUploadParts", + "s3:AbortMultipartUpload", + "s3:CreateBucket", + "s3:PutObject" + ] + resources = [ + aws_s3_bucket.athena_results.arn, + "${aws_s3_bucket.athena_results.arn}/*" + ] + } + statement { + sid = "S3ReadAccessToAwsBillingData" + effect = "Allow" + actions = [ + "s3:ListBucket", + "s3:List*", + "s3:Get*" + ] + resources = [ + aws_s3_bucket.cur.arn, + "${aws_s3_bucket.cur.arn}/*" + ] + } +} + +module "eks_blueprints_addon" { + source = "aws-ia/eks-blueprints-addon/aws" + version = "~> 1.1.1" #ensure to update this to the latest/desired version + + chart = "cost-analyzer" + chart_version = "1.108.1" + repository = "https://kubecost.github.io/cost-analyzer/" + description = "Kubecost helm Chart deployment configuration" + namespace = "kubecost" + create_namespace = true + + values = [templatefile("kubecost-values.yaml", { + kubecostToken = var.kubecost_token + service-account = "kubecost-cost-analyzer" + iam-role-arn = module.kubecost_irsa.iam_role_arn + projectID = data.aws_caller_identity.current.account_id + athenaProjectID = data.aws_caller_identity.current.account_id + athenaBucketName = "s3://${aws_s3_bucket.athena_results.id}" + athenaRegion = local.region + athenaDatabase = "athenacurcfn_kubecost" + athenaTable = "kubecost" + }) + ] + + tags = local.tags +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/outputs.tf new file mode 100644 index 0000000..5d45b2b --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/outputs.tf @@ -0,0 +1,19 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks update-kubeconfig --name ${module.eks.cluster_name} --alias ${module.eks.cluster_name}" +} + +output "cur_bucket_id" { + description = "Kubecost CUR bucket id" + value = aws_s3_bucket.cur.id +} + +output "s3_cur_report_prefix" { + description = "Kubecost CUR bucket prefix" + value = aws_cur_report_definition.cur.s3_prefix +} + +output "region" { + description = "region" + value = local.region +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/variables.tf new file mode 100644 index 0000000..80e799b --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/variables.tf @@ -0,0 +1,4 @@ +variable "kubecost_token" { + type = string + description = "To find or obtain Kubecost token, go to https://www.kubecost.com/install#show-instructions" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/versions.tf new file mode 100644 index 0000000..f43b4f1 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/kubecost/input/versions.tf @@ -0,0 +1,21 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/kubecost/terraform.tfstate" + # } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/fixture.json new file mode 100644 index 0000000..4d4cc8e --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/fixture.json @@ -0,0 +1,36 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/ml-capacity-block", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "c1d151aa7677bd1808948ab15692d8c28bb3466a7e6698ac9e03930665f64ac0" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm" + ], + "features": [ + "data", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/input/eks.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/input/eks.tf new file mode 100644 index 0000000..1b9b674 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/input/eks.tf @@ -0,0 +1,135 @@ +################################################################################ +# Required Input +################################################################################ + +# See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-blocks-using.html +# on how to obtain a ML capacity block reservation. Once acquired, you can provide +# the reservation ID through this input to deploy the pattern +variable "capacity_reservation_id" { + description = "The ID of the ML capacity block reservation for the node group" + type = string +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.34" + + cluster_name = local.name + cluster_version = "1.32" + + # Give the Terraform identity admin access to the cluster + # which will allow it to deploy resources into the cluster + enable_cluster_creator_admin_permissions = true + cluster_endpoint_public_access = true + + # These will become the default in the next major version of the module + bootstrap_self_managed_addons = false + enable_irsa = false + enable_security_groups_for_pods = false + + cluster_addons = { + coredns = {} + eks-node-monitoring-agent = {} + eks-pod-identity-agent = { + before_compute = true + } + kube-proxy = {} + vpc-cni = { + most_recent = true + before_compute = true + } + } + + # Add security group rules on the node group security group to + # allow EFA traffic + enable_efa_support = true + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_group_defaults = { + node_repair_config = { + enabled = true + } + } + + eks_managed_node_groups = { + cbr = { + # The EKS AL2023 NVIDIA AMI provides all of the necessary components + # for accelerated workloads w/ EFA + ami_type = "AL2023_x86_64_NVIDIA" + instance_types = ["p5e.48xlarge"] + + # Mount instance store volumes in RAID-0 for kubelet and containerd + # https://github.com/awslabs/amazon-eks-ami/blob/master/doc/USER_GUIDE.md#raid-0-for-kubelet-and-containerd-raid0 + cloudinit_pre_nodeadm = [ + { + content_type = "application/node.eks.aws" + content = <<-EOT + --- + apiVersion: node.eks.aws/v1alpha1 + kind: NodeConfig + spec: + instance: + localStorage: + strategy: RAID0 + EOT + } + ] + + min_size = 2 + max_size = 2 + desired_size = 2 + + # This will: + # 1. Create a placement group to place the instances close to one another + # 2. Ignore subnets that reside in AZs that do not support the instance type + # 3. Expose all of the available EFA interfaces on the launch template + enable_efa_support = true + + labels = { + "vpc.amazonaws.com/efa.present" = "true" + "nvidia.com/gpu.present" = "true" + } + + taints = { + # Ensure only GPU workloads are scheduled on this node group + gpu = { + key = "nvidia.com/gpu" + value = "true" + effect = "NO_SCHEDULE" + } + } + + # First subnet is in the "${local.region}a" availability zone + # where the capacity reservation is created + # TODO - Update the subnet to match the availability zone of *YOUR capacity reservation + subnet_ids = [element(module.vpc.private_subnets, 0)] + + # ML capacity block reservation + capacity_type = "CAPACITY_BLOCK" + instance_market_options = { + market_type = "capacity-block" + } + capacity_reservation_specification = { + capacity_reservation_target = { + capacity_reservation_id = var.capacity_reservation_id + } + } + } + # This node group is for core addons such as CoreDNS + default = { + instance_types = ["m5.large"] + + min_size = 2 + max_size = 2 + desired_size = 2 + } + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/input/helm.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/input/helm.tf new file mode 100644 index 0000000..8d11e73 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/input/helm.tf @@ -0,0 +1,33 @@ +################################################################################ +# Helm charts +################################################################################ + +resource "helm_release" "nvidia_device_plugin" { + name = "nvidia-device-plugin" + repository = "https://nvidia.github.io/k8s-device-plugin" + chart = "nvidia-device-plugin" + version = "0.17.1" + namespace = "nvidia-device-plugin" + create_namespace = true + wait = false +} + +resource "helm_release" "aws_efa_device_plugin" { + name = "aws-efa-k8s-device-plugin" + repository = "https://aws.github.io/eks-charts" + chart = "aws-efa-k8s-device-plugin" + version = "v0.5.7" + namespace = "kube-system" + wait = false + + values = [ + <<-EOT + nodeSelector: + vpc.amazonaws.com/efa.present: 'true' + tolerations: + - key: nvidia.com/gpu + operator: Exists + effect: NoSchedule + EOT + ] +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/input/main.tf new file mode 100644 index 0000000..2ea32bf --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-capacity-block/input/main.tf @@ -0,0 +1,102 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/ml-capacity-block/terraform.tfstate" + # } +} + +provider "aws" { + region = local.region +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +################################################################################ +# Common data/locals +################################################################################ + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Output +################################################################################ + +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/fixture.json new file mode 100644 index 0000000..4f4a800 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/ml-container-cache", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "ce0d9bebaf3719ba72d477d84ef2b1161f821a8758a46ac6a5c724a8af5fa885" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm" + ], + "features": [ + "data", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/cache_builder.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/cache_builder.tf new file mode 100644 index 0000000..5178a9d --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/cache_builder.tf @@ -0,0 +1,20 @@ +module "ebs_snapshot_builder" { + source = "clowdhaus/ebs-snapshot-builder/aws" + version = "~> 1.1" + + name = local.name + + # Images to cache + public_images = [ + "nvcr.io/nvidia/k8s-device-plugin:v0.17.1", # 120 MB compressed / 351 MB decompressed + "nvcr.io/nvidia/pytorch:25.02-py3", # 9.5 GB compressed / 20.4 GB decompressed + ] + + # AZs where EBS fast snapshot restore will be enabled + fsr_availability_zone_names = local.azs + + vpc_id = module.vpc.vpc_id + subnet_id = element(module.vpc.private_subnets, 0) + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/eks.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/eks.tf new file mode 100644 index 0000000..84e58a6 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/eks.tf @@ -0,0 +1,131 @@ +locals { + dev_name = "xvdb" +} + +# SSM parameter where the `cache-builder` stores the generated snapshot ID +# This will be used to reference the snapshot when creating the EKS node group +data "aws_ssm_parameter" "snapshot_id" { + name = module.ebs_snapshot_builder.ssm_parameter_name +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.34" + + cluster_name = local.name + cluster_version = "1.32" + + # Give the Terraform identity admin access to the cluster + # which will allow it to deploy resources into the cluster + enable_cluster_creator_admin_permissions = true + cluster_endpoint_public_access = true + + # These will become the default in the next major version of the module + bootstrap_self_managed_addons = false + enable_irsa = false + enable_security_groups_for_pods = false + + cluster_addons = { + coredns = {} + eks-node-monitoring-agent = {} + eks-pod-identity-agent = { + before_compute = true + } + kube-proxy = {} + vpc-cni = { + most_recent = true + before_compute = true + } + } + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_group_defaults = { + node_repair_config = { + enabled = true + } + } + + eks_managed_node_groups = { + gpu = { + # The EKS AL2 GPU AMI provides all of the necessary components + # for accelerated workloads w/ EFA + ami_type = "AL2_x86_64_GPU" + instance_types = ["g6e.xlarge"] + + min_size = 1 + max_size = 1 + desired_size = 1 + + pre_bootstrap_user_data = <<-EOT + # Mount the second volume for containerd persistent data + # This volume contains the cached images and layers + + systemctl stop containerd kubelet + + rm -rf /var/lib/containerd/* + echo '/dev/${local.dev_name} /var/lib/containerd xfs defaults 0 0' >> /etc/fstab + mount -a + + systemctl restart containerd kubelet + + EOT + + # Mount a second volume for containerd persistent data + # using the snapshot that contains the cached images and layers + block_device_mappings = { + (local.dev_name) = { + device_name = "/dev/${local.dev_name}" + ebs = { + # Snapshot ID from the cache builder + snapshot_id = nonsensitive(data.aws_ssm_parameter.snapshot_id.value) + volume_size = 64 + volume_type = "gp3" + } + } + } + + labels = { + "nvidia.com/gpu.present" = "true" + "ml-container-cache" = "true" + } + + taints = { + # Ensure only GPU workloads are scheduled on this node group + gpu = { + key = "nvidia.com/gpu" + value = "true" + effect = "NO_SCHEDULE" + } + } + } + + # This node group is for core addons such as CoreDNS + default = { + instance_types = ["m5.large"] + + min_size = 1 + max_size = 2 + desired_size = 2 + + # Not required - increased to demonstrate pulling the un-cached + # image since the default volume size is too small for the image used + block_device_mappings = { + "xvda" = { + device_name = "/dev/xvda" + ebs = { + volume_size = 64 + volume_type = "gp3" + } + } + } + } + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/helm.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/helm.tf new file mode 100644 index 0000000..7b43ce4 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/helm.tf @@ -0,0 +1,13 @@ +################################################################################ +# Helm charts +################################################################################ + +resource "helm_release" "nvidia_device_plugin" { + name = "nvidia-device-plugin" + repository = "https://nvidia.github.io/k8s-device-plugin" + chart = "nvidia-device-plugin" + version = "0.17.1" # Matches image that is cached + namespace = "nvidia-device-plugin" + create_namespace = true + wait = false +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/main.tf new file mode 100644 index 0000000..565f4f8 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/ml-container-cache/input/main.tf @@ -0,0 +1,102 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/ml-container-cache/terraform.tfstate" + # } +} + +provider "aws" { + region = local.region +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +################################################################################ +# Common data/locals +################################################################################ + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Output +################################################################################ + +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/fixture.json new file mode 100644 index 0000000..424bbde --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/fixture.json @@ -0,0 +1,38 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/multi-node-vllm", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "c48b026bd3fe28ac0d78c7c98f129c8a786e097a1b5fbadd0f454843c5308458" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm", + "kubectl", + "local" + ], + "features": [ + "data", + "for_each", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/ecr.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/ecr.tf new file mode 100644 index 0000000..45a91de --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/ecr.tf @@ -0,0 +1,45 @@ +################################################################################ +# ECR Repository +################################################################################ + +module "ecr" { + source = "terraform-aws-modules/ecr/aws" + version = "~> 1.6" + + repository_name = local.name + + create_lifecycle_policy = false + repository_force_delete = true + + tags = local.tags +} + +################################################################################ +# Image Build & Push Script +################################################################################ + +data "aws_caller_identity" "current" {} + +resource "local_file" "vllm" { + content = <<-EOT + #!/usr/bin/env bash + + aws ecr get-login-password --region ${local.region} | docker login --username AWS --password-stdin ${data.aws_caller_identity.current.account_id}.dkr.ecr.${local.region}.amazonaws.com + + TAG=vllm-$(date +%Y%m%d_%H%M%S) + docker build . --output type=image,name=${module.ecr.repository_url}:$${TAG},compression=zstd,force-compression=true,compression-level=9,oci-mediatypes=true,platform=linux/amd64 + docker push ${module.ecr.repository_url}:$${TAG} + + # Update the pod manifest with the new image tag + if [[ "$OSTYPE" == "linux-gnu"* ]]; then + sed -i "s|image:.*|image: ${module.ecr.repository_url}:$${TAG}|g" ./lws.yaml + elif [[ "$OSTYPE" == "darwin"* ]]; then + sed -i '' "s|image:.*|image: ${module.ecr.repository_url}:$${TAG}|g" ./lws.yaml + else + echo "Unsupported OS: $OSTYPE" + exit 1 + fi + EOT + + filename = "${path.module}/build.sh" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/eks.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/eks.tf new file mode 100644 index 0000000..bed9594 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/eks.tf @@ -0,0 +1,109 @@ +################################################################################ +# EKS Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.34" + + cluster_name = local.name + cluster_version = "1.32" + + # Gives Terraform identity admin access to cluster which will + # allow deploying resources into the cluster + enable_cluster_creator_admin_permissions = true + cluster_endpoint_public_access = true + + # These will become the default in the next major version of the module + bootstrap_self_managed_addons = false + enable_irsa = false + enable_security_groups_for_pods = false + + cluster_addons = { + coredns = {} + eks-node-monitoring-agent = {} + eks-pod-identity-agent = { + before_compute = true + } + kube-proxy = {} + vpc-cni = { + most_recent = true + before_compute = true + } + } + + # Add security group rules on the node group security group to + # allow EFA traffic + enable_efa_support = true + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_group_defaults = { + node_repair_config = { + enabled = true + } + } + + eks_managed_node_groups = { + g6e = { + # The EKS AL2023 NVIDIA AMI provides all of the necessary components + # for accelerated workloads w/ EFA + ami_type = "AL2023_x86_64_NVIDIA" + instance_types = ["g6e.8xlarge"] + + min_size = 2 + max_size = 5 + desired_size = 2 + + # Mount instance store volumes in RAID-0 for kubelet and containerd + # https://github.com/awslabs/amazon-eks-ami/blob/master/doc/USER_GUIDE.md#raid-0-for-kubelet-and-containerd-raid0 + cloudinit_pre_nodeadm = [ + { + content_type = "application/node.eks.aws" + content = <<-EOT + --- + apiVersion: node.eks.aws/v1alpha1 + kind: NodeConfig + spec: + instance: + localStorage: + strategy: RAID0 + EOT + } + ] + + # This will: + # 1. Create a placement group to place the instances close to one another + # 2. Ignore subnets that reside in AZs that do not support the instance type + # 3. Expose all of the available EFA interfaces on the launch template + enable_efa_support = true + subnet_ids = [element(module.vpc.private_subnets, 2)] + + labels = { + "vpc.amazonaws.com/efa.present" = "true" + "nvidia.com/gpu.present" = "true" + } + + taints = { + # Ensure only GPU workloads are scheduled on this node group + gpu = { + key = "nvidia.com/gpu" + value = "true" + effect = "NO_SCHEDULE" + } + } + } + + # This node group is for core addons such as CoreDNS + default = { + instance_types = ["m5.large"] + + min_size = 2 + max_size = 2 + desired_size = 2 + } + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/helm.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/helm.tf new file mode 100644 index 0000000..e809377 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/helm.tf @@ -0,0 +1,56 @@ +################################################################################ +# Device Plugin(s) +################################################################################ + +resource "helm_release" "nvidia_device_plugin" { + name = "nvidia-device-plugin" + repository = "https://nvidia.github.io/k8s-device-plugin" + chart = "nvidia-device-plugin" + version = "0.17.1" + namespace = "nvidia-device-plugin" + create_namespace = true + wait = false +} + +resource "helm_release" "aws_efa_device_plugin" { + name = "aws-efa-k8s-device-plugin" + repository = "https://aws.github.io/eks-charts" + chart = "aws-efa-k8s-device-plugin" + version = "v0.5.7" + namespace = "kube-system" + wait = false + + values = [ + <<-EOT + nodeSelector: + vpc.amazonaws.com/efa.present: 'true' + tolerations: + - key: nvidia.com/gpu + operator: Exists + effect: NoSchedule + EOT + ] +} + +################################################################################ +# LWS (LeaderWorkerSet) +################################################################################ + +locals { + lws_version = "v0.5.1" +} + +data "http" "lws" { + url = "https://github.com/kubernetes-sigs/lws/releases/download/${local.lws_version}/manifests.yaml" +} + +data "kubectl_file_documents" "lws" { + content = data.http.lws.response_body +} + +resource "kubectl_manifest" "lws" { + for_each = data.kubectl_file_documents.lws.manifests + + yaml_body = each.value + server_side_apply = true +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/main.tf new file mode 100644 index 0000000..5763d4d --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-node-vllm/input/main.tf @@ -0,0 +1,129 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + http = { + source = "hashicorp/http" + version = ">= 3.3" + } + kubectl = { + source = "alekc/kubectl" + version = ">= 2.0" + } + local = { + source = "hashicorp/local" + version = ">= 2.0" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/multi-node-vllm/terraform.tfstate" + # } +} + +provider "aws" { + region = local.region + +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +provider "kubectl" { + apply_retry_count = 5 + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + load_config_file = false + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } +} + +################################################################################ +# Common data/locals +################################################################################ + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-east-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Output +################################################################################ + +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/fixture.json new file mode 100644 index 0000000..01c3020 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/multi-tenancy-with-teams", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "f3cbdc18ca79342fc102d188393e8f9a910e791770a24aa3a409a15e9569d3f5" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "kubernetes" + ], + "features": [ + "data", + "for_each", + "for_expressions", + "functions", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/main.tf new file mode 100644 index 0000000..6d6e647 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/main.tf @@ -0,0 +1,194 @@ +provider "aws" { + region = local.region +} + +provider "kubernetes" { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + token = data.aws_eks_cluster_auth.this.token +} + +data "aws_eks_cluster_auth" "this" { + name = module.eks.cluster_name +} + +data "aws_caller_identity" "current" {} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 19.21" + + cluster_name = local.name + cluster_version = "1.29" + cluster_endpoint_public_access = true + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_groups = { + initial = { + instance_types = ["m5.large"] + + min_size = 1 + max_size = 5 + desired_size = 2 + } + } + + manage_aws_auth_configmap = true + aws_auth_roles = flatten([ + module.eks_blueprints_admin_team.aws_auth_configmap_role, + [for team in module.eks_blueprints_dev_teams : team.aws_auth_configmap_role], + ]) + + tags = local.tags +} + +################################################################################ +# EKS Blueprints Teams +################################################################################ + +module "eks_blueprints_admin_team" { + source = "aws-ia/eks-blueprints-teams/aws" + version = "~> 1.0" + + name = "admin-team" + + enable_admin = true + users = [data.aws_caller_identity.current.arn] + cluster_arn = module.eks.cluster_arn + + tags = local.tags +} + +module "eks_blueprints_dev_teams" { + source = "aws-ia/eks-blueprints-teams/aws" + version = "~> 1.0" + + for_each = { + red = { + labels = { + project = "SuperSecret" + } + } + blue = {} + } + name = "team-${each.key}" + + users = [data.aws_caller_identity.current.arn] + cluster_arn = module.eks.cluster_arn + oidc_provider_arn = module.eks.oidc_provider_arn + + labels = merge( + { + team = each.key + }, + try(each.value.labels, {}) + ) + + annotations = { + team = each.key + } + + namespaces = { + "team-${each.key}" = { + labels = { + appName = "${each.key}-team-app", + projectName = "project-${each.key}", + } + + resource_quota = { + hard = { + "requests.cpu" = "2000m", + "requests.memory" = "4Gi", + "limits.cpu" = "4000m", + "limits.memory" = "16Gi", + "pods" = "20", + "secrets" = "20", + "services" = "20" + } + } + + limit_range = { + limit = [ + { + type = "Pod" + max = { + cpu = "200m" + memory = "1Gi" + } + }, + { + type = "PersistentVolumeClaim" + min = { + storage = "24M" + } + }, + { + type = "Container" + default = { + cpu = "50m" + memory = "24Mi" + } + } + ] + } + } + } + + tags = local.tags +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/outputs.tf new file mode 100644 index 0000000..0fb20a2 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/outputs.tf @@ -0,0 +1,9 @@ +output "eks_blueprints_admin_team_configure_kubectl" { + description = "Configure kubectl for each Platform Team: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name} --role-arn ${module.eks_blueprints_admin_team.iam_role_arn}" +} + +output "eks_blueprints_dev_teams_configure_kubectl" { + description = "Configure kubectl for each Application Teams: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = [for team in module.eks_blueprints_dev_teams : "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name} --role-arn ${team.iam_role_arn}"] +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/variables.tf new file mode 100644 index 0000000..e69de29 diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/versions.tf new file mode 100644 index 0000000..bd18e0d --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/multi-tenancy-with-teams/input/versions.tf @@ -0,0 +1,21 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + kubernetes = { + source = "hashicorp/kubernetes" + version = ">= 2.20" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/multi-tenancy-with-teams/terraform.tfstate" + # } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/fixture.json new file mode 100644 index 0000000..efc41e4 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/nvidia-gpu-efa", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "1ef7e33d12da0bfb17720e3a26d6d717103f4811fd07f22972d52b7e821fa7e7" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm" + ], + "features": [ + "data", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/input/eks.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/input/eks.tf new file mode 100644 index 0000000..0f98b8e --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/input/eks.tf @@ -0,0 +1,108 @@ +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.34" + + cluster_name = local.name + cluster_version = "1.32" + + # Give the Terraform identity admin access to the cluster + # which will allow it to deploy resources into the cluster + enable_cluster_creator_admin_permissions = true + cluster_endpoint_public_access = true + + # These will become the default in the next major version of the module + bootstrap_self_managed_addons = false + enable_irsa = false + enable_security_groups_for_pods = false + + cluster_addons = { + coredns = {} + eks-node-monitoring-agent = {} + eks-pod-identity-agent = { + before_compute = true + } + kube-proxy = {} + vpc-cni = { + most_recent = true + before_compute = true + } + } + + # Add security group rules on the node group security group to + # allow EFA traffic + enable_efa_support = true + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_group_defaults = { + node_repair_config = { + enabled = true + } + } + + eks_managed_node_groups = { + nvidia-efa = { + # The EKS AL2023 NVIDIA AMI provides all of the necessary components + # for accelerated workloads w/ EFA + ami_type = "AL2023_x86_64_NVIDIA" + instance_types = ["p5.48xlarge"] + + # Mount instance store volumes in RAID-0 for kubelet and containerd + # https://github.com/awslabs/amazon-eks-ami/blob/master/doc/USER_GUIDE.md#raid-0-for-kubelet-and-containerd-raid0 + cloudinit_pre_nodeadm = [ + { + content_type = "application/node.eks.aws" + content = <<-EOT + --- + apiVersion: node.eks.aws/v1alpha1 + kind: NodeConfig + spec: + instance: + localStorage: + strategy: RAID0 + EOT + } + ] + + min_size = 2 + max_size = 2 + desired_size = 2 + + # This will: + # 1. Create a placement group to place the instances close to one another + # 2. Ignore subnets that reside in AZs that do not support the instance type + # 3. Expose all of the available EFA interfaces on the launch template + enable_efa_support = true + + labels = { + "vpc.amazonaws.com/efa.present" = "true" + "nvidia.com/gpu.present" = "true" + } + + taints = { + # Ensure only GPU workloads are scheduled on this node group + gpu = { + key = "nvidia.com/gpu" + value = "true" + effect = "NO_SCHEDULE" + } + } + } + + # This node group is for core addons such as CoreDNS + default = { + instance_types = ["m5.large"] + + min_size = 1 + max_size = 2 + desired_size = 2 + } + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/input/helm.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/input/helm.tf new file mode 100644 index 0000000..8d11e73 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/input/helm.tf @@ -0,0 +1,33 @@ +################################################################################ +# Helm charts +################################################################################ + +resource "helm_release" "nvidia_device_plugin" { + name = "nvidia-device-plugin" + repository = "https://nvidia.github.io/k8s-device-plugin" + chart = "nvidia-device-plugin" + version = "0.17.1" + namespace = "nvidia-device-plugin" + create_namespace = true + wait = false +} + +resource "helm_release" "aws_efa_device_plugin" { + name = "aws-efa-k8s-device-plugin" + repository = "https://aws.github.io/eks-charts" + chart = "aws-efa-k8s-device-plugin" + version = "v0.5.7" + namespace = "kube-system" + wait = false + + values = [ + <<-EOT + nodeSelector: + vpc.amazonaws.com/efa.present: 'true' + tolerations: + - key: nvidia.com/gpu + operator: Exists + effect: NoSchedule + EOT + ] +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/input/main.tf new file mode 100644 index 0000000..e247ea4 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/nvidia-gpu-efa/input/main.tf @@ -0,0 +1,102 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/nvidia-gpu-efa/terraform.tfstate" + # } +} + +provider "aws" { + region = local.region +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +################################################################################ +# Common data/locals +################################################################################ + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Output +################################################################################ + +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/fixture.json new file mode 100644 index 0000000..21df671 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/private-public-ingress", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "b85fe8245f7a1d96224f8b5fb7023e9c4d59d2c450ccd13034f303ec7e76d6d8" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm" + ], + "features": [ + "data", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/main.tf new file mode 100644 index 0000000..a785745 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/main.tf @@ -0,0 +1,281 @@ +provider "aws" { + region = local.region +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.11" + + cluster_name = local.name + cluster_version = "1.30" + cluster_endpoint_public_access = true + + # Give the Terraform identity admin access to the cluster + # which will allow resources to be deployed into the cluster + enable_cluster_creator_admin_permissions = true + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_groups = { + core_node_group = { + instance_types = ["m5.large"] + + ami_type = "BOTTLEROCKET_x86_64" + platform = "bottlerocket" + + min_size = 3 + max_size = 3 + desired_size = 3 + } + } + + tags = local.tags +} + +################################################################################ +# EKS Blueprints Addons +################################################################################ + +resource "aws_security_group" "ingress_nginx_external" { + name = "ingress-nginx-external" + description = "Allow public HTTP and HTTPS traffic" + vpc_id = module.vpc.vpc_id + + ingress { + from_port = 80 + to_port = 80 + protocol = "tcp" + cidr_blocks = ["0.0.0.0/0"] # modify to your requirements + } + + ingress { + from_port = 443 + to_port = 443 + protocol = "tcp" + cidr_blocks = ["0.0.0.0/0"] # modify to your requirements + } + + egress { + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = ["0.0.0.0/0"] + } + + tags = local.tags +} + +# ingress-nginx controller, exposed by an internet facing Network Load Balancer +module "ingres_nginx_external" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.16" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + enable_ingress_nginx = true + ingress_nginx = { + name = "ingress-nginx-external" + values = [ + <<-EOT + controller: + replicaCount: 3 + service: + annotations: + service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip + service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing + service.beta.kubernetes.io/aws-load-balancer-security-groups: ${aws_security_group.ingress_nginx_external.id} + service.beta.kubernetes.io/aws-load-balancer-manage-backend-security-group-rules: true + loadBalancerClass: service.k8s.aws/nlb + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: topology.kubernetes.io/zone + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/instance: ingress-nginx-external + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/instance: ingress-nginx-external + minAvailable: 2 + ingressClassResource: + name: ingress-nginx-external + default: false + EOT + ] + } +} + +resource "aws_security_group" "ingress_nginx_internal" { + name = "ingress-nginx-internal" + description = "Allow local HTTP and HTTPS traffic" + vpc_id = module.vpc.vpc_id + + ingress { + from_port = 80 + to_port = 80 + protocol = "tcp" + cidr_blocks = [local.vpc_cidr] # modify to your requirements + } + + ingress { + from_port = 443 + to_port = 443 + protocol = "tcp" + cidr_blocks = [local.vpc_cidr] # modify to your requirements + } + + egress { + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = ["0.0.0.0/0"] + } + + tags = local.tags +} + +# ingress-nginx controller, exposed by an internal Network Load Balancer +module "ingres_nginx_internal" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.16" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + enable_ingress_nginx = true + + ingress_nginx = { + name = "ingress-nginx-internal" + values = [ + <<-EOT + controller: + replicaCount: 3 + service: + annotations: + service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip + service.beta.kubernetes.io/aws-load-balancer-scheme: internal + service.beta.kubernetes.io/aws-load-balancer-security-groups: ${aws_security_group.ingress_nginx_internal.id} + service.beta.kubernetes.io/aws-load-balancer-manage-backend-security-group-rules: true + loadBalancerClass: service.k8s.aws/nlb + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: topology.kubernetes.io/zone + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/instance: ingress-nginx-internal + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/instance: ingress-nginx-internal + minAvailable: 2 + ingressClassResource: + name: ingress-nginx-internal + default: false + EOT + ] + } +} + +module "eks_blueprints_addons" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.16" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + enable_aws_load_balancer_controller = true + aws_load_balancer_controller = { + chart_version = "1.6.0" # min version required to use SG for NLB feature + } + + tags = local.tags +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k)] + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 10)] + + enable_nat_gateway = true + single_nat_gateway = true + + manage_default_network_acl = true + default_network_acl_tags = { Name = "${local.name}-default" } + manage_default_route_table = true + default_route_table_tags = { Name = "${local.name}-default" } + manage_default_security_group = true + default_security_group_tags = { Name = "${local.name}-default" } + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/outputs.tf new file mode 100644 index 0000000..c952ef9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/outputs.tf @@ -0,0 +1,4 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks update-kubeconfig --name ${module.eks.cluster_name} --alias ${module.eks.cluster_name} --region ${local.region}" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/variables.tf new file mode 100644 index 0000000..e69de29 diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/versions.tf new file mode 100644 index 0000000..4e9e74c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/private-public-ingress/input/versions.tf @@ -0,0 +1,14 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/fixture.json new file mode 100644 index 0000000..d510b4c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/privatelink-access", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "f85fac8640a737b5d2f7356c4ffc519e9e75e7ce3196c1ce64b4a659ba5554a3" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "dns", + "kubernetes" + ], + "features": [ + "data", + "for_expressions", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/client.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/client.tf new file mode 100644 index 0000000..2852f18 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/client.tf @@ -0,0 +1,115 @@ +# The resources defined in this file are only used for demonstrating private connectivity +# They are not required for the solution + +locals { + client_name = "${local.name}-client" +} + +################################################################################ +# VPC +################################################################################ + +module "client_vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.client_name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k + 10)] + + enable_nat_gateway = true + single_nat_gateway = true + + manage_default_network_acl = true + default_network_acl_tags = { Name = "${local.client_name}-default" } + manage_default_route_table = true + default_route_table_tags = { Name = "${local.client_name}-default" } + manage_default_security_group = true + default_security_group_tags = { Name = "${local.client_name}-default" } + + tags = merge(local.tags, { + Name = local.client_name + }) +} + +################################################################################ +# EC2 Instance +################################################################################ + +module "client_ec2_instance" { + source = "terraform-aws-modules/ec2-instance/aws" + + name = local.client_name + + create_iam_instance_profile = true + iam_role_policies = { + EKSFullAccess = aws_iam_policy.eks_full_access_policy.arn + AmazonSSMManagedInstanceCore = "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore" + } + + vpc_security_group_ids = [module.client_security_group.security_group_id] + subnet_id = element(module.client_vpc.private_subnets, 0) + + user_data = <<-EOT + #!/bin/bash + + # Install kubectl + curl -LO https://dl.k8s.io/release/v${module.eks.cluster_version}.0/bin/linux/amd64/kubectl + install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + + # Remove default awscli which is v1 - we want latest v2 + yum remove awscli -y + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + unzip -qq awscliv2.zip + ./aws/install + EOT + + tags = merge(local.tags, { + Name = local.client_name + }) +} + +resource "aws_iam_policy" "eks_full_access_policy" { + name = "EKSFullAccess" + path = "/" + description = "EKS full-access policy" + + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Action = [ + "eks:DescribeCluster", + "eks:ListClusters" + ] + Effect = "Allow" + Resource = module.eks.cluster_arn + }, + ] + }) +} + +module "client_security_group" { + source = "terraform-aws-modules/security-group/aws" + version = "~> 5.0" + + name = local.client_name + description = "Security group for SSM access to private cluster" + vpc_id = module.client_vpc.vpc_id + + egress_with_cidr_blocks = [ + { + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = "0.0.0.0/0" + }, + ] + + tags = merge(local.tags, { + Name = local.client_name + }) +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/eks.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/eks.tf new file mode 100644 index 0000000..93b08b8 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/eks.tf @@ -0,0 +1,151 @@ +################################################################################ +# EKS Cluster +################################################################################ + +provider "kubernetes" { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } +} + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.11" + + cluster_name = local.name + cluster_version = "1.30" + + cluster_endpoint_public_access = false + enable_cluster_creator_admin_permissions = true + + access_entries = { + ec2-access-entry = { + principal_arn = module.client_ec2_instance.iam_role_arn + policy_associations = { + cluster-admin-policy = { + policy_arn = "arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy" + access_scope = { + namespaces = [] + type = "cluster" + } + } + } + } + } + + cluster_addons = { + coredns = {} + kube-proxy = {} + vpc-cni = {} + } + + cluster_security_group_additional_rules = { + # Allow tcp/443 from the NLB IP addresses + for ip_addr in data.dns_a_record_set.nlb.addrs : "nlb_ingress_${replace(ip_addr, ".", "")}" => { + description = "Allow ingress from NLB" + type = "ingress" + from_port = 443 + to_port = 443 + protocol = "tcp" + cidr_blocks = ["${ip_addr}/32"] + } + } + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_groups = { + default = { + instance_types = ["c5.large"] + + min_size = 1 + max_size = 3 + desired_size = 1 + } + } + + tags = local.tags +} + +################################################################################ +# VPC +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + + # Disable NAT gateway for fully private networking + enable_nat_gateway = false + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} + +# Explicitly create a Internet Gateway here in the Private EKS VPC as without an +# internet gateway, a NLB cannot be created. Config option of create_igw = true +# (default) did not work during the VPC creation as it requires public subnets +# and the related routes that connect them to IGW +resource "aws_internet_gateway" "igw" { + vpc_id = module.vpc.vpc_id + tags = local.tags +} + +################################################################################ +# VPC Endpoints +################################################################################ + +module "vpc_endpoints" { + source = "terraform-aws-modules/vpc/aws//modules/vpc-endpoints" + version = "~> 5.1" + + vpc_id = module.vpc.vpc_id + + # Security group + create_security_group = true + security_group_name_prefix = "${local.name}-vpc-endpoints-" + security_group_description = "VPC endpoint security group" + security_group_rules = { + ingress_https = { + description = "HTTPS from VPC" + cidr_blocks = [module.vpc.vpc_cidr_block] + } + } + + endpoints = merge({ + s3 = { + service = "s3" + service_type = "Gateway" + route_table_ids = module.vpc.private_route_table_ids + tags = { + Name = "${local.name}-s3" + } + } + }, + { for service in toset(["autoscaling", "ecr.api", "ecr.dkr", "ec2", "ec2messages", "elasticloadbalancing", "sts", "kms", "logs", "ssm", "ssmmessages"]) : + replace(service, ".", "_") => + { + service = service + subnet_ids = module.vpc.private_subnets + private_dns_enabled = true + tags = { Name = "${local.name}-${service}" } + } + }) + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/main.tf new file mode 100644 index 0000000..8ff58ba --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/main.tf @@ -0,0 +1,25 @@ +provider "aws" { + region = local.region +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Name = local.name + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/outputs.tf new file mode 100644 index 0000000..4cee728 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/outputs.tf @@ -0,0 +1,25 @@ +output "ssm_start_session" { + description = "SSM start session command to connect to remote host created" + value = "aws ssm start-session --region ${local.region} --target ${module.client_ec2_instance.id}" +} + +output "ssm_test" { + description = "SSM commands to test connectivity from client EC2 instance to the private EKS cluster" + value = <<-EOT + + COMMAND="curl -ks ${module.eks.cluster_endpoint}/readyz" + + COMMAND_ID=$(aws ssm send-command --region ${local.region} \ + --document-name "AWS-RunShellScript" \ + --parameters "commands=[$COMMAND]" \ + --targets "Key=instanceids,Values=${module.client_ec2_instance.id}" \ + --query 'Command.CommandId' \ + --output text) + + aws ssm get-command-invocation --region ${local.region} \ + --command-id $COMMAND_ID \ + --instance-id ${module.client_ec2_instance.id} \ + --query 'StandardOutputContent' \ + --output text + EOT +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/privatelink.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/privatelink.tf new file mode 100644 index 0000000..0fbe7b5 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/privatelink.tf @@ -0,0 +1,292 @@ +################################################################################ +# Internal NLB +################################################################################ + +module "nlb" { + source = "terraform-aws-modules/alb/aws" + version = "~> 8.6" + + name = local.name + vpc_id = module.vpc.vpc_id + subnets = module.vpc.private_subnets + internal = true + load_balancer_type = "network" + + target_groups = [{ + name = local.name + backend_protocol = "TCP" + backend_port = 443 + target_type = "ip" + health_check = { + enabled = true + path = "/readyz" + protocol = "HTTPS" + matcher = "200" + } + }] + + http_tcp_listeners = [{ + port = 443 + protocol = "TCP" + target_group_index = 0 + }] + + tags = local.tags +} + +data "dns_a_record_set" "nlb" { + host = module.nlb.lb_dns_name +} + +# VPC Endpoint Service that can be shared with other services in other VPCs. +# This Service Endpoint is created in the VPC where the LB exists; the client +# VPC Endpoint will connect to this service to reach the cluster via AWS PrivateLink +resource "aws_vpc_endpoint_service" "this" { + acceptance_required = true + network_load_balancer_arns = [module.nlb.lb_arn] + + tags = merge(local.tags, + { Name = local.name }, + ) +} + +resource "aws_vpc_endpoint_connection_accepter" "this" { + vpc_endpoint_service_id = aws_vpc_endpoint_service.this.id + vpc_endpoint_id = aws_vpc_endpoint.client.id +} + +################################################################################ +# VPC Endpoint +# This allows resources in the client VPC to connect to the EKS cluster API +# endpoint in the EKS VPC without going over the internet, using a VPC peering +# connection, or a transit gateway attachment between VPCs +################################################################################ + +locals { + # Get patterns for subdomain name (index 1) and domain name (index 2) + api_server_url_pattern = regex("(https://)([[:alnum:]]+\\.)(.*)", module.eks.cluster_endpoint) + + # Retrieve the subdomain and domain name of the API server endpoint URL + cluster_endpoint_subdomain = local.api_server_url_pattern[1] + cluster_endpoint_domain = local.api_server_url_pattern[2] +} + +resource "aws_vpc_endpoint" "client" { + vpc_id = module.client_vpc.vpc_id + service_name = resource.aws_vpc_endpoint_service.this.service_name + vpc_endpoint_type = "Interface" + subnet_ids = module.client_vpc.private_subnets + security_group_ids = [resource.aws_security_group.client_vpc_endpoint.id] + + tags = merge(local.tags, + { Name = local.name }, + ) +} + +# Create a new security group that allows TLS traffic on port 443 and let the +# client applications in Client VPC connect to the VPC Endpoint on port 443 +resource "aws_security_group" "client_vpc_endpoint" { + name_prefix = "${local.name}-" + description = "Allow TLS inbound traffic" + vpc_id = module.client_vpc.vpc_id + + ingress { + description = "TLS from VPC" + from_port = 443 + to_port = 443 + protocol = "tcp" + cidr_blocks = [module.client_vpc.vpc_cidr_block] + } + + egress { + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = ["0.0.0.0/0"] + ipv6_cidr_blocks = ["::/0"] + } + + tags = local.tags +} + +resource "aws_route53_zone" "client" { + name = local.cluster_endpoint_domain + comment = "Private hosted zone for EKS API server endpoint" + + vpc { + vpc_id = module.client_vpc.vpc_id + } + + tags = local.tags +} + +resource "aws_route53_record" "client" { + zone_id = resource.aws_route53_zone.client.zone_id + name = "${local.cluster_endpoint_subdomain}${local.cluster_endpoint_domain}" + type = "A" + + alias { + name = resource.aws_vpc_endpoint.client.dns_entry[0].dns_name + zone_id = resource.aws_vpc_endpoint.client.dns_entry[0].hosted_zone_id + evaluate_target_health = true + } +} + +################################################################################ +# Lambda - Create ENI IPs to NLB Target Group +################################################################################ + +locals { + lambda_runtime = "python3.13" +} + +module "create_eni_lambda" { + source = "terraform-aws-modules/lambda/aws" + version = "7.21.1" + + function_name = "${local.name}-add-eni-ips" + description = "Add ENI IPs to NLB target group when EKS API endpoint is created" + handler = "create_eni.handler" + runtime = local.lambda_runtime + publish = true + source_path = "lambdas" + + attach_policy_json = true + policy_json = <<-EOT + { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "elasticloadbalancing:RegisterTargets" + ], + "Resource": ["${module.nlb.target_group_arns[0]}"] + } + ] + } + EOT + + environment_variables = { + TARGET_GROUP_ARN = module.nlb.target_group_arns[0] + } + + allowed_triggers = { + eventbridge = { + principal = "events.amazonaws.com" + source_arn = module.eventbridge.eventbridge_rule_arns["eks-api-endpoint-create"] + } + } + + tags = local.tags +} + +################################################################################ +# Lambda - Delete ENI IPs from NLB Target Group +################################################################################ + +module "delete_eni_lambda" { + source = "terraform-aws-modules/lambda/aws" + version = "~> 5.0" + + function_name = "${local.name}-delete-eni-ips" + description = "Deletes ENI IPs from NLB target group when EKS API endpoint is deleted" + handler = "delete_eni.handler" + runtime = local.lambda_runtime + publish = true + source_path = "lambdas" + + attach_policy_json = true + policy_json = <<-EOT + { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "ec2:DescribeNetworkInterfaces", + "elasticloadbalancing:Describe*" + ], + "Resource": ["*"] + }, + { + "Effect": "Allow", + "Action": [ + "elasticloadbalancing:DeregisterTargets" + ], + "Resource": ["${module.nlb.target_group_arns[0]}"] + } + ] + } + EOT + + environment_variables = { + TARGET_GROUP_ARN = module.nlb.target_group_arns[0] + + # Passing local.name in lieu of module.eks.cluster_name to avoid dependency + EKS_CLUSTER_NAME = local.name + } + + allowed_triggers = { + eventbridge = { + principal = "events.amazonaws.com" + source_arn = module.eventbridge.eventbridge_rule_arns["eks-api-endpoint-delete"] + } + } + + tags = local.tags +} + +################################################################################ +# EventBridge Rules +################################################################################ + +module "eventbridge" { + source = "terraform-aws-modules/eventbridge/aws" + version = "~> 2.0" + + # Use the existing default event bus + create_bus = false + + rules = { + eks-api-endpoint-create = { + event_pattern = jsonencode({ + "source" : ["aws.ec2"], + "detail-type" : ["AWS API Call via CloudTrail"], + "detail" : { + "eventSource" : ["ec2.amazonaws.com"], + "eventName" : ["CreateNetworkInterface"], + "sourceIPAddress" : ["eks.amazonaws.com"], + "responseElements" : { + "networkInterface" : { + "description" : ["Amazon EKS ${local.name}"] + } + } + } + }) + enabled = true + } + + eks-api-endpoint-delete = { + description = "Trigger for a Lambda" + schedule_expression = "rate(15 minutes)" + } + } + + targets = { + eks-api-endpoint-create = [ + { + name = module.create_eni_lambda.lambda_function_name + arn = module.create_eni_lambda.lambda_function_arn + } + ] + eks-api-endpoint-delete = [ + { + name = module.delete_eni_lambda.lambda_function_name + arn = module.delete_eni_lambda.lambda_function_arn + } + ] + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/variables.tf new file mode 100644 index 0000000..e69de29 diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/versions.tf new file mode 100644 index 0000000..f0eef59 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/privatelink-access/input/versions.tf @@ -0,0 +1,25 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.79, < 6.0" + } + dns = { + source = "hashicorp/dns" + version = ">= 3.0" + } + kubernetes = { + source = "hashicorp/kubernetes" + version = ">= 2.20" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/privatelink-access/terraform.tfstate" + # } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/fixture.json new file mode 100644 index 0000000..3e74b21 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/fixture.json @@ -0,0 +1,39 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/sso-iam-identity-center", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "992c9b854cff6d37f086d27456d25a7472c2bbea3c71af4e376f98c2e8bac2e5" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "kubernetes" + ], + "features": [ + "data", + "depends_on", + "for_each", + "for_expressions", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/main.tf new file mode 100644 index 0000000..016c916 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/main.tf @@ -0,0 +1,137 @@ +provider "aws" { + region = local.region +} + +provider "kubernetes" { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = "sso-${basename(path.cwd)}" + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.11" + + cluster_name = local.name + cluster_version = "1.30" + cluster_endpoint_public_access = true + + # EKS Addons + cluster_addons = { + coredns = {} + kube-proxy = {} + vpc-cni = {} + } + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_groups = { + initial = { + instance_types = ["m5.large"] + + min_size = 1 + max_size = 5 + desired_size = 3 + } + } + # Give the Terraform identity admin access to the cluster just for the deployment phase. + # You can revoke this permissions cluster is created since the below referenced "operators" have the same access level + enable_cluster_creator_admin_permissions = true + + # This will set the cluster authentication use API only, meaning that the `aws-auth` configMap will not work on this example. + authentication_mode = "API" + + access_entries = { + # One access entry with a policy associated + operators = { + principal_arn = tolist(data.aws_iam_roles.admin.arns)[0] + + policy_associations = { + operators = { + policy_arn = "arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy" + access_scope = { + type = "cluster" + } + } + } + }, + developers = { + kubernetes_groups = ["eks-developers"] + principal_arn = tolist(data.aws_iam_roles.user.arns)[0] + + policy_associations = { + developers = { + policy_arn = "arn:aws:eks::aws:cluster-access-policy/AmazonEKSViewPolicy" + access_scope = { + namespaces = ["default"] + type = "namespace" + } + } + } + } + } + + tags = local.tags +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + manage_default_vpc = true + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/outputs.tf new file mode 100644 index 0000000..be7127d --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/outputs.tf @@ -0,0 +1,62 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} + +output "configure_sso_admins" { + description = "Example configuration for SSO with provisioned Admin user." + value = < + SSO start URL [None]: https://${tolist(data.aws_ssoadmin_instances.this.identity_store_ids)[0]}.awsapps.com/start + SSO region [None]: ${local.region} + SSO registration scopes [sso:account:access]: + Attempting to automatically open the SSO authorization page in your default browser. + If the browser does not open or you wish to use a different device to authorize this request, open the following URL: + + https://device.sso.${local.region}.amazonaws.com/ + + Then enter the code: + + The only AWS account available to you is: ${data.aws_caller_identity.current.account_id} + Using the account ID ${data.aws_caller_identity.current.account_id} + The only role available to you is: ${aws_ssoadmin_permission_set.admin.name} + Using the role name ${aws_ssoadmin_permission_set.admin.name} + CLI default client Region [${local.region}]: ${local.region} + CLI default output format [json]: json + CLI profile name [${aws_ssoadmin_permission_set.admin.name}-${data.aws_caller_identity.current.account_id}]: + + To use this profile, specify the profile name using --profile, as shown: + + $ aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name} --profile ${aws_ssoadmin_permission_set.admin.name}-${data.aws_caller_identity.current.account_id} +EOT +} + +output "configure_sso_users" { + description = "Example configuration for SSO with provisioned read-only User." + value = < + SSO start URL [None]: https://${tolist(data.aws_ssoadmin_instances.this.identity_store_ids)[0]}.awsapps.com/start + SSO region [None]: ${local.region} + SSO registration scopes [sso:account:access]: + Attempting to automatically open the SSO authorization page in your default browser. + If the browser does not open or you wish to use a different device to authorize this request, open the following URL: + + https://device.sso.${local.region}.amazonaws.com/ + + Then enter the code: + + The only AWS account available to you is: ${data.aws_caller_identity.current.account_id} + Using the account ID ${data.aws_caller_identity.current.account_id} + The only role available to you is: ${aws_ssoadmin_permission_set.user.name} + Using the role name ${aws_ssoadmin_permission_set.user.name} + CLI default client Region [${local.region}]: ${local.region} + CLI default output format [json]: json + CLI profile name [${aws_ssoadmin_permission_set.user.name}-${data.aws_caller_identity.current.account_id}]: + + To use this profile, specify the profile name using --profile, as shown: + + # aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name} --profile ${aws_ssoadmin_permission_set.user.name}-${data.aws_caller_identity.current.account_id} +EOT +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/sso.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/sso.tf new file mode 100644 index 0000000..3adf0a7 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/sso.tf @@ -0,0 +1,167 @@ +# Pre requisite +# Enable AWS IAM Identity Manager (https://console.aws.amazon.com/singlesignon/home/) + +data "aws_caller_identity" "current" {} + +data "aws_ssoadmin_instances" "this" {} + +resource "aws_ssoadmin_permission_set" "admin" { + name = "EKSClusterAdmin" + description = "Amazon EKS Cluster Admins." + instance_arn = tolist(data.aws_ssoadmin_instances.this.arns)[0] + relay_state = "https://s3.console.aws.amazon.com/s3/home?region=${local.region}#" + session_duration = "PT1H" +} + +resource "aws_ssoadmin_permission_set" "user" { + name = "EKSClusterUser" + description = "Amazon EKS Cluster Users." + instance_arn = tolist(data.aws_ssoadmin_instances.this.arns)[0] + relay_state = "https://s3.console.aws.amazon.com/s3/home?region=${local.region}#" + session_duration = "PT1H" +} + +data "aws_iam_policy_document" "admin" { + statement { + sid = "EKSAdmin" + actions = [ + "eks:*" + ] + resources = [ + module.eks.cluster_arn + ] + } + statement { + sid = "AssumeRole" + actions = [ + "sts:AssumeRole" + ] + resources = [ + "*" + ] + } +} + +data "aws_iam_policy_document" "user" { + statement { + sid = "EKSRead" + actions = [ + "eks:List*", + "eks:Describe*", + "eks:AccessKubernetesApi" + ] + resources = [ + module.eks.cluster_arn + ] + } + + statement { + sid = "AssumeRole" + actions = [ + "sts:AssumeRole" + ] + resources = [ + "*" + ] + } +} + +resource "aws_ssoadmin_permission_set_inline_policy" "admin" { + inline_policy = data.aws_iam_policy_document.admin.json + instance_arn = tolist(data.aws_ssoadmin_instances.this.arns)[0] + permission_set_arn = aws_ssoadmin_permission_set.admin.arn +} + +resource "aws_ssoadmin_permission_set_inline_policy" "user" { + inline_policy = data.aws_iam_policy_document.user.json + instance_arn = tolist(data.aws_ssoadmin_instances.this.arns)[0] + permission_set_arn = aws_ssoadmin_permission_set.user.arn +} + +resource "aws_ssoadmin_managed_policy_attachment" "admin" { + instance_arn = tolist(data.aws_ssoadmin_instances.this.arns)[0] + managed_policy_arn = "arn:aws:iam::aws:policy/PowerUserAccess" + permission_set_arn = aws_ssoadmin_permission_set.admin.arn +} + +resource "aws_ssoadmin_managed_policy_attachment" "user" { + instance_arn = tolist(data.aws_ssoadmin_instances.this.arns)[0] + managed_policy_arn = "arn:aws:iam::aws:policy/job-function/ViewOnlyAccess" + permission_set_arn = aws_ssoadmin_permission_set.user.arn +} + +resource "aws_identitystore_user" "admin" { + for_each = { for admin in var.admin_user_config : admin.email => admin } + + identity_store_id = tolist(data.aws_ssoadmin_instances.this.identity_store_ids)[0] + display_name = "${each.value.given_name} ${each.value.family_name}" + user_name = each.value.email + + name { + family_name = each.value.family_name + given_name = each.value.given_name + } +} + +resource "aws_identitystore_user" "user" { + for_each = { for user in var.user_config : user.email => user } + + identity_store_id = tolist(data.aws_ssoadmin_instances.this.identity_store_ids)[0] + display_name = "${each.value.given_name} ${each.value.family_name}" + user_name = each.value.email + + name { + family_name = each.value.family_name + given_name = each.value.given_name + } +} + +resource "aws_identitystore_group" "operators" { + identity_store_id = tolist(data.aws_ssoadmin_instances.this.identity_store_ids)[0] + display_name = "eks-operators" + description = "EKS Operators Cluster Group" +} + +resource "aws_identitystore_group" "developers" { + identity_store_id = tolist(data.aws_ssoadmin_instances.this.identity_store_ids)[0] + display_name = "eks-developers" + description = "EKS Developers Cluster Group" +} + +resource "aws_identitystore_group_membership" "operators" { + for_each = { for admin in var.admin_user_config : admin.email => admin } + + identity_store_id = tolist(data.aws_ssoadmin_instances.this.identity_store_ids)[0] + group_id = aws_identitystore_group.operators.group_id + member_id = aws_identitystore_user.admin[each.key].user_id +} + +resource "aws_identitystore_group_membership" "developers" { + for_each = { for user in var.user_config : user.email => user } + + identity_store_id = tolist(data.aws_ssoadmin_instances.this.identity_store_ids)[0] + group_id = aws_identitystore_group.developers.group_id + member_id = aws_identitystore_user.user[each.key].user_id +} + +resource "aws_ssoadmin_account_assignment" "operators" { + instance_arn = tolist(data.aws_ssoadmin_instances.this.arns)[0] + permission_set_arn = aws_ssoadmin_permission_set.admin.arn + + principal_id = aws_identitystore_group.operators.group_id + principal_type = "GROUP" + + target_id = data.aws_caller_identity.current.account_id + target_type = "AWS_ACCOUNT" +} + +resource "aws_ssoadmin_account_assignment" "developer" { + instance_arn = tolist(data.aws_ssoadmin_instances.this.arns)[0] + permission_set_arn = aws_ssoadmin_permission_set.user.arn + + principal_id = aws_identitystore_group.developers.group_id + principal_type = "GROUP" + + target_id = data.aws_caller_identity.current.account_id + target_type = "AWS_ACCOUNT" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/teams.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/teams.tf new file mode 100644 index 0000000..113378d --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/teams.tf @@ -0,0 +1,148 @@ + +# Here why these datasources are needed: +# https://docs.aws.amazon.com/singlesignon/latest/userguide/referencingpermissionsets.html +# https://repost.aws/knowledge-center/eks-configure-sso-user + +data "aws_iam_roles" "admin" { + name_regex = "AWSReservedSSO_EKSClusterAdmin_.*" + path_prefix = "/aws-reserved/sso.amazonaws.com/" + + depends_on = [ + aws_ssoadmin_account_assignment.operators, + ] +} + +data "aws_iam_roles" "user" { + name_regex = "AWSReservedSSO_EKSClusterUser_.*" + path_prefix = "/aws-reserved/sso.amazonaws.com/" + + depends_on = [ + aws_ssoadmin_account_assignment.developer + ] +} + +module "developers_team" { + source = "aws-ia/eks-blueprints-teams/aws" + version = "1.1.0" + + name = "eks-developers" + + cluster_arn = module.eks.cluster_arn + oidc_provider_arn = module.eks.oidc_provider_arn + + create_iam_role = false + principal_arns = data.aws_iam_roles.user.arns + + labels = { + team = "development" + } + + annotations = { + team = "development" + } + + namespaces = { + development = { + labels = { + projectName = "project-awesome", + } + + resource_quota = { + hard = { + "requests.cpu" = "1000m", + "requests.memory" = "4Gi", + "limits.cpu" = "2000m", + "limits.memory" = "8Gi", + "pods" = "10", + "secrets" = "10", + "services" = "10" + } + } + + limit_range = { + limit = [ + { + type = "Pod" + max = { + cpu = "200m" + memory = "1Gi" + } + }, + { + type = "PersistentVolumeClaim" + min = { + storage = "24M" + } + }, + { + type = "Container" + default = { + cpu = "50m" + memory = "24Mi" + } + } + ] + } + + network_policy = { + pod_selector = { + match_expressions = [{ + key = "name" + operator = "In" + values = ["webfront", "api"] + }] + } + + ingress = [{ + ports = [ + { + port = "http" + protocol = "TCP" + }, + { + port = "53" + protocol = "TCP" + }, + { + port = "53" + protocol = "UDP" + } + ] + + from = [ + { + namespace_selector = { + match_labels = { + name = "default" + } + } + }, + { + ip_block = { + cidr = "10.0.0.0/8" + except = [ + "10.0.0.0/24", + "10.0.1.0/24", + ] + } + } + ] + }] + + egress = [] # single empty rule to allow all egress traffic + + policy_types = ["Ingress", "Egress"] + } + } + } + + tags = { + Environment = "dev" + } + + depends_on = [ + data.aws_iam_roles.admin, + data.aws_iam_roles.user + ] + +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/variables.tf new file mode 100644 index 0000000..3d49bd5 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/variables.tf @@ -0,0 +1,33 @@ +variable "admin_user_config" { + description = "Configuration for Platform Admin Users." + type = list(object({ + family_name = string + given_name = string + email = string + })) + default = [{ + family_name = "Admin" + given_name = "Platform" + email = "admin@example.com" + }] +} + +variable "user_config" { + description = "Configuration for Developer Users." + type = list(object({ + family_name = string + given_name = string + email = string + })) + default = [{ + family_name = "User1" + given_name = "Developer" + email = "user1@example.com" + }, + { + family_name = "User2" + given_name = "Developer" + email = "user2@example.com" + } + ] +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/versions.tf new file mode 100644 index 0000000..618f399 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-iam-identity-center/input/versions.tf @@ -0,0 +1,14 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + kubernetes = { + source = "hashicorp/kubernetes" + version = ">= 2.20" + } + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/fixture.json new file mode 100644 index 0000000..5d74d7c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/fixture.json @@ -0,0 +1,39 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/sso-okta", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "a797e0a800b46ed41e5170be1a25312838d393b006a30d9ff89b654869ed6e7a" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "kubernetes", + "okta" + ], + "features": [ + "data", + "for_each", + "for_expressions", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/input/main.tf new file mode 100644 index 0000000..07ca439 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/input/main.tf @@ -0,0 +1,99 @@ +provider "aws" { + region = local.region +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.11" + + cluster_name = local.name + cluster_version = "1.30" + cluster_endpoint_public_access = true + + # EKS Addons + cluster_addons = { + coredns = {} + kube-proxy = {} + vpc-cni = {} + } + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + cluster_identity_providers = { + okta = { + name = "Okta" + issuer_url = okta_auth_server.eks.issuer + client_id = okta_app_oauth.eks.client_id + username_claim = "email" + groups_claim = "groups" + } + } + + eks_managed_node_groups = { + initial = { + instance_types = ["m5.large"] + + min_size = 1 + max_size = 5 + desired_size = 3 + } + } + + tags = local.tags +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + manage_default_vpc = true + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/input/okta.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/input/okta.tf new file mode 100644 index 0000000..855e7f2 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/input/okta.tf @@ -0,0 +1,163 @@ +# You can generate an Okta API token in the Okta Developer Console. Follow these instructions: https://bit.ly/get-okta-api-token + +provider "okta" { + org_name = "dev-" + base_url = "okta.com" + api_token = "" +} + +provider "kubernetes" { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } +} + +resource "okta_user" "admin" { + for_each = { for admin in var.admin_user_config : admin.email => admin } + + first_name = each.value.first_name + last_name = each.value.last_name + login = each.value.email + email = each.value.email +} + +resource "okta_user" "user" { + for_each = { for user in var.user_config : user.email => user } + + first_name = each.value.first_name + last_name = each.value.last_name + login = each.value.email + email = each.value.email +} + +resource "okta_group" "operators" { + name = "eks-operators" + description = "EKS Platform Operators" +} + +resource "okta_group" "developers" { + name = "eks-developers" + description = "EKS Platform Developers" +} + +resource "okta_group_memberships" "operators" { + for_each = { for admin in var.admin_user_config : admin.email => admin } + + group_id = okta_group.operators.id + users = [ + okta_user.admin[each.key].id + ] +} + +resource "okta_group_memberships" "developers" { + for_each = { for user in var.user_config : user.email => user } + + group_id = okta_group.developers.id + users = [ + okta_user.user[each.key].id + ] +} + +resource "okta_app_oauth" "eks" { + label = "eks" + type = "native" + grant_types = ["authorization_code"] + redirect_uris = ["http://localhost:8000"] + post_logout_redirect_uris = ["http://localhost:8000"] + token_endpoint_auth_method = "none" + response_types = ["code"] + issuer_mode = "DYNAMIC" + pkce_required = true + groups_claim { + name = "groups" + type = "FILTER" + filter_type = "STARTS_WITH" + value = "eks-" + } +} + +resource "okta_app_group_assignments" "eks" { + app_id = okta_app_oauth.eks.id + group { + id = okta_group.operators.id + } + group { + id = okta_group.developers.id + } +} + +resource "okta_auth_server" "eks" { + name = "EKS" + audiences = ["http://localhost:8000"] + description = "EKS Auth Server" + issuer_mode = "ORG_URL" + status = "ACTIVE" +} + +resource "okta_auth_server_claim" "eks_groups" { + name = "groups" + auth_server_id = okta_auth_server.eks.id + always_include_in_token = true + claim_type = "IDENTITY" + value_type = "GROUPS" + group_filter_type = "STARTS_WITH" + value = "eks-" +} + +resource "okta_auth_server_policy" "eks" { + name = "eks" + auth_server_id = okta_auth_server.eks.id + description = "EKS" + status = "ACTIVE" + priority = 1 + client_whitelist = [okta_app_oauth.eks.id] +} + +resource "okta_auth_server_policy_rule" "auth_code" { + name = "EKS AuthCode + PKCE" + auth_server_id = okta_auth_server.eks.id + policy_id = okta_auth_server_policy.eks.id + status = "ACTIVE" + priority = 1 + grant_type_whitelist = ["authorization_code"] + group_whitelist = [okta_group.operators.id, okta_group.developers.id] + scope_whitelist = ["*"] +} + +resource "kubernetes_cluster_role_binding_v1" "cluster_admin" { + metadata { + name = "oidc-cluster-admin" + } + role_ref { + api_group = "rbac.authorization.k8s.io" + kind = "ClusterRole" + name = "cluster-admin" + } + subject { + kind = "Group" + name = "eks-operators" + api_group = "rbac.authorization.k8s.io" + } +} + +resource "kubernetes_cluster_role_binding_v1" "cluster_viewer" { + metadata { + name = "oidc-cluster-viewer" + } + role_ref { + api_group = "rbac.authorization.k8s.io" + kind = "ClusterRole" + name = "view" + } + subject { + kind = "Group" + name = "eks-developers" + api_group = "rbac.authorization.k8s.io" + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/input/outputs.tf new file mode 100644 index 0000000..7ad4299 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/sso-okta/input/outputs.tf @@ -0,0 +1,23 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} + +output "okta_login" { + description = "Setup OIDC Login for OKTA." + value = "kubectl oidc-login setup --oidc-issuer-url=${okta_auth_server.eks.issuer} --oidc-client-id=${okta_app_oauth.eks.id}" +} + +output "configure_kubeconfig" { + description = "Update kubeconfig with OKTA OIDC parameters." + value = < { subnet_id = v } + } + security_group_description = "${local.name} EFS security group" + security_group_vpc_id = module.vpc.vpc_id + security_group_rules = { + vpc = { + # relying on the defaults provided for EFS/NFS (2049/TCP + ingress) + description = "NFS ingress from VPC private subnets" + cidr_blocks = module.vpc.private_subnets_cidr_blocks + } + } + + tags = local.tags +} + +module "ebs_kms_key" { + source = "terraform-aws-modules/kms/aws" + version = "~> 1.5" + + description = "Customer managed key to encrypt EKS managed node group volumes" + + # Policy + key_administrators = [data.aws_caller_identity.current.arn] + key_service_roles_for_autoscaling = [ + # required for the ASG to manage encrypted volumes for nodes + "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling", + # required for the cluster / persistentvolume-controller to create encrypted PVCs + module.eks.cluster_iam_role_arn, + ] + + # Aliases + aliases = ["eks/${local.name}/ebs"] + + tags = local.tags +} + +module "ebs_csi_driver_irsa" { + source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks" + version = "~> 5.20" + + role_name_prefix = "${module.eks.cluster_name}-ebs-csi-driver-" + + attach_ebs_csi_policy = true + + oidc_providers = { + main = { + provider_arn = module.eks.oidc_provider_arn + namespace_service_accounts = ["kube-system:ebs-csi-controller-sa"] + } + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/input/outputs.tf new file mode 100644 index 0000000..45e5f23 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/input/outputs.tf @@ -0,0 +1,9 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} + +output "velero_s3_backup_location" { + description = "S3 backup location" + value = local.velero_s3_backup_location +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/input/variables.tf new file mode 100644 index 0000000..e69de29 diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/input/versions.tf new file mode 100644 index 0000000..6b8ffa0 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/stateful/input/versions.tf @@ -0,0 +1,25 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + kubernetes = { + source = "hashicorp/kubernetes" + version = ">= 2.20" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/stateful/terraform.tfstate" + # } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/fixture.json new file mode 100644 index 0000000..7d41343 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/targeted-odcr", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "068b2fccf6b489c68e21a2c18ec3c9fa3dc2d6a25973498f465691fa6b9aa97a" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm" + ], + "features": [ + "count", + "data", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/input/eks.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/input/eks.tf new file mode 100644 index 0000000..b816e05 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/input/eks.tf @@ -0,0 +1,162 @@ +################################################################################ +# Required Input +################################################################################ + +variable "capacity_reservation_arns" { + description = "List of on-demand capacity block reservation ARNs for the node group" + type = list(string) +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.34" + + cluster_name = local.name + cluster_version = "1.32" + + # Give the Terraform identity admin access to the cluster + # which will allow it to deploy resources into the cluster + enable_cluster_creator_admin_permissions = true + cluster_endpoint_public_access = true + + # These will become the default in the next major version of the module + bootstrap_self_managed_addons = false + enable_irsa = false + enable_security_groups_for_pods = false + + cluster_addons = { + coredns = {} + eks-node-monitoring-agent = {} + eks-pod-identity-agent = { + before_compute = true + } + kube-proxy = {} + vpc-cni = { + most_recent = true + before_compute = true + } + } + + # Add security group rules on the node group security group to + # allow EFA traffic + enable_efa_support = true + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_group_defaults = { + node_repair_config = { + enabled = true + } + } + + eks_managed_node_groups = { + odcr = { + # The EKS AL2023 NVIDIA AMI provides all of the necessary components + # for accelerated workloads w/ EFA + ami_type = "AL2023_x86_64_NVIDIA" + instance_types = ["p5.48xlarge"] + + # Mount instance store volumes in RAID-0 for kubelet and containerd + # https://github.com/awslabs/amazon-eks-ami/blob/master/doc/USER_GUIDE.md#raid-0-for-kubelet-and-containerd-raid0 + cloudinit_pre_nodeadm = [ + { + content_type = "application/node.eks.aws" + content = <<-EOT + --- + apiVersion: node.eks.aws/v1alpha1 + kind: NodeConfig + spec: + instance: + localStorage: + strategy: RAID0 + EOT + } + ] + + min_size = 2 + max_size = 2 + desired_size = 2 + + # This will: + # 1. Create a placement group to place the instances close to one another + # 2. Ignore subnets that reside in AZs that do not support the instance type + # 3. Expose all of the available EFA interfaces on the launch template + enable_efa_support = true + + min_size = 4 + max_size = 5 + desired_size = 2 + + labels = { + "vpc.amazonaws.com/efa.present" = "true" + "nvidia.com/gpu.present" = "true" + } + + taints = { + # Ensure only GPU workloads are scheduled on this node group + gpu = { + key = "nvidia.com/gpu" + value = "true" + effect = "NO_SCHEDULE" + } + } + + # First subnet is in the "${local.region}a" availability zone + # where the capacity reservation is created + # TODO - Update the subnet to match the availability zone of *YOUR capacity reservation + subnet_ids = [element(module.vpc.private_subnets, 0)] + + # Targeted on-demand capacity reservation + capacity_reservation_specification = { + capacity_reservation_target = { + capacity_reservation_resource_group_arn = aws_resourcegroups_group.odcr.arn + } + } + } + + # This node group is for core addons such as CoreDNS + default = { + instance_types = ["m5.large"] + + min_size = 1 + max_size = 2 + desired_size = 2 + } + } + + tags = local.tags +} + +################################################################################ +# Resource Group +################################################################################ + +resource "aws_resourcegroups_group" "odcr" { + name = "${local.name}-p5-odcr" + description = "P5 instance on-demand capacity reservations" + + configuration { + type = "AWS::EC2::CapacityReservationPool" + } + + configuration { + type = "AWS::ResourceGroups::Generic" + + parameters { + name = "allowed-resource-types" + values = ["AWS::EC2::CapacityReservation"] + } + } +} + +resource "aws_resourcegroups_resource" "odcr" { + count = length(var.capacity_reservation_arns) + + group_arn = aws_resourcegroups_group.odcr.arn + resource_arn = element(var.capacity_reservation_arns, count.index) +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/input/helm.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/input/helm.tf new file mode 100644 index 0000000..8d11e73 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/input/helm.tf @@ -0,0 +1,33 @@ +################################################################################ +# Helm charts +################################################################################ + +resource "helm_release" "nvidia_device_plugin" { + name = "nvidia-device-plugin" + repository = "https://nvidia.github.io/k8s-device-plugin" + chart = "nvidia-device-plugin" + version = "0.17.1" + namespace = "nvidia-device-plugin" + create_namespace = true + wait = false +} + +resource "helm_release" "aws_efa_device_plugin" { + name = "aws-efa-k8s-device-plugin" + repository = "https://aws.github.io/eks-charts" + chart = "aws-efa-k8s-device-plugin" + version = "v0.5.7" + namespace = "kube-system" + wait = false + + values = [ + <<-EOT + nodeSelector: + vpc.amazonaws.com/efa.present: 'true' + tolerations: + - key: nvidia.com/gpu + operator: Exists + effect: NoSchedule + EOT + ] +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/input/main.tf new file mode 100644 index 0000000..50ffcd1 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/targeted-odcr/input/main.tf @@ -0,0 +1,102 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/targeted-odcr/terraform.tfstate" + # } +} + +provider "aws" { + region = local.region +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +################################################################################ +# Common data/locals +################################################################################ + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Output +################################################################################ + +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/fixture.json new file mode 100644 index 0000000..c40c9ff --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/tls-with-aws-pca-issuer", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "a5230a35faef86f4875bd82687ed944379a0d307cc02876dd1f9a92b532ddd1f" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm", + "kubectl" + ], + "features": [ + "data", + "depends_on", + "functions", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/main.tf new file mode 100644 index 0000000..4c56439 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/main.tf @@ -0,0 +1,264 @@ +provider "aws" { + region = local.region +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +provider "kubectl" { + apply_retry_count = 5 + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + load_config_file = false + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } +} + +data "aws_availability_zones" "available" { + # Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + vpc_cidr = "10.0.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} + +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.11" + + cluster_name = local.name + cluster_version = "1.30" + cluster_endpoint_public_access = true + + # Give the Terraform identity admin access to the cluster + # which will allow resources to be deployed into the cluster + enable_cluster_creator_admin_permissions = true + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_groups = { + initial = { + instance_types = ["m5.large"] + + min_size = 1 + max_size = 5 + desired_size = 2 + } + } + + tags = local.tags +} + +################################################################################ +# EKS Blueprints Addons +################################################################################ + +module "eks_blueprints_addons" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.16" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + # EKS Add-on + eks_addons = { + coredns = {} + vpc-cni = {} + kube-proxy = {} + } + + # Add-ons + enable_cert_manager = true + enable_aws_privateca_issuer = true + aws_privateca_issuer = { + acmca_arn = aws_acmpca_certificate_authority.this.arn + namespace = "aws-privateca-issuer" + create_namespace = true + } + + helm_releases = { + cert-manager-csi-driver = { + description = "Cert Manager CSI Driver Add-on" + chart = "cert-manager-csi-driver" + namespace = "cert-manager" + chart_version = "v0.5.0" + repository = "https://charts.jetstack.io" + } + } + + tags = local.tags +} + +#------------------------------- +# Associates a certificate with an AWS Certificate Manager Private Certificate Authority (ACM PCA Certificate Authority). +# An ACM PCA Certificate Authority is unable to issue certificates until it has a certificate associated with it. +# A root level ACM PCA Certificate Authority is able to self-sign its own root certificate. +#------------------------------- + +resource "aws_acmpca_certificate_authority" "this" { + type = "ROOT" + + certificate_authority_configuration { + key_algorithm = "RSA_4096" + signing_algorithm = "SHA512WITHRSA" + + subject { + common_name = var.certificate_dns + } + } + + tags = local.tags +} + +resource "aws_acmpca_certificate" "this" { + certificate_authority_arn = aws_acmpca_certificate_authority.this.arn + certificate_signing_request = aws_acmpca_certificate_authority.this.certificate_signing_request + signing_algorithm = "SHA512WITHRSA" + + template_arn = "arn:aws:acm-pca:::template/RootCACertificate/V1" + + validity { + type = "YEARS" + value = 10 + } +} + +resource "aws_acmpca_certificate_authority_certificate" "this" { + certificate_authority_arn = aws_acmpca_certificate_authority.this.arn + + certificate = aws_acmpca_certificate.this.certificate + certificate_chain = aws_acmpca_certificate.this.certificate_chain +} + +#------------------------------- +# This resource creates a CRD of AWSPCAClusterIssuer Kind, which then represents the ACM PCA in K8 +#------------------------------- + +# Using kubectl to workaround kubernetes provider issue https://github.com/hashicorp/terraform-provider-kubernetes/issues/1453 +resource "kubectl_manifest" "cluster_pca_issuer" { + yaml_body = yamlencode({ + apiVersion = "awspca.cert-manager.io/v1beta1" + kind = "AWSPCAClusterIssuer" + + metadata = { + name = module.eks.cluster_name + } + + spec = { + arn = aws_acmpca_certificate_authority.this.arn + region : local.region + } + }) + + depends_on = [ + module.eks_blueprints_addons + ] +} + +#------------------------------- +# This resource creates a CRD of Certificate Kind, which then represents certificate issued from ACM PCA, +# mounted as K8 secret +#------------------------------- + +# Using kubectl to workaround kubernetes provider issue https://github.com/hashicorp/terraform-provider-kubernetes/issues/1453 +resource "kubectl_manifest" "pca_certificate" { + yaml_body = yamlencode({ + apiVersion = "cert-manager.io/v1" + kind = "Certificate" + + metadata = { + name = var.certificate_name + namespace = "default" + } + + spec = { + commonName = var.certificate_dns + duration = "2160h0m0s" + issuerRef = { + group = "awspca.cert-manager.io" + kind = "AWSPCAClusterIssuer" + name : module.eks.cluster_name + } + renewBefore = "360h0m0s" + secretName = join("-", [var.certificate_name, "clusterissuer"]) # This is the name with which the K8 Secret will be available + usages = [ + "server auth", + "client auth" + ] + privateKey = { + algorithm : "RSA" + size : 2048 + } + } + }) + + depends_on = [ + kubectl_manifest.cluster_pca_issuer, + ] +} + +################################################################################ +# Supporting Resources +################################################################################ + +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/outputs.tf new file mode 100644 index 0000000..c624023 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/outputs.tf @@ -0,0 +1,4 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks --region ${local.region} update-kubeconfig --name ${module.eks.cluster_name}" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/variables.tf new file mode 100644 index 0000000..29e82c3 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/variables.tf @@ -0,0 +1,11 @@ +variable "certificate_name" { + type = string + description = "name for the certificate" + default = "example" +} + +variable "certificate_dns" { + type = string + description = "CommonName used in the Certificate, usually DNS " + default = "example.com" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/versions.tf new file mode 100644 index 0000000..192f5d3 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/tls-with-aws-pca-issuer/input/versions.tf @@ -0,0 +1,25 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + kubectl = { + source = "alekc/kubectl" + version = ">= 2.0" + } + } + + # ## Used for end-to-end testing on project; update to suit your needs + # backend "s3" { + # bucket = "terraform-ssp-github-actions-state" + # region = "us-west-2" + # key = "e2e/tls-with-aws-pca-issuer/terraform.tfstate" + # } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/fixture.json new file mode 100644 index 0000000..5827df3 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/vpc-lattice/client-server-communication", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "14d85aad68ed4177f3ac77b8e6b5fe926a37c069cd50903a2d770a7a353d0813" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm", + "time" + ], + "features": [ + "data", + "depends_on", + "for_expressions", + "functions", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/client.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/client.tf new file mode 100644 index 0000000..0e95d1c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/client.tf @@ -0,0 +1,101 @@ +################################################################################ +# Client application (with private access over SSM Systems Manager) +################################################################################ + +module "client" { + source = "terraform-aws-modules/ec2-instance/aws" + version = "~> 5.0" + + name = "client" + + instance_type = "t2.micro" + subnet_id = module.client_vpc.private_subnets[0] + create_iam_instance_profile = true + iam_role_description = "IAM role for client" + iam_role_policies = { + AmazonSSMManagedInstanceCore = "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore" + } + vpc_security_group_ids = [module.client_sg.security_group_id] + + tags = local.tags +} + +module "vpc_endpoints" { + source = "terraform-aws-modules/vpc/aws//modules/vpc-endpoints" + version = "~> 5.0" + + vpc_id = module.client_vpc.vpc_id + + endpoints = { for service in toset(["ssm", "ssmmessages", "ec2messages"]) : + replace(service, ".", "_") => + { + service = service + subnet_ids = module.client_vpc.private_subnets + private_dns_enabled = true + tags = { Name = "${local.name}-${service}" } + } + } + + security_group_ids = [module.endpoint_sg.security_group_id] + + tags = local.tags +} + +module "client_sg" { + source = "terraform-aws-modules/security-group/aws" + version = "~> 5.0" + + name = "client" + description = "Security Group for EC2 Instance Egress" + + vpc_id = module.client_vpc.vpc_id + + egress_with_cidr_blocks = [ + { + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = "0.0.0.0/0" + }, + ] + + tags = local.tags +} + +module "endpoint_sg" { + source = "terraform-aws-modules/security-group/aws" + version = "~> 5.0" + + name = "ssm-endpoint" + description = "Security Group for EC2 Instance Egress" + + vpc_id = module.client_vpc.vpc_id + + ingress_with_cidr_blocks = [for subnet in module.client_vpc.private_subnets_cidr_blocks : + { + from_port = 443 + to_port = 443 + protocol = "TCP" + cidr_blocks = subnet + } + ] + + tags = local.tags +} + +################################################################################ +# Client VPC +################################################################################ + +module "client_vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.client_vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.client_vpc_cidr, 4, k)] + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/eks.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/eks.tf new file mode 100644 index 0000000..5742e97 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/eks.tf @@ -0,0 +1,200 @@ +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.11" + + cluster_name = local.name + cluster_version = "1.30" + cluster_endpoint_public_access = true + + # Give the Terraform identity admin access to the cluster + # which will allow resources to be deployed into the cluster + enable_cluster_creator_admin_permissions = true + + vpc_id = module.cluster_vpc.vpc_id + subnet_ids = module.cluster_vpc.private_subnets + + eks_managed_node_groups = { + initial = { + instance_types = ["m5.large"] + + min_size = 3 + max_size = 10 + desired_size = 3 + } + } + + tags = local.tags +} + +################################################################################ +# Cluster VPC +################################################################################ + +module "cluster_vpc" { + source = "terraform-aws-modules/vpc/aws" + version = "~> 5.0" + + name = local.name + cidr = local.cluster_vpc_cidr + + azs = local.azs + private_subnets = [for k, v in local.azs : cidrsubnet(local.cluster_vpc_cidr, 4, k)] + public_subnets = [for k, v in local.azs : cidrsubnet(local.cluster_vpc_cidr, 8, k + 48)] + + enable_nat_gateway = true + single_nat_gateway = true + + public_subnet_tags = { + "kubernetes.io/role/elb" = 1 + } + + private_subnet_tags = { + "kubernetes.io/role/internal-elb" = 1 + } + + tags = local.tags +} + +################################################################################ +# EKS Addons (AWS Gateway API Controller) +################################################################################ + +module "addons" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.16" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + enable_aws_gateway_api_controller = true + aws_gateway_api_controller = { + chart_version = "v1.0.3" + create_namespace = true + namespace = "aws-application-networking-system" + source_policy_documents = [data.aws_iam_policy_document.gateway_api_controller.json] + set = [ + { + name = "clusterName" + value = module.eks.cluster_name + }, + { + name = "log.level" + value = "debug" + }, + { + name = "clusterVpcId" + value = module.cluster_vpc.vpc_id + }, + { + name = "defaultServiceNetwork" + value = "" + }, + { + name = "latticeEndpoint" + value = "https://vpc-lattice.${local.region}.amazonaws.com" + } + ] + wait = true + } + enable_external_dns = true + external_dns_route53_zone_arns = try([aws_route53_zone.primary.arn], []) + external_dns = { + set = [ + { + name = "domainFilters[0]" + value = "example.com" + }, + { + name = "policy" + value = "sync" + }, + { + name = "sources[0]" + value = "crd" + }, + { + name = "sources[1]" + value = "ingress" + }, + { + name = "txtPrefix" + value = module.eks.cluster_name + }, + { + name = "extraArgs[0]" + value = "--crd-source-apiversion=externaldns.k8s.io/v1alpha1" + }, + { + name = "extraArgs[1]" + value = "--crd-source-kind=DNSEndpoint" + }, + { + name = "crdSourceApiversion" + value = "externaldns.k8s.io/v1alpha1" + }, + { + name = "crdSourceKind" + value = "DNSEndpoint" + } + ] + } + + tags = local.tags +} + +data "aws_iam_policy_document" "gateway_api_controller" { + statement { + sid = "" + effect = "Allow" + resources = ["*"] # For testing purposes only (highly recommended limit access to specific resources for production usage) + + actions = [ + "vpc-lattice:*", + "iam:CreateServiceLinkedRole", + "ec2:DescribeVpcs", + "ec2:DescribeSubnets", + "ec2:DescribeTags", + "ec2:DescribeSecurityGroups", + "logs:CreateLogDelivery", + "logs:GetLogDelivery", + "logs:UpdateLogDelivery", + "logs:DeleteLogDelivery", + "logs:ListLogDeliveries", + "tag:GetResources", + ] + } +} + +################################################################################ +# Demo applications +################################################################################ + +resource "helm_release" "demo_application" { + name = "demo-application" + chart = "./charts/demo-application" + create_namespace = true + namespace = "apps" + + depends_on = [module.addons] +} + +################################################################################ +# Update cluster security group to allow access from VPC Lattice +################################################################################ + +data "aws_ec2_managed_prefix_list" "vpc_lattice_ipv4" { + name = "com.amazonaws.${local.region}.vpc-lattice" +} + +resource "aws_vpc_security_group_ingress_rule" "cluster_sg_ingress" { + security_group_id = module.eks.node_security_group_id + + prefix_list_id = data.aws_ec2_managed_prefix_list.vpc_lattice_ipv4.id + ip_protocol = "-1" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/lattice.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/lattice.tf new file mode 100644 index 0000000..c8ddd7f --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/lattice.tf @@ -0,0 +1,42 @@ +################################################################################ +# VPC Lattice service network +################################################################################ + +resource "aws_vpclattice_service_network" "this" { + name = "my-services" + auth_type = "NONE" + + tags = local.tags +} + +resource "aws_vpclattice_service_network_vpc_association" "cluster_vpc" { + vpc_identifier = module.cluster_vpc.vpc_id + service_network_identifier = aws_vpclattice_service_network.this.id +} + +resource "aws_vpclattice_service_network_vpc_association" "client_vpc" { + vpc_identifier = module.client_vpc.vpc_id + service_network_identifier = aws_vpclattice_service_network.this.id +} + +resource "time_sleep" "wait_for_lattice_resources" { + depends_on = [helm_release.demo_application] + + create_duration = "120s" +} + +################################################################################ +# Custom domain name for VPC lattice service +# Records will be created by external-dns using DNSEndpoint objects which +# are created by the VPC Lattice gateway api controller when creating HTTPRoutes +################################################################################ + +resource "aws_route53_zone" "primary" { + name = "example.com" + + vpc { + vpc_id = module.client_vpc.vpc_id + } + + tags = local.tags +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/main.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/main.tf new file mode 100644 index 0000000..2f15f5a --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/main.tf @@ -0,0 +1,39 @@ +provider "aws" { + region = local.region +} + +data "aws_availability_zones" "available" { + #Do not include local zones + filter { + name = "opt-in-status" + values = ["opt-in-not-required"] + } +} + +provider "helm" { + kubernetes { + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) + + exec { + api_version = "client.authentication.k8s.io/v1beta1" + command = "aws" + # This requires the awscli to be installed locally where Terraform is executed + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] + } + } +} + +locals { + name = basename(path.cwd) + region = "us-west-2" + + cluster_vpc_cidr = "10.0.0.0/16" + client_vpc_cidr = "10.1.0.0/16" + azs = slice(data.aws_availability_zones.available.names, 0, 3) + + tags = { + Blueprint = local.name + GithubRepo = "github.com/aws-ia/terraform-aws-eks-blueprints" + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/outputs.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/outputs.tf new file mode 100644 index 0000000..c952ef9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/outputs.tf @@ -0,0 +1,4 @@ +output "configure_kubectl" { + description = "Configure kubectl: make sure you're logged in with the correct AWS profile and run the following command to update your kubeconfig" + value = "aws eks update-kubeconfig --name ${module.eks.cluster_name} --alias ${module.eks.cluster_name} --region ${local.region}" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/variables.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/variables.tf new file mode 100644 index 0000000..e69de29 diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/versions.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/versions.tf new file mode 100644 index 0000000..96f1e85 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/client-server-communication/input/versions.tf @@ -0,0 +1,18 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.34, < 6.0" + } + helm = { + source = "hashicorp/helm" + version = ">= 2.9, < 3.0" + } + time = { + source = "hashicorp/time" + version = ">= 0.10" + } + } +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/LICENSE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/NOTICE b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/NOTICE new file mode 100644 index 0000000..919c27c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/NOTICE @@ -0,0 +1,7 @@ +Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at + + http://aws.amazon.com/apache2.0/ + +or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/fixture.json b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/fixture.json new file mode 100644 index 0000000..96f9fc3 --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/aws-ia/terraform-aws-eks-blueprints", + "ref": "fc40e64615785b3dc4db88e57c45a6687ca026b5", + "path": "patterns/vpc-lattice/cross-cluster-pod-communication/cluster", + "archiveSha256": "3417eb0a237d4bb333e768c388dfd911f0f9bf1ba0f1ba20a1fe5aebba0bdf9f", + "inputSha256": "3f4ddddbf5b523482976c37904ad7fd1522bd829e788b8bcd9a59756e74261c5" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm", + "terraform" + ], + "features": [ + "data", + "depends_on", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/input/eks.tf b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/input/eks.tf new file mode 100644 index 0000000..f09477c --- /dev/null +++ b/conformance/fixtures/github/aws-ia/terraform-aws-eks-blueprints/fc40e646/patterns/vpc-lattice/cross-cluster-pod-communication/cluster/input/eks.tf @@ -0,0 +1,260 @@ +################################################################################ +# Cluster +################################################################################ + +module "eks" { + source = "terraform-aws-modules/eks/aws" + version = "~> 20.8" + + cluster_name = local.name + cluster_version = "1.30" + cluster_endpoint_public_access = true + + # Give the Terraform identity admin access to the cluster + # which will allow resources to be deployed into the cluster + enable_cluster_creator_admin_permissions = true + + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnets + + eks_managed_node_groups = { + initial = { + instance_types = ["m5.large"] + + min_size = 3 + max_size = 10 + desired_size = 3 + } + } + + tags = local.tags +} + + + +################################################################################ +# EKS Blueprints Addons +################################################################################ + +module "eks_blueprints_addons" { + source = "aws-ia/eks-blueprints-addons/aws" + version = "~> 1.1" + + cluster_name = module.eks.cluster_name + cluster_endpoint = module.eks.cluster_endpoint + cluster_version = module.eks.cluster_version + oidc_provider_arn = module.eks.oidc_provider_arn + + # EKS Addons + eks_addons = { + coredns = {} + kube-proxy = {} + vpc-cni = { + preserve = true + most_recent = true + + timeouts = { + create = "25m" + delete = "10m" + } + + } + eks-pod-identity-agent = {} + } + + enable_aws_gateway_api_controller = true + aws_gateway_api_controller = { + chart_version = "v1.0.5" + create_namespace = true + namespace = "aws-application-networking-system" + source_policy_documents = [data.aws_iam_policy_document.gateway_api_controller.json] + set = [ + { + name = "clusterName" + value = module.eks.cluster_name + }, + { + name = "log.level" + value = "debug" + }, + { + name = "clusterVpcId" + value = module.vpc.vpc_id + }, + { + name = "defaultServiceNetwork" + value = "lattice-gateway" # Specify this parameter to create a default VPC lattice service + } + ] + wait = true + } + enable_external_dns = true + external_dns_route53_zone_arns = try([data.terraform_remote_state.environment.outputs.route53_private_zone_arn], []) + external_dns = { + create_role = true, + set = [ + { + name = "domainFilters[0]" + value = local.domain + }, + { + name = "policy" + value = "sync" + }, + { + name = "sources[0]" + value = "crd" + }, + { + name = "sources[1]" + value = "ingress" + }, + { + name = "txtPrefix" + value = module.eks.cluster_name + }, + { + name = "extraArgs[0]" + value = "--crd-source-apiversion=externaldns.k8s.io/v1alpha1" + }, + { + name = "extraArgs[1]" + value = "--crd-source-kind=DNSEndpoint" + }, + { + name = "crdSourceApiversion" + value = "externaldns.k8s.io/v1alpha1" + }, + { + name = "crdSourceKind" + value = "DNSEndpoint" + } + ] + } + + tags = local.tags +} + +module "eks_blueprints_addon_kyverno" { + source = "aws-ia/eks-blueprints-addon/aws" + version = "~> 1.1" #ensure to update this to the latest/desired version + + chart = "kyverno" + chart_version = "3.0.5" + repository = "https://kyverno.github.io/kyverno" + description = "Kyverno" + namespace = "kyverno" + create_namespace = true +} + +data "aws_iam_policy_document" "gateway_api_controller" { + statement { + sid = "" + effect = "Allow" + resources = ["*"] # For testing purposes only (highly recommended limit access to specific resources for production usage) + + actions = [ + "vpc-lattice:*", + "iam:CreateServiceLinkedRole", + "ec2:DescribeVpcs", + "ec2:DescribeSubnets", + "ec2:DescribeTags", + "ec2:DescribeSecurityGroups", + "logs:CreateLogDelivery", + "logs:GetLogDelivery", + "logs:UpdateLogDelivery", + "logs:DeleteLogDelivery", + "logs:ListLogDeliveries", + "tag:GetResources", + ] + } +} + +################################################################################ +# Platform applications +################################################################################ + +resource "helm_release" "platform_application" { + name = "platform-${terraform.workspace}" + chart = "./charts/platform" + create_namespace = true + namespace = "lattice-gateway" + force_update = true + + #replace = true # This will force a re-deployment + + values = [ + <`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/dynamic-roles.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/dynamic-roles.tf new file mode 100644 index 0000000..fe0d6c9 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/dynamic-roles.tf @@ -0,0 +1,116 @@ +# The `utils_describe_stacks` data resources use the Cloud Posse Utils provider to describe Atmos stacks, and then +# we merge the results into `local.all_team_vars`. This is the same as running the following locally: +# ``` +# atmos describe stacks --components=aws-teams,aws-team-roles --component-types=terraform --sections=vars +# ``` +# The result of these stack descriptions includes all metadata for the given components. For example, we now +# can filter the result to find all stacks where either `aws-teams` or `aws-team-roles` are deployed. +# +# In particular, we can use this data to find the name of the account via `null-label` (defined by +# `null-label.descriptor_formats.account_name`, typically `-`) where team roles are deployed. +# We then determine which roles are provisioned and which teams can access any given role in any particular account. +# +# `descriptor_formats.account_name` is typically defined in `stacks/orgs/NAMESPACE/_defaults.yaml`, and if not +# defined, the stack name will default to `stage`.` +# +# If `namespace` is included in `descriptor_formats.account_name`, then we additionally filter to only stacks with +# the same `namespace` as `module.this.namespace`. See `local.stack_namespace_index` and `local.stack_namespace_index` +# +# https://atmos.tools/cli/commands/describe/stacks/ +# https://registry.terraform.io/providers/cloudposse/utils/latest/docs/data-sources/describe_stacks +data "utils_describe_stacks" "teams" { + count = local.dynamic_role_enabled ? 1 : 0 + + components = ["aws-teams"] + component_types = ["terraform"] + sections = ["vars"] +} + +data "utils_describe_stacks" "team_roles" { + count = local.dynamic_role_enabled ? 1 : 0 + + components = ["aws-team-roles"] + component_types = ["terraform"] + sections = ["vars"] +} + +locals { + dynamic_role_enabled = module.this.enabled && var.terraform_dynamic_role_enabled + + # `var.terraform_role_name_map` maps some team role in the `aws-team-roles` configuration to "plan" and some other team to "apply". + apply_role = var.terraform_role_name_map.apply + plan_role = var.terraform_role_name_map.plan + + # If a namespace is included with the stack name, only loop through stacks in the same namespace + # zero-based index showing position of the namespace in the stack name + stack_namespace_index = try(index(module.this.normalized_context.descriptor_formats.stack.labels, "namespace"), -1) + stack_has_namespace = local.stack_namespace_index >= 0 + stack_account_map = { for k, v in module.atmos : k => lookup(v.descriptors, "account_name", v.stage) } + + # We would like to use code like this: + # teams_stacks = local.dynamic_role_enabled ? { for k, v ... } : {} + # but that generates an error: "Inconsistent conditional result types" + # See https://github.com/hashicorp/terraform/issues/33303 + # To work around this, we have "empty" values that depend on the condition. + empty_map = { + true = null + false = {} + } + empty = local.empty_map[local.dynamic_role_enabled] + + # ASSUMPTIONS: The stack pattern is the same for all accounts and uses the same delimiter as null-label + teams_stacks = local.dynamic_role_enabled ? { + for k, v in yamldecode(data.utils_describe_stacks.teams[0].output) : k => v if !local.stack_has_namespace || try(split(module.this.delimiter, k)[local.stack_namespace_index] == module.this.namespace, false) + } : local.empty + + teams_vars = { for k, v in local.teams_stacks : k => v.components.terraform.aws-teams.vars if try(v.components.terraform.aws-teams.vars, null) != null } + teams_config = local.dynamic_role_enabled ? values(local.teams_vars)[0].teams_config : local.empty + team_names = [for k, v in local.teams_config : k if try(v.enabled, true)] + team_arns = { for team_name in local.team_names : team_name => format(local.iam_role_arn_templates[local.account_role_map.identity], team_name) } + + team_roles_stacks = local.dynamic_role_enabled ? { + for k, v in yamldecode(data.utils_describe_stacks.team_roles[0].output) : k => v if !local.stack_has_namespace || try(split(module.this.delimiter, k)[local.stack_namespace_index] == module.this.namespace, false) + } : local.empty + + team_roles_vars = { for k, v in local.team_roles_stacks : k => v.components.terraform.aws-team-roles.vars if try(v.components.terraform.aws-team-roles.vars, null) != null } + + all_team_vars = merge(local.teams_vars, local.team_roles_vars) + + stack_planners = { for k, v in local.team_roles_vars : k => v.roles[local.plan_role].trusted_teams if try(length(v.roles[local.plan_role].trusted_teams), 0) > 0 && try(v.roles[local.plan_role].enabled, true) } + stack_terraformers = { for k, v in local.team_roles_vars : k => v.roles[local.apply_role].trusted_teams if try(length(v.roles[local.apply_role].trusted_teams), 0) > 0 && try(v.roles[local.apply_role].enabled, true) } + + team_planners = { for team in local.team_names : team => { + for stack, trusted in local.stack_planners : local.stack_account_map[stack] => "plan" if contains(trusted, team) + } } + team_terraformers = { for team in local.team_names : team => { + for stack, trusted in local.stack_terraformers : local.stack_account_map[stack] => "apply" if contains(trusted, team) + } } + + role_arn_terraform_access = { for team in local.team_names : local.team_arns[team] => merge(local.team_planners[team], local.team_terraformers[team]) } +} + +module "atmos" { + # local.all_team_vars is empty map when dynamic_role_enabled is false + for_each = local.all_team_vars + + source = "cloudposse/label/null" + version = "0.25.0" + + enabled = true + namespace = lookup(each.value, "namespace", null) + tenant = lookup(each.value, "tenant", null) + environment = lookup(each.value, "environment", null) + stage = lookup(each.value, "stage", null) + name = lookup(each.value, "name", null) + delimiter = lookup(each.value, "delimiter", null) + attributes = lookup(each.value, "attributes", []) + tags = lookup(each.value, "tags", {}) + additional_tag_map = lookup(each.value, "additional_tag_map", {}) + label_order = lookup(each.value, "label_order", []) + regex_replace_chars = lookup(each.value, "regex_replace_chars", null) + id_length_limit = lookup(each.value, "id_length_limit", null) + label_key_case = lookup(each.value, "label_key_case", null) + label_value_case = lookup(each.value, "label_value_case", null) + descriptor_formats = lookup(each.value, "descriptor_formats", {}) + labels_as_tags = lookup(each.value, "labels_as_tags", []) +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/main.tf new file mode 100644 index 0000000..8431ceb --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/main.tf @@ -0,0 +1,92 @@ +data "aws_organizations_organization" "organization" {} + +data "aws_partition" "current" {} + +locals { + aws_partition = data.aws_partition.current.partition + legacy_terraform_uses_admin = coalesce(var.legacy_terraform_uses_admin, !var.terraform_dynamic_role_enabled) + + full_account_map = { + for acct in data.aws_organizations_organization.organization.accounts + : acct.name == var.root_account_aws_name ? var.root_account_account_name : acct.name => acct.id if acct.status != "SUSPENDED" + } + + iam_role_arn_templates = { + for name, info in local.account_info_map : name => format(var.iam_role_arn_template_template, compact( + [ + local.aws_partition, + info.id, + module.this.namespace, + lookup(info, "tenant", ""), + module.this.environment, + info.stage + ] + )...) + + } + + eks_accounts = module.accounts.outputs.eks_accounts + non_eks_accounts = module.accounts.outputs.non_eks_accounts + all_accounts = concat(local.eks_accounts, local.non_eks_accounts) + account_info_map = module.accounts.outputs.account_info_map + + # Provide empty lists for deprecated outputs, to avoid breaking old code + # before it can be replaced. + empty_account_map = merge({ for name, info in local.account_info_map : name => "" }, { _OBSOLETE = "DUMMY RESULTS for backwards compatibility" }) + + + # We should move this to be specified by tags on the accounts, + # like we do with EKS, but for now.... + account_role_map = { + artifacts = var.artifacts_account_account_name + audit = var.audit_account_account_name + dns = var.dns_account_account_name + identity = var.identity_account_account_name + root = var.root_account_account_name + } + + account_profiles = { + # dropping the role name from the profile, especially with trimsuffix(), + # is a hack for expedience while we work out the kinks in the + # aws-config file automatic generation and related issues. + # The proper solution will probably come out of the null-label v2 + # which should have an account_long_name output. + for name, info in local.account_info_map : name => trimsuffix(format(var.profile_template, compact( + [ + module.this.namespace, + lookup(info, "tenant", ""), + module.this.environment, + info.stage, "~" + ] + )...), "-~") + } + + + terraform_roles = { + for name, info in local.account_info_map : name => format(local.iam_role_arn_templates[name], + (local.legacy_terraform_uses_admin && + contains([ + var.root_account_account_name, + var.identity_account_account_name + ], name) + ) ? "admin" : "terraform") + } + + # legacy support for `aws` config profiles + terraform_profiles = { + for name, info in local.account_info_map : name => format(var.profile_template, compact( + [ + module.this.namespace, + lookup(info, "tenant", ""), + module.this.environment, + info.stage, + ((local.legacy_terraform_uses_admin && + contains([ + var.root_account_account_name, + var.identity_account_account_name + ], name) + ) ? "admin" : "terraform"), + ] + )...) + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/outputs.tf new file mode 100644 index 0000000..76dc133 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/outputs.tf @@ -0,0 +1,158 @@ +output "root_account_aws_name" { + value = var.root_account_aws_name + description = "The name of the root account as reported by AWS" +} + +output "root_account_account_name" { + value = var.root_account_account_name + description = "The short name for the root account" +} + +output "identity_account_account_name" { + value = var.identity_account_account_name + description = "The short name for the account holding primary IAM roles" +} + +output "dns_account_account_name" { + value = var.dns_account_account_name + description = "The short name for the primary DNS account" +} + +output "artifacts_account_account_name" { + value = var.artifacts_account_account_name + description = "The short name for the artifacts account" +} + +output "audit_account_account_name" { + value = var.audit_account_account_name + description = "The short name for the audit account" +} + +output "org" { + value = data.aws_organizations_organization.organization + description = "The name of the AWS Organization" +} + +output "aws_partition" { + value = local.aws_partition + description = "The AWS \"partition\" to use when constructing resource ARNs" +} + +output "account_info_map" { + value = local.account_info_map + description = <<-EOT + A map from account name to various information about the account. + See the `account_info_map` output of `account` for more detail. + EOT +} + +output "full_account_map" { + value = local.full_account_map + description = "The map of account name to account ID (number)." +} + +output "eks_accounts" { + value = local.eks_accounts + description = "A list of all accounts in the AWS Organization that contain EKS clusters" +} + +output "non_eks_accounts" { + value = local.non_eks_accounts + description = "A list of all accounts in the AWS Organization that do not contain EKS clusters" +} + +output "all_accounts" { + value = local.all_accounts + description = "A list of all accounts in the AWS Organization" +} + +output "iam_role_arn_templates" { + value = local.iam_role_arn_templates + description = "Map of accounts to corresponding IAM Role ARN templates" +} + +output "terraform_roles" { + value = local.terraform_roles + description = "A list of all IAM roles used to run terraform updates" +} + +output "terraform_profiles" { + value = local.terraform_profiles + description = "A list of all SSO profiles used to run terraform updates" +} + +output "profiles_enabled" { + value = var.profiles_enabled + description = "Whether or not to enable profiles instead of roles for the backend" +} + +output "terraform_dynamic_role_enabled" { + value = local.dynamic_role_enabled + description = "True if dynamic role for Terraform is enabled" + precondition { + condition = local.dynamic_role_enabled && var.profiles_enabled ? false : true + error_message = "Dynamic role for Terraform cannot be used with profiles. One of `terraform_dynamic_role_enabled` or `profiles_enabled` must be false." + } +} + +output "terraform_access_map" { + value = local.dynamic_role_enabled ? local.role_arn_terraform_access : null + description = <<-EOT + Mapping of team Role ARN to map of account name to terraform action role ARN to assume + + For each team in `aws-teams`, look at every account and see if that team has access to the designated "apply" role. + If so, add an entry ` = "apply"` to the `terraform_access_map` entry for that team. + If not, see if it has access to the "plan" role, and if so, add a "plan" entry. + Otherwise, no entry is added. + EOT +} + +output "terraform_role_name_map" { + value = local.dynamic_role_enabled ? var.terraform_role_name_map : null + description = "Mapping of Terraform action (plan or apply) to aws-team-role name to assume for that action" +} + +resource "local_file" "account_info" { + content = templatefile("${path.module}/account-info.tftmpl", { + account_info_map = local.account_info_map + account_profiles = local.account_profiles + account_role_map = local.account_role_map + namespace = module.this.namespace + source_profile = coalesce(var.aws_config_identity_profile_name, format("%s-identity", module.this.namespace)) + }) + filename = "${path.module}/account-info/${module.this.id}.sh" +} + + +###################### +## Deprecated outputs +## These outputs are deprecated and will be removed in a future release +## As of this release, they return empty lists so as not to break old +## versions of account-map/modules/iam-roles and imposing an order +## on deploying new code vs applying the updated account-map +###################### + +output "helm_roles" { + value = local.empty_account_map + description = "OBSOLETE: dummy results returned to avoid breaking code that depends on this output" +} + +output "helm_profiles" { + value = local.empty_account_map + description = "OBSOLETE: dummy results returned to avoid breaking code that depends on this output" +} + +output "cicd_roles" { + value = local.empty_account_map + description = "OBSOLETE: dummy results returned to avoid breaking code that depends on this output" +} + +output "cicd_profiles" { + value = local.empty_account_map + description = "OBSOLETE: dummy results returned to avoid breaking code that depends on this output" +} + +###################### +## End of Deprecated outputs +## Please add new outputs above this section +###################### diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/providers.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/providers.tf new file mode 100644 index 0000000..327caa9 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/providers.tf @@ -0,0 +1,9 @@ +# Unlike all the other modules (besides account), we cannot +# rely on account-map (this module) to tell us which role to use. +# This must be run by a user that inherently has access to +# the Terraform state S3 bucket and DynamoDB tables and can +# read the AWS organization data for the whole organization. + +provider "aws" { + region = var.region +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/remote-state.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/remote-state.tf new file mode 100644 index 0000000..c9dfaa8 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/remote-state.tf @@ -0,0 +1,9 @@ +module "accounts" { + source = "cloudposse/stack-config/yaml//modules/remote-state" + version = "1.5.0" + + component = "account" + privileged = true + + context = module.this.context +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/variables.tf new file mode 100644 index 0000000..7043247 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/variables.tf @@ -0,0 +1,104 @@ +variable "region" { + type = string + description = "AWS Region" +} + +variable "root_account_aws_name" { + type = string + description = "The name of the root account as reported by AWS" +} + +variable "root_account_account_name" { + type = string + default = "root" + description = "The short name for the root account" +} + +variable "identity_account_account_name" { + type = string + default = "identity" + description = "The short name for the account holding primary IAM roles" +} + +variable "dns_account_account_name" { + type = string + default = "dns" + description = "The short name for the primary DNS account" +} + +variable "artifacts_account_account_name" { + type = string + default = "artifacts" + description = "The short name for the artifacts account" +} + +variable "audit_account_account_name" { + type = string + default = "audit" + description = "The short name for the audit account" +} + +variable "iam_role_arn_template_template" { + type = string + default = "arn:%s:iam::%s:role/%s-%s-%s-%s-%%s" + description = <<-EOT + The template for the template used to render Role ARNs. + The template is first used to render a template for the account that takes only the role name. + Then that rendered template is used to create the final Role ARN for the account. + Default is appropriate when using `tenant` and default label order with `null-label`. + Use `"arn:%s:iam::%s:role/%s-%s-%s-%%s"` when not using `tenant`. + + Note that if the `null-label` variable `label_order` is truncated or extended with additional labels, this template will + need to be updated to reflect the new number of labels. + EOT +} + +variable "profile_template" { + type = string + default = "%s-%s-%s-%s-%s" + description = <<-EOT + The template used to render AWS Profile names. + Default is appropriate when using `tenant` and default label order with `null-label`. + Use `"%s-%s-%s-%s"` when not using `tenant`. + + Note that if the `null-label` variable `label_order` is truncated or extended with additional labels, this template will + need to be updated to reflect the new number of labels. + EOT +} + +variable "profiles_enabled" { + type = bool + default = false + description = "Whether or not to enable profiles instead of roles for the backend. If true, profile must be set. If false, role_arn must be set." +} + +variable "aws_config_identity_profile_name" { + type = string + default = null + description = "The AWS config profile name to use as `source_profile` for credentials." +} + +variable "terraform_role_name_map" { + type = map(string) + description = "Mapping of Terraform action (plan or apply) to aws-team-role name to assume for that action" + default = { + plan = "planner" + apply = "terraform" + } +} + +variable "legacy_terraform_uses_admin" { + type = bool + description = <<-EOT + If `true`, the legacy behavior of using the `admin` role rather than the `terraform` role in the + `root` and identity accounts will be preserved. + The default is to use the negations of the value of `terraform_dynamic_role_enabled`. + EOT + default = null +} + +variable "terraform_dynamic_role_enabled" { + type = bool + description = "If true, the IAM role Terraform will assume will depend on the identity of the user running terraform" + default = false +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/versions.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/versions.tf new file mode 100644 index 0000000..98fe820 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/input/versions.tf @@ -0,0 +1,18 @@ +terraform { + required_version = ">= 1.2.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.9.0" + } + local = { + source = "hashicorp/local" + version = ">= 1.3" + } + utils = { + source = "cloudposse/utils" + version = ">= 1.10.0" + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/fixture.json new file mode 100644 index 0000000..0085beb --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/fixture.json @@ -0,0 +1,36 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/account-map/modules/iam-roles", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "4a35a99839cafbe8d6cb4ee4e292bcddc9ca49ee59de2af65d0e0af002ff663d" + }, + "license": "Apache-2.0", + "providers": [ + "awsutils" + ], + "features": [ + "conditionals", + "count", + "data", + "for_expressions", + "functions", + "heredoc", + "locals", + "modules", + "outputs", + "required_providers", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/main.tf new file mode 100644 index 0000000..3e69a1d --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/main.tf @@ -0,0 +1,84 @@ + +data "awsutils_caller_identity" "current" { + count = local.dynamic_terraform_role_enabled ? 1 : 0 + # Avoid conflict with caller's provider which is using this module's output to assume a role. + provider = awsutils.iam-roles +} + +module "always" { + source = "cloudposse/label/null" + version = "0.25.0" + + # account_map must always be enabled, even for components that are disabled + enabled = true + + context = module.this.context +} + +module "account_map" { + source = "cloudposse/stack-config/yaml//modules/remote-state" + version = "1.5.0" + + component = "account-map" + privileged = var.privileged + tenant = var.overridable_global_tenant_name + environment = var.overridable_global_environment_name + stage = var.overridable_global_stage_name + + context = module.always.context +} + +locals { + profiles_enabled = coalesce(var.profiles_enabled, local.account_map.profiles_enabled) + + dynamic_terraform_role_enabled = try(local.account_map.terraform_dynamic_role_enabled, false) + + account_map = module.account_map.outputs + account_name = lookup(module.always.descriptors, "account_name", module.always.stage) + root_account_name = local.account_map.root_account_account_name + + current_user_role_arn = coalesce(one(data.awsutils_caller_identity.current[*].eks_role_arn), one(data.awsutils_caller_identity.current[*].arn), "disabled") + + current_identity_account = local.dynamic_terraform_role_enabled ? split(":", local.current_user_role_arn)[4] : "" + + terraform_access_map = try(local.account_map.terraform_access_map[local.current_user_role_arn], {}) + + is_root_user = local.current_identity_account == local.account_map.full_account_map[local.root_account_name] + is_target_user = local.current_identity_account == local.account_map.full_account_map[local.account_name] + + account_org_role_arns = { for name, id in local.account_map.full_account_map : name => + name == local.root_account_name ? null : format( + "arn:%s:iam::%s:role/OrganizationAccountAccessRole", local.account_map.aws_partition, id + ) + } + + static_terraform_roles = local.account_map.terraform_roles + + dynamic_terraform_role_maps = { + for account_name in local.account_map.all_accounts : account_name => { + apply = format(local.account_map.iam_role_arn_templates[account_name], local.account_map.terraform_role_name_map["apply"]) + plan = format(local.account_map.iam_role_arn_templates[account_name], local.account_map.terraform_role_name_map["plan"]) + # For user without explicit permissions: + # If the current user is a user in the `root` account, assume the `OrganizationAccountAccessRole` role in the target account. + # If the current user is a user in the target account, do not assume a role at all, let them do what their role allows. + # Otherwise, force them into the static Terraform role for the target account, + # to prevent users from accidentally running Terraform in the wrong account. + none = local.is_root_user ? local.account_org_role_arns[account_name] : ( + # null means use current user's role + local.is_target_user ? null : local.static_terraform_roles[account_name] + ) + } + } + + dynamic_terraform_role_types = { for account_name in local.account_map.all_accounts : + account_name => try(local.terraform_access_map[account_name], "none") + } + + dynamic_terraform_roles = { for account_name in local.account_map.all_accounts : + account_name => local.dynamic_terraform_role_maps[account_name][local.dynamic_terraform_role_types[account_name]] + } + + final_terraform_role_arns = { for account_name in local.account_map.all_accounts : account_name => + local.dynamic_terraform_role_enabled ? local.dynamic_terraform_roles[account_name] : local.static_terraform_roles[account_name] + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/outputs.tf new file mode 100644 index 0000000..0493806 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/outputs.tf @@ -0,0 +1,87 @@ +output "terraform_role_arn" { + value = local.profiles_enabled ? null : local.final_terraform_role_arns[local.account_name] + description = "The AWS Role ARN for Terraform to use when provisioning resources in the account, when Role ARNs are in use" +} + +output "terraform_role_arns" { + value = local.account_map.terraform_roles + description = "All of the terraform role arns" +} + +output "terraform_profile_name" { + value = local.profiles_enabled ? local.account_map.profiles[local.account_name] : null + description = "The AWS config profile name for Terraform to use when provisioning resources in the account, when profiles are in use" +} + +output "aws_partition" { + value = local.account_map.aws_partition + description = "The AWS \"partition\" to use when constructing resource ARNs" +} + +output "org_role_arn" { + value = local.account_org_role_arns[local.account_name] + description = "The AWS Role ARN for Terraform to use when SuperAdmin is provisioning resources in the account" +} + +output "global_tenant_name" { + value = var.overridable_global_tenant_name + description = "The `null-label` `tenant` value used for organization-wide resources" +} + +output "global_environment_name" { + value = var.overridable_global_environment_name + description = "The `null-label` `environment` value used for regionless (global) resources" +} + +output "global_stage_name" { + value = var.overridable_global_stage_name + description = "The `null-label` `stage` value for the organization management account (where the `account-map` state is stored)" +} + +output "current_account_account_name" { + value = local.account_name + description = <<-EOT + The account name (usually `-`) for the account configured by this module's inputs. + Roughly analogous to `data "aws_caller_identity"`, but returning the name of the caller account as used in our configuration. + EOT +} + +output "dns_terraform_role_arn" { + value = local.profiles_enabled ? null : local.final_terraform_role_arns[local.account_map.dns_account_account_name] + description = "The AWS Role ARN for Terraform to use to provision DNS Zone delegations, when Role ARNs are in use" +} + +output "dns_terraform_profile_name" { + value = local.profiles_enabled ? local.account_map.terraform_profiles[local.account_map.dns_account_account_name] : null + description = "The AWS config profile name for Terraform to use to provision DNS Zone delegations, when profiles are in use" +} + +output "audit_terraform_role_arn" { + value = local.profiles_enabled ? null : local.final_terraform_role_arns[local.account_map.audit_account_account_name] + description = "The AWS Role ARN for Terraform to use to provision resources in the \"audit\" role account, when Role ARNs are in use" +} + +output "audit_terraform_profile_name" { + value = local.profiles_enabled ? local.account_map.terraform_profiles[local.account_map.audit_account_account_name] : null + description = "The AWS config profile name for Terraform to use to provision resources in the \"audit\" role account, when profiles are in use" +} + +output "identity_account_account_name" { + value = local.account_map.identity_account_account_name + description = "The account name (usually `-`) for the account holding primary IAM roles" +} + +output "identity_terraform_role_arn" { + value = local.profiles_enabled ? null : local.final_terraform_role_arns[local.account_map.identity_account_account_name] + description = "The AWS Role ARN for Terraform to use to provision resources in the \"identity\" role account, when Role ARNs are in use" +} + +output "identity_terraform_profile_name" { + value = local.profiles_enabled ? local.account_map.terraform_profiles[local.account_map.identity_account_account_name] : null + description = "The AWS config profile name for Terraform to use to provision resources in the \"identity\" role account, when profiles are in use" +} + +output "profiles_enabled" { + value = local.profiles_enabled + description = "When true, use AWS config profiles in Terraform AWS provider configurations. When false, use Role ARNs." +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/providers.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/providers.tf new file mode 100644 index 0000000..55f8c18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/providers.tf @@ -0,0 +1,11 @@ +provider "awsutils" { + # Components may want to use awsutils, and when they do, they typically want to use it in the assumed IAM role. + # That conflicts with this module's needs, so we create a separate provider alias for this module to use. + alias = "iam-roles" + + # If the provider block is empty, Terraform will output a deprecation warning, + # because earlier versions of Terraform used empty provider blocks to declare provider requirements, + # which is now deprecated in favor of the required_providers block. + # So we add a useless setting to the provider block to avoid the deprecation warning. + profile = null +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/variables.tf new file mode 100644 index 0000000..247a08c --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/variables.tf @@ -0,0 +1,34 @@ +variable "privileged" { + type = bool + description = "True if the Terraform user already has access to the backend" + default = false +} + +variable "profiles_enabled" { + type = bool + description = "Whether or not to use profiles instead of roles for Terraform. Default (null) means to use global settings." + default = null +} + + +## The overridable_* variables in this file provide Cloud Posse defaults. +## Because this module is used in bootstrapping Terraform, we do not configure +## these inputs in the normal way. Instead, to change the values, you should +## add a `variables_override.tf` file and change the default to the value you want. +variable "overridable_global_tenant_name" { + type = string + description = "The tenant name used for organization-wide resources" + default = "core" +} + +variable "overridable_global_environment_name" { + type = string + description = "Global environment name" + default = "gbl" +} + +variable "overridable_global_stage_name" { + type = string + description = "The stage name for the organization management account (where the `account-map` state is stored)" + default = "root" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/versions.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/versions.tf new file mode 100644 index 0000000..e0cac65 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/iam-roles/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.2.0" + + required_providers { + awsutils = { + source = "cloudposse/awsutils" + version = ">= 0.16.0" + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/fixture.json new file mode 100644 index 0000000..bce978f --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/fixture.json @@ -0,0 +1,30 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/account-map/modules/roles-to-principals", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "59a5022b7e65c50d7733a498e09f7a3a3d011a7d27f8682ff8d4f42a805b031e" + }, + "license": "Apache-2.0", + "providers": [], + "features": [ + "conditionals", + "for_expressions", + "functions", + "heredoc", + "locals", + "modules", + "outputs", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/main.tf new file mode 100644 index 0000000..94aba01 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/main.tf @@ -0,0 +1,58 @@ +module "always" { + source = "cloudposse/label/null" + version = "0.25.0" + + # account_map must always be enabled, even for components that are disabled + enabled = true + + context = module.this.context +} + +module "account_map" { + source = "cloudposse/stack-config/yaml//modules/remote-state" + version = "1.5.0" + + component = "account-map" + privileged = var.privileged + tenant = var.overridable_global_tenant_name + environment = var.overridable_global_environment_name + stage = var.overridable_global_stage_name + + context = module.always.context +} + +locals { + aws_partition = module.account_map.outputs.aws_partition + team_ps_pattern = var.overridable_team_permission_set_name_pattern + identity_account_name = module.account_map.outputs.identity_account_account_name + teams_from_role_map = var.overridable_team_permission_sets_enabled ? try(var.role_map[local.identity_account_name], []) : [] + + team_permission_set_name_map = { + for team in distinct(concat(var.teams, local.teams_from_role_map)) : team => format(local.team_ps_pattern, replace(title(replace(team, "_", "-")), "-", "")) + } + permission_sets_from_team_roles = [for team in local.teams_from_role_map : local.team_permission_set_name_map[team]] + + principals_map = { for acct, v in var.role_map : acct => ( + contains(v, "*") ? { + "*" = format("arn:%s:iam::%s:root", local.aws_partition, module.account_map.outputs.full_account_map[acct]) + } : + { + for role in v : role => format(module.account_map.outputs.iam_role_arn_templates[acct], role) + } + ) } + + # This expression could be simplified, but then the order of principals would be different than in earlier versions, causing unnecessary plan changes. + principals = distinct(compact(flatten([for acct, v in var.role_map : values(local.principals_map[acct])]))) + + # Support for AWS SSO Permission Sets + # We ensure that the identity account is included in the map so that we can add the permission sets from team roles to it. + permission_set_arn_like = distinct(compact(flatten([for acct, v in merge({ (local.identity_account_name) = [] }, var.permission_set_map) : formatlist( + # Usually like: + # arn:aws:iam::123456789012:role/aws-reserved/sso.amazonaws.com/AWSReservedSSO_IdentityAdminRoleAccess_b68e107e9495e2fc + # But sometimes AWS SSO ARN includes `/region/`, like: + # arn:aws:iam::123456789012:role/aws-reserved/sso.amazonaws.com/ap-southeast-1/AWSReservedSSO_IdentityAdminRoleAccess_b68e107e9495e2fc + # If trust polices get too large, some space can be saved by using `*` instead of `aws-reserved/sso.amazonaws.com*` + format("arn:%s:iam::%s:role/aws-reserved/sso.amazonaws.com*/AWSReservedSSO_%%s_*", local.aws_partition, module.account_map.outputs.full_account_map[acct]), + acct == local.identity_account_name ? distinct(concat(v, local.permission_sets_from_team_roles)) : v + )]))) +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/outputs.tf new file mode 100644 index 0000000..461530a --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/outputs.tf @@ -0,0 +1,29 @@ +output "principals" { + value = local.principals + description = "Consolidated list of AWS principals corresponding to given input `role_map`" +} + +output "principals_map" { + value = local.principals_map + description = "Map of AWS principals corresponding to given input `role_map`" +} + +output "permission_set_arn_like" { + value = local.permission_set_arn_like + description = "List of Role ARN regexes suitable for IAM Condition `ArnLike` corresponding to given input `permission_set_map`" +} + +output "team_permission_set_name_map" { + value = local.team_permission_set_name_map + description = "Map of team names (from `var.teams` and `role_map[\"identity\"]) to permission set names" +} + +output "full_account_map" { + value = module.account_map.outputs.full_account_map + description = "Map of account names to account IDs" +} + +output "aws_partition" { + value = local.aws_partition + description = "The AWS \"partition\" to use when constructing resource ARNs" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/variables.tf new file mode 100644 index 0000000..f942b24 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account-map/modules/roles-to-principals/input/variables.tf @@ -0,0 +1,62 @@ +variable "role_map" { + type = map(list(string)) + description = "Map of account:[role, role...]. Use `*` as role for entire account" + default = {} +} + +variable "permission_set_map" { + type = map(list(string)) + description = "Map of account:[PermissionSet, PermissionSet...] specifying AWS SSO PermissionSets when accessed from specified accounts" + default = {} +} + +variable "teams" { + type = list(string) + description = "List of team names to translate to AWS SSO PermissionSet names" + default = [] +} + +variable "privileged" { + type = bool + description = "True if the default provider already has access to the backend" + default = false +} + +## The overridable_* variables in this file provide Cloud Posse defaults. +## Because this module is used in bootstrapping Terraform, we do not configure +## these inputs in the normal way. Instead, to change the values, you should +## add a `variables_override.tf` file and change the default to the value you want. +variable "overridable_global_tenant_name" { + type = string + description = "The tenant name used for organization-wide resources" + default = "core" +} + +variable "overridable_global_environment_name" { + type = string + description = "Global environment name" + default = "gbl" +} + +variable "overridable_global_stage_name" { + type = string + description = "The stage name for the organization management account (where the `account-map` state is stored)" + default = "root" +} + +variable "overridable_team_permission_set_name_pattern" { + type = string + description = "The pattern used to generate the AWS SSO PermissionSet name for each team" + default = "Identity%sTeamAccess" +} + +variable "overridable_team_permission_sets_enabled" { + type = bool + description = <<-EOT + When true, any roles (teams or team-roles) in the identity account references in `role_map` + will cause corresponding AWS SSO PermissionSets to be included in the `permission_set_arn_like` output. + This has the effect of treating those PermissionSets as if they were teams. + The main reason to set this `false` is if IAM trust policies are exceeding size limits and you are not using AWS SSO. + EOT + default = true +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/fixture.json new file mode 100644 index 0000000..92823ab --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/fixture.json @@ -0,0 +1,39 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/account", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/account", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "9db844a1f10495a4b52052666e058d1ff57a49c0a71f91837a42a36d90dd303d" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "for_each", + "for_expressions", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/main.tf new file mode 100644 index 0000000..114772d --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/main.tf @@ -0,0 +1,294 @@ +locals { + # Organization config map + organization = lookup(var.organization_config, "organization", {}) + + # Organizational Units list and map configuration + organizational_units = lookup(var.organization_config, "organizational_units", []) + organizational_units_map = { for ou in local.organizational_units : ou.name => merge(ou, { + parent_ou = contains(keys(ou), "parent_ou") ? ou.parent_ou : "none" + }) } + + # Organization's Accounts list and map configuration + organization_accounts = lookup(var.organization_config, "accounts", []) + organization_accounts_map = { for acc in local.organization_accounts : acc.name => acc } + + # Organizational Units' Accounts list and map configuration + organizational_units_accounts = flatten([ + for ou in local.organizational_units : [ + for account in lookup(ou, "accounts", []) : merge({ "ou" = ou.name, "account_email_format" = lookup(ou, "account_email_format", var.account_email_format), parent_ou = contains(keys(ou), "parent_ou") ? ou.parent_ou : "none" }, account) + ] + ]) + organizational_units_accounts_map = { for acc in local.organizational_units_accounts : acc.name => acc } + + # All Accounts configuration + all_accounts = concat(local.organization_accounts, local.organizational_units_accounts) + + # List of Organizational Unit names + organizational_unit_names = concat( + values(aws_organizations_organizational_unit.this)[*]["name"], + values(aws_organizations_organizational_unit.child)[*]["name"] + ) + + # List of Organizational Unit ARNs + organizational_unit_arns = concat( + values(aws_organizations_organizational_unit.this)[*]["arn"], + values(aws_organizations_organizational_unit.child)[*]["arn"] + ) + + # List of Organizational Unit IDs + organizational_unit_ids = concat( + values(aws_organizations_organizational_unit.this)[*]["id"], + values(aws_organizations_organizational_unit.child)[*]["id"] + ) + + # Map of account names to OU names (used for lookup `parent_id` for each account under an OU) + account_names_organizational_unit_names_map = length(local.organizational_units) > 0 ? merge( + [ + for organizational_unit in local.organizational_units : { + for account in lookup(organizational_unit, "accounts", []) : account.name => organizational_unit.name + } + ]...) : {} + + # Convert all Service Control Policy statements from YAML config to Terraform list + all_service_control_policy_statements = module.service_control_policy_statements_yaml_config.list_configs + + # Convert to map, so we can lookup by name and detect missing policies + all_service_control_policy_statements_map = { for st in local.all_service_control_policy_statements : st.sid => st } + + # Service Control Policy SIDs for Organization + organization_service_control_policy_ids = lookup(local.organization, "service_control_policies", []) + + # List of Service Control Policy statements for Organization + organization_service_control_policy_statements = [ + for sid in local.organization_service_control_policy_ids : local.all_service_control_policy_statements_map[sid] + ] + + # Map of account names to list Service Control Policy SIDs for each account + account_names_service_control_policy_ids_map = { + for acc in local.all_accounts : acc.name => acc.service_control_policies if try(acc.service_control_policies, null) != null + } + + # Map of account names to list of Service Control Policy statements for each account + account_names_service_control_policy_statements_map = { + for k, v in local.account_names_service_control_policy_ids_map : k => [ + for sid in v : local.all_service_control_policy_statements_map[sid] + ] + } + + # Map of OU names to list of Service Control Policy SIDs for each OU + organizational_unit_names_service_control_policy_ids_map = length(local.organizational_units) > 0 ? { + for ou in local.organizational_units : ou.name => ou.service_control_policies if try(ou.service_control_policies, null) != null + } : {} + + # Map of OU names to list of Service Control Policy statements for each OU + organizational_unit_names_service_control_policy_statements_map = { + for k, v in local.organizational_unit_names_service_control_policy_ids_map : k => [ + for sid in v : local.all_service_control_policy_statements_map[sid] + ] + } +} + +# Convert all Service Control Policy statements from YAML config to Terraform list +module "service_control_policy_statements_yaml_config" { + source = "cloudposse/config/yaml" + version = "1.0.2" + + list_config_local_base_path = path.module + list_config_paths = var.service_control_policies_config_paths + + context = module.this.context +} + +# Provision Organization or use existing one +data "aws_organizations_organization" "existing" { + count = var.organization_enabled ? 0 : 1 +} + +resource "aws_organizations_organization" "this" { + count = var.organization_enabled ? 1 : 0 + aws_service_access_principals = var.aws_service_access_principals + enabled_policy_types = var.enabled_policy_types + feature_set = "ALL" +} + +locals { + organization_root_account_id = var.organization_enabled ? aws_organizations_organization.this[0].roots[0].id : data.aws_organizations_organization.existing[0].roots[0].id + + organization_id = var.organization_enabled ? aws_organizations_organization.this[0].id : data.aws_organizations_organization.existing[0].id + + organization_arn = var.organization_enabled ? aws_organizations_organization.this[0].arn : data.aws_organizations_organization.existing[0].arn + + organization_master_account_id = var.organization_enabled ? aws_organizations_organization.this[0].master_account_id : data.aws_organizations_organization.existing[0].master_account_id + + organization_master_account_arn = var.organization_enabled ? aws_organizations_organization.this[0].master_account_arn : data.aws_organizations_organization.existing[0].master_account_arn + + organization_master_account_email = var.organization_enabled ? aws_organizations_organization.this[0].master_account_email : data.aws_organizations_organization.existing[0].master_account_email +} + +# Provision Accounts for Organization (not connected to OUs) +resource "aws_organizations_account" "organization_accounts" { + for_each = local.organization_accounts_map + name = each.value.name + email = format(each.value.account_email_format, each.value.name) + iam_user_access_to_billing = var.account_iam_user_access_to_billing + tags = merge(module.this.tags, try(each.value.tags, {}), { Name : each.value.name }) + + lifecycle { + ignore_changes = [iam_user_access_to_billing] + } +} + +# Provision Organizational Units w/o Child Orgs +resource "aws_organizations_organizational_unit" "this" { + for_each = { for key, value in local.organizational_units_map : key => value if value.parent_ou == "none" } + name = each.value.name + parent_id = local.organization_root_account_id +} + +# Provision Child Organizational Units +resource "aws_organizations_organizational_unit" "child" { + for_each = { for key, value in local.organizational_units_map : key => value if value.parent_ou != "none" } + name = each.value.name + parent_id = aws_organizations_organizational_unit.this[each.value.parent_ou].id +} + +# Provision Accounts connected to Organizational Units +resource "aws_organizations_account" "organizational_units_accounts" { + for_each = local.organizational_units_accounts_map + name = each.value.name + parent_id = each.value.parent_ou != "none" ? aws_organizations_organizational_unit.child[each.value.ou].id : aws_organizations_organizational_unit.this[local.account_names_organizational_unit_names_map[each.value.name]].id + email = try(format(each.value.account_email_format, each.value.name), each.value.account_email_format) + iam_user_access_to_billing = var.account_iam_user_access_to_billing + tags = merge(module.this.tags, try(each.value.tags, {}), { Name : each.value.name }) + + lifecycle { + ignore_changes = [iam_user_access_to_billing] + } +} + +# Provision Organization Service Control Policy +module "organization_service_control_policies" { + source = "cloudposse/service-control-policies/aws" + version = "0.9.2" + + count = length(local.organization_service_control_policy_statements) > 0 ? 1 : 0 + + attributes = concat(module.this.attributes, ["organization"]) + service_control_policy_statements = local.organization_service_control_policy_statements + service_control_policy_description = "Organization Service Control Policy" + target_id = local.organization_root_account_id + + context = module.this.context +} + +# Provision Accounts Service Control Policies +module "accounts_service_control_policies" { + source = "cloudposse/service-control-policies/aws" + version = "0.9.2" + + for_each = local.account_names_service_control_policy_statements_map + + attributes = concat(module.this.attributes, [each.key, "account"]) + service_control_policy_statements = each.value + service_control_policy_description = "'${each.key}' Account Service Control Policy" + target_id = local.account_names_account_ids[each.key] + + context = module.this.context +} + +# Provision Organizational Units Service Control Policies +module "organizational_units_service_control_policies" { + source = "cloudposse/service-control-policies/aws" + version = "0.9.2" + + for_each = local.organizational_unit_names_service_control_policy_statements_map + + attributes = concat(module.this.attributes, [each.key, "ou"]) + service_control_policy_statements = each.value + service_control_policy_description = "'${each.key}' Organizational Unit Service Control Policy" + target_id = local.organizational_unit_names_organizational_unit_ids[each.key] + + context = module.this.context +} + + +# Locals for outputs +locals { + # List of names of all accounts (belonging to Organization and Organizational Units) + all_account_names = concat( + values(aws_organizations_account.organization_accounts)[*]["name"], + values(aws_organizations_account.organizational_units_accounts)[*]["name"] + ) + + # List of ARNs of all accounts (belonging to Organization and Organizational Units) + all_account_arns = concat( + values(aws_organizations_account.organization_accounts)[*]["arn"], + values(aws_organizations_account.organizational_units_accounts)[*]["arn"] + ) + + # List of IDs of all accounts (belonging to Organization and Organizational Units) + all_account_ids = concat( + values(aws_organizations_account.organization_accounts)[*]["id"], + values(aws_organizations_account.organizational_units_accounts)[*]["id"] + ) + + # Map of account names to account ARNs + account_names_account_arns = zipmap(local.all_account_names, local.all_account_arns) + + # Map of account names to account IDs + account_names_account_ids = zipmap(local.all_account_names, local.all_account_ids) + + # Map of OU names to OU ARNs + organizational_unit_names_organizational_unit_arns = zipmap(local.organizational_unit_names, local.organizational_unit_arns) + + # Map of OU names to OU IDs + organizational_unit_names_organizational_unit_ids = zipmap(local.organizational_unit_names, local.organizational_unit_ids) + + # Names of the accounts with EKS cluster + eks_account_names = [ + for acc in local.all_accounts : acc.name if lookup(try(acc.tags, {}), "eks", false) == true + ] + + # Names of the non-EKS accounts + non_eks_account_names = concat( + [lookup(var.organization_config.root_account, "name", "root")], + [for acc in local.all_accounts : acc.name if lookup(try(acc.tags, {}), "eks", false) == false] + ) + + # Map of account names to SCP IDs + account_names_account_scp_ids = { + for k, v in local.account_names_service_control_policy_statements_map : k => module.accounts_service_control_policies[k].organizations_policy_id + } + + # Map of account names to SCP ARNs + account_names_account_scp_arns = { + for k, v in local.account_names_service_control_policy_statements_map : k => module.accounts_service_control_policies[k].organizations_policy_arn + } + + # Map of OU names to SCP IDs + organizational_unit_names_organizational_unit_scp_ids = { + for k, v in local.organizational_unit_names_service_control_policy_statements_map : k => module.organizational_units_service_control_policies[k].organizations_policy_id + } + + # Map of OU names to SCP ARNs + organizational_unit_names_organizational_unit_scp_arns = { + for k, v in local.organizational_unit_names_service_control_policy_statements_map : k => module.organizational_units_service_control_policies[k].organizations_policy_arn + } + + account_info_map = merge({ for acc in local.all_accounts : acc.name => merge({ for k, v in acc : k => v if k != "name" }, + { + eks = tobool(lookup(try(acc.tags, {}), "eks", false)) + id = local.account_names_account_ids[acc.name] + tenant = try(acc.tenant, var.tenant) + stage = try(acc.stage, acc.name) + }) }, + { + (var.organization_config.root_account.name) = merge({ for k, v in var.organization_config.root_account : k => v if k != "name" }, { + id = local.organization_master_account_id + eks = tobool(lookup(try(var.organization_config.root_account.tags, {}), "eks", false)) + tenant = var.tenant + stage = try(var.organization_config.root_account.stage, var.organization_config.root_account.name) + }) + }) + +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/outputs.tf new file mode 100644 index 0000000..51b21c1 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/outputs.tf @@ -0,0 +1,115 @@ +output "account_arns" { + value = local.all_account_arns + description = "List of account ARNs (excluding root account)" +} + +output "account_ids" { + value = local.all_account_ids + description = "List of account IDs (excluding root account)" +} + +output "organizational_unit_arns" { + value = local.organizational_unit_arns + description = "List of Organizational Unit ARNs" +} + +output "organizational_unit_ids" { + value = local.organizational_unit_ids + description = "List of Organizational Unit IDs" +} + +output "account_info_map" { + value = local.account_info_map + description = <<-EOT + Map of account names to + eks: boolean, account hosts at least one EKS cluster + id: account id (number) + stage: (optional) the account "stage" + tenant: (optional) the account "tenant" + EOT +} + +output "account_names_account_arns" { + value = local.account_names_account_arns + description = "Map of account names to account ARNs (excluding root account)" +} + +output "account_names_account_ids" { + value = local.account_names_account_ids + description = "Map of account names to account IDs (excluding root account)" +} + +output "organizational_unit_names_organizational_unit_arns" { + value = local.organizational_unit_names_organizational_unit_arns + description = "Map of Organizational Unit names to Organizational Unit ARNs" +} + +output "organizational_unit_names_organizational_unit_ids" { + value = local.organizational_unit_names_organizational_unit_ids + description = "Map of Organizational Unit names to Organizational Unit IDs" +} + +output "organization_id" { + value = local.organization_id + description = "Organization ID" +} + +output "organization_arn" { + value = local.organization_arn + description = "Organization ARN" +} + +output "organization_master_account_id" { + value = local.organization_master_account_id + description = "Organization master account ID" +} + +output "organization_master_account_arn" { + value = local.organization_master_account_arn + description = "Organization master account ARN" +} + +output "organization_master_account_email" { + value = local.organization_master_account_email + description = "Organization master account email" +} + +output "eks_accounts" { + value = local.eks_account_names + description = "List of EKS accounts" +} + +output "non_eks_accounts" { + value = local.non_eks_account_names + description = "List of non EKS accounts" +} + +output "organization_scp_id" { + value = join("", module.organization_service_control_policies.*.organizations_policy_id) + description = "Organization Service Control Policy ID" +} + +output "organization_scp_arn" { + value = join("", module.organization_service_control_policies.*.organizations_policy_arn) + description = "Organization Service Control Policy ARN" +} + +output "account_names_account_scp_ids" { + value = local.account_names_account_scp_ids + description = "Map of account names to SCP IDs for accounts with SCPs" +} + +output "account_names_account_scp_arns" { + value = local.account_names_account_scp_arns + description = "Map of account names to SCP ARNs for accounts with SCPs" +} + +output "organizational_unit_names_organizational_unit_scp_ids" { + value = local.organizational_unit_names_organizational_unit_scp_ids + description = "Map of OU names to SCP IDs" +} + +output "organizational_unit_names_organizational_unit_scp_arns" { + value = local.organizational_unit_names_organizational_unit_scp_arns + description = "Map of OU names to SCP ARNs" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/providers.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/providers.tf new file mode 100644 index 0000000..dc58d9a --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/providers.tf @@ -0,0 +1,3 @@ +provider "aws" { + region = var.region +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/variables.tf new file mode 100644 index 0000000..a2980bc --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/variables.tf @@ -0,0 +1,41 @@ +variable "region" { + type = string + description = "AWS Region" +} + +variable "account_email_format" { + type = string + description = "Email address format for the accounts (e.g. `aws+%s@example.com`)" +} + +variable "account_iam_user_access_to_billing" { + type = string + description = "If set to `ALLOW`, the new account enables IAM users to access account billing information if they have the required permissions. If set to `DENY`, then only the root user of the new account can access account billing information" + default = "DENY" +} + +variable "aws_service_access_principals" { + type = list(string) + description = "List of AWS service principal names for which you want to enable integration with your organization. This is typically in the form of a URL, such as service-abbreviation.amazonaws.com. Organization must have `feature_set` set to ALL. For additional information, see the [AWS Organizations User Guide](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html)" +} + +variable "enabled_policy_types" { + type = list(string) + description = "List of Organizations policy types to enable in the Organization Root. Organization must have feature_set set to ALL. For additional information about valid policy types (e.g. SERVICE_CONTROL_POLICY and TAG_POLICY), see the [AWS Organizations API Reference](https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnablePolicyType.html)" +} + +variable "organization_config" { + type = any + description = "Organization, Organizational Units and Accounts configuration" +} + +variable "service_control_policies_config_paths" { + type = list(string) + description = "List of paths to Service Control Policy configurations" +} + +variable "organization_enabled" { + type = bool + description = "A boolean flag indicating whether to create an Organization or use the existing one" + default = true +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/versions.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/versions.tf new file mode 100644 index 0000000..cc73ffd --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/account/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.0.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.9.0" + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/fixture.json new file mode 100644 index 0000000..6eb68ab --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/fixture.json @@ -0,0 +1,39 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/aurora-mysql-resources/modules/mysql-user", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "3896870b1d9ba33ea836e3ced528e63603df36ed450cf7c16ed8047d68701c01" + }, + "license": "Apache-2.0", + "providers": [ + "mysql", + "random" + ], + "features": [ + "conditionals", + "count", + "depends_on", + "for_expressions", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/main.tf new file mode 100644 index 0000000..70d071c --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/main.tf @@ -0,0 +1,84 @@ +locals { + enabled = module.this.enabled + + db_user = length(var.db_user) > 0 ? var.db_user : var.service_name + db_password = length(var.db_password) > 0 ? var.db_password : join("", random_password.db_password.*.result) + + save_password_in_ssm = local.enabled && var.save_password_in_ssm + + db_password_key = format("%s/%s/passwords/%s", var.ssm_path_prefix, var.service_name, local.db_user) + db_password_ssm = local.save_password_in_ssm ? { + name = local.db_password_key + value = local.db_password + description = "MySQL Password for DB user ${local.db_user}" + type = "SecureString" + overwrite = true + } : null + + parameter_write = local.save_password_in_ssm ? [local.db_password_ssm] : [] + + # You cannot grant "ALL" to an RDS user because "ALL" includes privileges that Master does not have (because this is a managed database). + # Instead, use "ALL PRIVILEGES" + # See the full list of available options at https://docs.amazonaws.cn/en_us/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Security.html + all_rds_app_grants = [ + "ALL PRIVILEGES" + ] + all_rds_other_grants = [ + "CREATE USER", + "GRANT OPTION", + "PROCESS", + "RELOAD", + "REPLICATION CLIENT", + "REPLICATION SLAVE", + "SHOW DATABASES", + ] + all_grants = distinct(concat(local.all_rds_app_grants, local.all_rds_other_grants)) +} + +resource "random_password" "db_password" { + count = local.enabled && length(var.db_password) == 0 ? 1 : 0 + length = 33 + special = false + + keepers = { + db_user = local.db_user + } +} + +resource "mysql_user" "default" { + count = local.enabled ? 1 : 0 + user = local.db_user + host = "%" + plaintext_password = local.db_password +} + +# Grant the user full access to this specific database +resource "mysql_grant" "default" { + count = local.enabled ? length(var.grants) : 0 + user = join("", mysql_user.default.*.user) + host = join("", mysql_user.default.*.host) + database = split(".", var.grants[count.index].db)[0] + # We would like to use + # table = try(split(".", var.grants[count.index].db)[1], "*") + # but when we create the database, no tables exist, and we cannot + # limit a grant to a non-existent table. + table = "*" + + privileges = flatten([for grant in var.grants[count.index].grant : ( + grant == "ALL_APP" ? local.all_rds_app_grants : grant == "ALL" ? local.all_grants : [grant] + )]) + + depends_on = [mysql_user.default] +} + +module "parameter_store_write" { + source = "cloudposse/ssm-parameter-store/aws" + version = "0.10.0" + + # kms_arn will only be used for SecureString parameters + kms_arn = var.kms_key_id # not necessarily ARN — alias works too + + parameter_write = local.parameter_write + + context = module.this.context +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/outputs.tf new file mode 100644 index 0000000..8756afb --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/outputs.tf @@ -0,0 +1,14 @@ +output "notice" { + value = local.save_password_in_ssm ? "Password for user ${local.db_user} is stored in SSM under ${local.db_password_key}" : null + description = "Note to user" +} + +output "password_ssm_key" { + value = local.save_password_in_ssm ? local.db_password_key : null + description = "SSM key under which user password is stored" +} + +output "db_user" { + value = local.db_user + description = "DB user name" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/variables.tf new file mode 100644 index 0000000..8815038 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/variables.tf @@ -0,0 +1,48 @@ +variable "service_name" { + type = string + description = "Name of service owning the database (used in SSM key)" +} + +variable "db_user" { + type = string + description = "MySQL admin user name (default is service name)" + default = "" +} + +variable "db_password" { + type = string + description = "MySQL password for the admin user (generated if not provided)" + default = "" +} + +variable "grants" { + type = list(object({ + grant : list(string) + db : string + })) + description = <<-EOT + List of { grant: "[, , ...]", db: "db" }. + Normal grants plus `ALL_APP` for all RDS allowed grants that an app should need + (can be limited to a single database). `ALL` is not the normal MySQL `ALL` but + is all the grants RDS allows. + EOT + default = [{ grant : ["ALL_APP"], db : "*" }] +} + +variable "ssm_path_prefix" { + type = string + default = "rds" + description = "SSM path prefix" +} + +variable "save_password_in_ssm" { + type = bool + default = true + description = "If true, DB user's password will be stored in SSM" +} + +variable "kms_key_id" { + type = string + default = "alias/aws/rds" + description = "KMS key ID, ARN, or alias to use for encrypting MySQL database" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/versions.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/versions.tf new file mode 100644 index 0000000..c62bcb7 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-mysql-resources/modules/mysql-user/input/versions.tf @@ -0,0 +1,18 @@ +terraform { + required_version = ">= 1.0.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.0" + } + mysql = { + source = "petoju/mysql" + version = ">= 3.0.22" + } + random = { + source = "hashicorp/random" + version = ">= 2.2" + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/fixture.json new file mode 100644 index 0000000..da32d4f --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/fixture.json @@ -0,0 +1,38 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/aurora-postgres-resources/modules/postgresql-user", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "1db4964d686e3461e1eb790e4eb14237a5ade0e0f6518f5b3917545c2018d97f" + }, + "license": "Apache-2.0", + "providers": [ + "postgresql", + "random" + ], + "features": [ + "conditionals", + "count", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "sensitive", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/main.tf new file mode 100644 index 0000000..0cb4c2b --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/main.tf @@ -0,0 +1,69 @@ +locals { + enabled = module.this.enabled + + db_user = length(var.db_user) > 0 ? var.db_user : var.service_name + db_password = length(var.db_password) > 0 ? var.db_password : join("", random_password.db_password.*.result) + + save_password_in_ssm = local.enabled && var.save_password_in_ssm + + db_password_key = format("%s/%s/passwords/%s", var.ssm_path_prefix, var.service_name, local.db_user) + db_password_ssm = local.save_password_in_ssm ? { + name = local.db_password_key + value = local.db_password + description = "Postgres Password for DB user ${local.db_user}" + type = "SecureString" + overwrite = true + } : null + + parameter_write = local.save_password_in_ssm ? [local.db_password_ssm] : [] + + # ALL grant always shows Terraform drift: + # https://github.com/cyrilgdn/terraform-provider-postgresql/issues/32 + # To workaround, expand what an ALL grant means for db or table + # https://github.com/cyrilgdn/terraform-provider-postgresql/blob/master/postgresql/helpers.go#L237-L244 + all_privileges_database = ["CREATE", "CONNECT", "TEMPORARY"] + all_privileges_schema = ["CREATE", "USAGE"] +} + +resource "random_password" "db_password" { + count = local.enabled && length(var.db_password) == 0 ? 1 : 0 + length = 33 + special = false + + keepers = { + db_user = local.db_user + } +} + +resource "postgresql_role" "default" { + count = local.enabled ? 1 : 0 + name = local.db_user + password = local.db_password + login = true +} + +# Apply the configured grants to the user +resource "postgresql_grant" "default" { + count = local.enabled ? length(var.grants) : 0 + role = join("", postgresql_role.default.*.name) + database = var.grants[count.index].db + schema = var.grants[count.index].schema + object_type = var.grants[count.index].object_type + + # Conditionally set the privileges to either the explicit list of database privileges + # or schema privileges if this is a db grant or a schema grant respectively. + # We can determine this is a schema grant if a schema is given + privileges = contains(var.grants[count.index].grant, "ALL") ? ((length(var.grants[count.index].schema) > 0) ? local.all_privileges_schema : local.all_privileges_database) : var.grants[count.index].grant +} + +module "parameter_store_write" { + source = "cloudposse/ssm-parameter-store/aws" + version = "0.10.0" + + # kms_arn will only be used for SecureString parameters + kms_arn = var.kms_key_id # not necessarily ARN — alias works too + + parameter_write = local.parameter_write + + context = module.this.context +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/outputs.tf new file mode 100644 index 0000000..10bcebb --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/outputs.tf @@ -0,0 +1,20 @@ +output "notice" { + value = "Password for user ${local.db_user} is stored in SSM under ${local.db_password_key}" + description = "Note to user" +} + +output "db_user" { + value = local.db_user + description = "DB user name" +} + +output "db_user_password" { + value = local.db_password + description = "DB user password" + sensitive = true +} + +output "db_user_password_ssm_key" { + value = local.db_password_key + description = "SSM key under which user password is stored" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/variables.tf new file mode 100644 index 0000000..2cd7457 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/variables.tf @@ -0,0 +1,47 @@ +variable "service_name" { + type = string + description = "Name of service owning the database (used in SSM key)" +} + +variable "db_user" { + type = string + description = "PostgreSQL user name to create (default is service name)" + default = "" +} + +variable "db_password" { + type = string + description = "PostgreSQL password created user (generated if not provided)" + default = "" +} + +variable "grants" { + type = list(object({ + grant : list(string) + db : string + schema : optional(string, "") + object_type : string + })) + description = <<-EOT + List of { grant: [, , ...], db: "db", schema: "", object_type: "database"}. + EOT + default = [{ grant : ["ALL"], db : "*", schema : "", object_type : "database" }] +} + +variable "ssm_path_prefix" { + type = string + default = "aurora-postgres" + description = "SSM path prefix (without leading or trailing slash)" +} + +variable "save_password_in_ssm" { + type = bool + default = true + description = "If true, DB user's password will be stored in SSM" +} + +variable "kms_key_id" { + type = string + default = "alias/aws/rds" + description = "KMS key ID, ARN, or alias to use for encrypting the database" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/versions.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/versions.tf new file mode 100644 index 0000000..6b2f61a --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aurora-postgres-resources/modules/postgresql-user/input/versions.tf @@ -0,0 +1,18 @@ +terraform { + required_version = ">= 1.3.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.9.0" + } + random = { + source = "hashicorp/random" + version = ">= 2.3" + } + postgresql = { + source = "cyrilgdn/postgresql" + version = ">= 1.17.1" + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/fixture.json new file mode 100644 index 0000000..041d8bd --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/fixture.json @@ -0,0 +1,36 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/aws-config/modules/org-conformance-pack", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "3c5035d84b38474da0679812ece5cb44dbccfd1f2add09c022267974d7f17ba8" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "data", + "dynamic", + "for_each", + "functions", + "heredoc", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/main.tf new file mode 100644 index 0000000..b2c0215 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/main.tf @@ -0,0 +1,17 @@ +resource "aws_config_organization_conformance_pack" "default" { + name = module.this.name + + dynamic "input_parameter" { + for_each = var.parameter_overrides + content { + parameter_name = input_parameter.key + parameter_value = input_parameter.value + } + } + + template_body = data.http.conformance_pack.body +} + +data "http" "conformance_pack" { + url = var.conformance_pack +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/outputs.tf new file mode 100644 index 0000000..f3b7cef --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/outputs.tf @@ -0,0 +1,4 @@ +output "arn" { + value = aws_config_organization_conformance_pack.default.arn + description = "ARN for the AWS Config Organization Conformance Pack" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/variables.tf new file mode 100644 index 0000000..cb92dbf --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/variables.tf @@ -0,0 +1,10 @@ +variable "conformance_pack" { + type = string + description = "The URL to a Conformance Pack" +} + +variable "parameter_overrides" { + type = map(any) + description = "A map of parameters names to values to override from the template" + default = {} +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/versions.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/versions.tf new file mode 100644 index 0000000..cff3847 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-config/modules/org-conformance-pack/input/versions.tf @@ -0,0 +1,15 @@ +terraform { + required_version = ">= 1.0.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.0" + } + + http = { + source = "hashicorp/http" + version = ">= 2.1.0" + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/fixture.json new file mode 100644 index 0000000..71e3244 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/aws-saml/modules/okta-user", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "17ccd3e38e60b8bcf511bebb53e5f97e3dbc5ef7fffe661059a954ae74626a9e" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "resources", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/main.tf new file mode 100644 index 0000000..e309cfe --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/main.tf @@ -0,0 +1,60 @@ +locals { + enabled = module.this.enabled +} + +resource "aws_iam_user" "default" { + count = local.enabled ? 1 : 0 + + name = module.this.id + tags = module.this.tags + force_destroy = true +} + +# https://saml-doc.okta.com/SAML_Docs/How-to-Configure-SAML-2.0-for-Amazon-Web-Service.html +data "aws_iam_policy_document" "default" { + statement { + sid = "AllowOktaUserToListIamRoles" + actions = [ + "iam:ListRoles", + "iam:ListAccountAliases" + ] + resources = ["*"] + } +} + +resource "aws_iam_policy" "default" { + name = module.this.id + description = "Policy for Okta user" + policy = data.aws_iam_policy_document.default.json + tags = module.this.tags +} + +resource "aws_iam_user_policy_attachment" "default" { + user = one(aws_iam_user.default[*].name) + policy_arn = aws_iam_policy.default.arn +} + +# Generate API credentials +resource "aws_iam_access_key" "default" { + user = one(aws_iam_user.default[*].name) +} + +resource "aws_ssm_parameter" "okta_user_access_key_id" { + name = "/sso/${module.this.id}/access_key_id" + value = aws_iam_access_key.default.id + description = "Access Key ID for Okta user" + type = "SecureString" + key_id = var.kms_alias_name + overwrite = true + tags = module.this.tags +} + +resource "aws_ssm_parameter" "okta_user_secret_access_key" { + name = "/sso/${module.this.id}/secret_access_key" + value = aws_iam_access_key.default.secret + description = "Secret Access Key for Okta user" + type = "SecureString" + key_id = var.kms_alias_name + overwrite = true + tags = module.this.tags +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/outputs.tf new file mode 100644 index 0000000..9472405 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/outputs.tf @@ -0,0 +1,14 @@ +output "user_name" { + value = one(aws_iam_user.default[*].name) + description = "User name" +} + +output "user_arn" { + value = one(aws_iam_user.default[*].arn) + description = "User ARN" +} + +output "ssm_prefix" { + value = "AWS Key for ${one(aws_iam_user.default[*].name)} is in Systems Manager Parameter Store under ${aws_ssm_parameter.okta_user_access_key_id.name} and ${aws_ssm_parameter.okta_user_secret_access_key.name}" + description = "Where to find the AWS API key information for the user" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/variables.tf new file mode 100644 index 0000000..7b2be6d --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/aws-saml/modules/okta-user/input/variables.tf @@ -0,0 +1,5 @@ +# AWS KMS alias used for encryption/decryption +# default is alias used in SSM +variable "kms_alias_name" { + default = "alias/aws/ssm" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/fixture.json new file mode 100644 index 0000000..38ebc4f --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/fixture.json @@ -0,0 +1,33 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/eks/cluster/modules/node_group_by_az", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "6de3ae45c91a44670e0538158c2ddcba5698558a4b7220f7f4d882bcb6e861a1" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "functions", + "heredoc", + "locals", + "modules", + "outputs", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/main.tf new file mode 100644 index 0000000..8172f0a --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/main.tf @@ -0,0 +1,81 @@ +data "aws_subnets" "private" { + count = local.enabled ? 1 : 0 + + tags = { + (var.cluster_context.subnet_type_tag_key) = "private" + } + + filter { + name = "vpc-id" + values = [var.cluster_context.vpc_id] + } + + filter { + name = "availability-zone" + values = [var.availability_zone] + } +} + +module "az_abbreviation" { + source = "cloudposse/utils/aws" + version = "1.3.0" +} + +locals { + enabled = module.this.enabled && length(var.availability_zone) > 0 + sentinel = "~~" + subnet_ids_test = coalescelist(flatten(data.aws_subnets.private[*].ids), [local.sentinel]) + subnet_ids = local.subnet_ids_test[0] == local.sentinel ? null : local.subnet_ids_test + az_map = var.cluster_context.az_abbreviation_type == "short" ? module.az_abbreviation.region_az_alt_code_maps.to_short : module.az_abbreviation.region_az_alt_code_maps.to_fixed + az_attribute = local.az_map[var.availability_zone] + + before_cluster_joining_userdata = var.cluster_context.node_userdata.before_cluster_joining_userdata != null ? [trimspace(var.cluster_context.node_userdata.before_cluster_joining_userdata)] : [] + bootstrap_extra_args = var.cluster_context.node_userdata.bootstrap_extra_args != null ? [trimspace(var.cluster_context.node_userdata.bootstrap_extra_args)] : [] + kubelet_extra_args = var.cluster_context.node_userdata.kubelet_extra_args != null ? [trimspace(var.cluster_context.node_userdata.kubelet_extra_args)] : [] + after_cluster_joining_userdata = var.cluster_context.node_userdata.after_cluster_joining_userdata != null ? [trimspace(var.cluster_context.node_userdata.after_cluster_joining_userdata)] : [] + +} + +module "eks_node_group" { + source = "cloudposse/eks-node-group/aws" + version = "3.0.1" + + enabled = local.enabled + + attributes = length(var.availability_zone) > 0 ? flatten([module.this.attributes, local.az_attribute]) : module.this.attributes + + desired_size = local.enabled ? var.node_group_size.desired_size : null + min_size = local.enabled ? var.node_group_size.min_size : null + max_size = local.enabled ? var.node_group_size.max_size : null + + # NOTE: the following values are using the migration pattern outlined + # https://github.com/cloudposse/terraform-aws-eks-node-group/blob/34be126797af6673ca0375d6e60bca5616257786/MIGRATION.md#block_device_mappings + + cluster_name = local.enabled ? var.cluster_context.cluster_name : null + create_before_destroy = local.enabled ? var.cluster_context.create_before_destroy : null + cluster_autoscaler_enabled = local.enabled ? var.cluster_context.cluster_autoscaler_enabled : null + instance_types = local.enabled ? var.cluster_context.instance_types : null + ami_type = local.enabled ? var.cluster_context.ami_type : null + ami_release_version = local.enabled && length(compact([var.cluster_context.ami_release_version])) != 0 ? [var.cluster_context.ami_release_version] : [] + kubernetes_labels = local.enabled ? var.cluster_context.kubernetes_labels : null + kubernetes_taints = local.enabled ? var.cluster_context.kubernetes_taints : [] + kubernetes_version = local.enabled && length(compact([var.cluster_context.kubernetes_version])) != 0 ? [var.cluster_context.kubernetes_version] : [] + resources_to_tag = local.enabled ? var.cluster_context.resources_to_tag : null + subnet_ids = local.enabled ? local.subnet_ids : null + + # node_userdata + before_cluster_joining_userdata = local.enabled ? local.before_cluster_joining_userdata : [] + bootstrap_additional_options = local.enabled ? local.bootstrap_extra_args : [] + kubelet_additional_options = local.enabled ? local.kubelet_extra_args : [] + after_cluster_joining_userdata = local.enabled ? local.after_cluster_joining_userdata : [] + + + block_device_map = local.enabled ? var.cluster_context.block_device_map : null + + # Prevent the node groups from being created before the Kubernetes aws-auth configMap + module_depends_on = var.cluster_context.module_depends_on + + node_role_policy_arns = var.cluster_context.aws_ssm_agent_enabled ? ["arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"] : [] + + context = module.this.context +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/outputs.tf new file mode 100644 index 0000000..30cba19 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/outputs.tf @@ -0,0 +1,4 @@ +output "node_group" { + description = "The EKS node group" + value = module.eks_node_group +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/variables.tf new file mode 100644 index 0000000..a167d6a --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/eks/cluster/modules/node_group_by_az/input/variables.tf @@ -0,0 +1,64 @@ +variable "availability_zone" { + type = string + description = "The availability zone to deploy the node group in" +} + +variable "node_group_size" { + type = object({ + desired_size = number + min_size = number + max_size = number + }) + description = "The desired, minimum and maximum size of the node group in this availability zone" +} + +variable "cluster_context" { + type = object({ + ami_release_version = string + ami_type = string + az_abbreviation_type = string + cluster_autoscaler_enabled = bool + cluster_name = string + create_before_destroy = bool + # Obsolete, replaced by block_device_map + # disk_encryption_enabled = bool + # disk_size = number + instance_types = list(string) + kubernetes_labels = map(string) + kubernetes_taints = list(object({ + key = string + value = string + effect = string + })) + node_userdata = object({ + before_cluster_joining_userdata = optional(string) + bootstrap_extra_args = optional(string) + kubelet_extra_args = optional(string) + after_cluster_joining_userdata = optional(string) + }) + kubernetes_version = string + module_depends_on = any + resources_to_tag = list(string) + subnet_type_tag_key = string + aws_ssm_agent_enabled = bool + vpc_id = string + + # block_device_map copied from cloudposse/terraform-aws-eks-node-group + # Really, nothing is optional, but easier to keep in sync via copy and paste + block_device_map = map(object({ + no_device = optional(bool, null) + virtual_name = optional(string, null) + ebs = optional(object({ + delete_on_termination = optional(bool, true) + encrypted = optional(bool, true) + iops = optional(number, null) + kms_key_id = optional(string, null) + snapshot_id = optional(string, null) + throughput = optional(number, null) + volume_size = optional(number, 20) + volume_type = optional(string, "gp3") + })) + })) + }) + description = "The common settings for all node groups." +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/fixture.json new file mode 100644 index 0000000..939e36b --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/elasticache-redis/modules/redis_cluster", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "e213da1e6760126fedab97758c81c97c693b0777d528dc6e47ce6dd55ffd8ac0" + }, + "license": "Apache-2.0", + "providers": [ + "random" + ], + "features": [ + "conditionals", + "count", + "functions", + "heredoc", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/main.tf new file mode 100644 index 0000000..46f9555 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/main.tf @@ -0,0 +1,91 @@ +locals { + enabled = module.this.enabled + + auth_token_enabled = local.enabled && var.cluster_attributes.transit_encryption_enabled && var.cluster_attributes.auth_token_enabled + + ssm_path_auth_token = local.auth_token_enabled ? format("/%s/%s/%s", "elasticache-redis", var.cluster_name, "auth_token") : null + + auth_token = local.auth_token_enabled ? join("", random_password.auth_token.*.result) : null +} + +module "redis" { + source = "cloudposse/elasticache-redis/aws" + version = "1.7.0" + + name = var.cluster_name + + additional_security_group_rules = var.cluster_attributes.additional_security_group_rules + allow_all_egress = var.cluster_attributes.allow_all_egress + allowed_security_group_ids = var.cluster_attributes.allowed_security_groups + apply_immediately = var.cluster_attributes.apply_immediately + at_rest_encryption_enabled = var.cluster_attributes.at_rest_encryption_enabled + auth_token = local.auth_token + auto_minor_version_upgrade = var.cluster_attributes.auto_minor_version_upgrade + automatic_failover_enabled = var.cluster_attributes.automatic_failover_enabled + availability_zones = var.cluster_attributes.availability_zones + multi_az_enabled = var.cluster_attributes.multi_az_enabled + cluster_mode_enabled = var.num_shards > 0 + cluster_mode_num_node_groups = var.num_shards + cluster_mode_replicas_per_node_group = var.replicas_per_shard + cluster_size = var.num_replicas + dns_subdomain = var.dns_subdomain + engine = var.engine + engine_version = var.engine_version + family = var.cluster_attributes.family + instance_type = var.instance_type + create_parameter_group = var.create_parameter_group + parameter = var.parameters + parameter_group_name = var.parameter_group_name + port = var.cluster_attributes.port + subnets = var.cluster_attributes.subnets + transit_encryption_enabled = var.cluster_attributes.transit_encryption_enabled + snapshot_retention_limit = var.cluster_attributes.snapshot_retention_limit + vpc_id = var.cluster_attributes.vpc_id + zone_id = var.cluster_attributes.zone_id + + context = module.this.context +} + +# https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/auth.html +resource "random_password" "auth_token" { + count = local.auth_token_enabled ? 1 : 0 + + # min 16, max 128 + length = 128 + special = true + + # Original chars + # override_special = "!&#$^<>-" + # Removed $ and ! to avoid issues with environment variables + override_special = "#^-" + + min_upper = 3 + min_lower = 3 + min_numeric = 3 + min_special = 3 + + keepers = { + cluster_name = var.cluster_name + } +} + +module "parameter_store_write" { + source = "cloudposse/ssm-parameter-store/aws" + version = "0.10.0" + + enabled = local.auth_token_enabled + + kms_arn = var.kms_alias_name_ssm + + parameter_write = [ + { + name = local.ssm_path_auth_token + value = local.auth_token + description = "Redis auth_token" + type = "SecureString" + overwrite = true + }, + ] + + context = module.this.context +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/outputs.tf new file mode 100644 index 0000000..3d65a11 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/outputs.tf @@ -0,0 +1,29 @@ +output "cluster_id" { + value = module.redis.id + description = "Redis cluster ID" +} + +output "cluster_security_group_id" { + value = module.redis.security_group_id + description = "Cluster Security Group ID" +} + +output "cluster_endpoint" { + value = module.redis.endpoint + description = "Redis primary endpoint" +} + +output "cluster_host" { + value = module.redis.host + description = "Redis hostname" +} + +output "cluster_port" { + value = module.redis.port + description = "Redis port" +} + +output "cluster_ssm_path_auth_token" { + value = local.ssm_path_auth_token + description = "SSM path of Redis auth_token" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/variables.tf new file mode 100644 index 0000000..9d87291 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/variables.tf @@ -0,0 +1,93 @@ +# API Response Redis Cluster Vars + +variable "cluster_name" { + type = string + description = "Elasticache Cluster name" +} + +variable "create_parameter_group" { + type = bool + default = true + description = "Whether new parameter group should be created. Set to false if you want to use existing parameter group" +} + +variable "engine" { + type = string + default = "redis" + description = "Name of the cache engine to use: either `redis` or `valkey`" +} + +variable "engine_version" { + type = string + description = "Version of the cache engine to use" + default = "6.0.5" +} + +variable "dns_subdomain" { + type = string + description = "Name of DNS subdomain to prepend to Route53 zone DNS name" +} + +variable "num_replicas" { + type = number + description = "Number of replicas in replica set" +} + +variable "instance_type" { + type = string + description = "Elastic cache instance type" +} + +variable "num_shards" { + type = number + description = "Number of node groups (shards) for this Redis cluster. Value > 0 sets cluster mode to true. Changing this number will trigger an online resizing operation before other settings modifications" + default = 0 +} + +variable "replicas_per_shard" { + type = number + description = "Number of replica nodes in each node group. Valid values are 0 to 5. Changing this number will force a new resource" + default = 0 +} + +variable "cluster_attributes" { + type = object({ + availability_zones = list(string) + vpc_id = string + additional_security_group_rules = list(any) + allowed_security_groups = list(string) + allow_all_egress = bool + subnets = list(string) + family = string + port = number + zone_id = string + multi_az_enabled = bool + at_rest_encryption_enabled = bool + transit_encryption_enabled = bool + apply_immediately = bool + automatic_failover_enabled = bool + auto_minor_version_upgrade = bool + auth_token_enabled = bool + snapshot_retention_limit = number + }) + description = "Cluster attributes" +} + +variable "parameters" { + type = list(object({ + name = string + value = string + })) + description = "Parameters to configure cluster parameter group" +} + +variable "parameter_group_name" { + type = string + default = null + description = "Override the default parameter group name" +} + +variable "kms_alias_name_ssm" { + default = "alias/aws/ssm" + description = "KMS alias name for SSM" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/versions.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/versions.tf new file mode 100644 index 0000000..5b9bb06 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/elasticache-redis/modules/redis_cluster/input/versions.tf @@ -0,0 +1,14 @@ +terraform { + required_version = ">= 1.0.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.0" + } + random = { + source = "hashicorp/random" + version = ">= 3.0" + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/fixture.json new file mode 100644 index 0000000..e0d5bb5 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/github-runners/modules/graceful_scale_in", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "2149500003b1746b34fcb630df2515245378e8c99655cde7389c6e9ae3a40b86" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "resources", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/eventbridge.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/eventbridge.tf new file mode 100644 index 0000000..570ede2 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/eventbridge.tf @@ -0,0 +1,118 @@ +locals { + automation_definition_arn = "arn:${join("", data.aws_partition.current.*.partition)}:ssm:${join("", data.aws_region.current.*.name)}:${join("", data.aws_caller_identity.current.*.account_id)}:automation-definition/${join("", aws_ssm_document.default.*.name)}:$DEFAULT" +} + +module "eventbridge_label" { + source = "cloudposse/label/null" + version = "0.25.0" + + enabled = local.enabled + + attributes = ["eventbridge"] + + context = module.this.context +} + +data "aws_iam_policy_document" "eventbridge_assume_role_policy" { + count = local.enabled ? 1 : 0 + + statement { + actions = ["sts:AssumeRole"] + + principals { + type = "Service" + identifiers = ["events.amazonaws.com"] + } + } +} + +data "aws_iam_policy_document" "eventbridge_policy" { + count = local.enabled ? 1 : 0 + + statement { + actions = ["ssm:StartAutomationExecution"] + resources = [ + local.automation_definition_arn + ] + } + + statement { + actions = [ + "iam:PassRole" + ] + resources = [ + join("", aws_iam_role.ssm_document_role.*.arn) + ] + } +} + +resource "aws_iam_policy" "eventbridge_policy" { + count = local.enabled ? 1 : 0 + + name = module.eventbridge_label.id + tags = module.eventbridge_label.tags + policy = join("", data.aws_iam_policy_document.eventbridge_policy.*.json) +} + +resource "aws_iam_role" "eventbridge_role" { + count = local.enabled ? 1 : 0 + + name = module.eventbridge_label.id + tags = module.eventbridge_label.tags + assume_role_policy = join("", data.aws_iam_policy_document.eventbridge_assume_role_policy.*.json) + managed_policy_arns = [join("", aws_iam_policy.eventbridge_policy.*.arn)] +} + +resource "aws_cloudwatch_event_rule" "default" { + count = local.enabled ? 1 : 0 + + name = module.eventbridge_label.id + tags = module.eventbridge_label.tags + description = "Auto Scaling Group EC2 Instance Termination" + + event_pattern = jsonencode({ + source = [ + "aws.autoscaling" + ] + detail-type : [ + "EC2 Instance-terminate Lifecycle Action" + ] + detail : { + AutoScalingGroupName : [ + var.autoscaling_group_name + ] + } + }) +} + +resource "aws_cloudwatch_event_target" "default" { + count = local.enabled ? 1 : 0 + + rule = join("", aws_cloudwatch_event_rule.default.*.name) + target_id = module.this.id + arn = local.automation_definition_arn + role_arn = join("", aws_iam_role.eventbridge_role.*.arn) + input_transformer { + input_paths = { + "asgname" : "$.detail.AutoScalingGroupName", + "instanceid" : "$.detail.EC2InstanceId", + "lchname" : "$.detail.LifecycleHookName" + } + input_template = <<-EOF + { + "InstanceId": [ + + ], + "ASGName": [ + + ], + "LCHName": [ + + ], + "automationAssumeRole": [ + "${join("", aws_iam_role.ssm_document_role.*.arn)}" + ] + } + EOF + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/main.tf new file mode 100644 index 0000000..75e104c --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/main.tf @@ -0,0 +1,77 @@ +locals { + enabled = module.this.enabled +} + +data "aws_caller_identity" "current" { + count = local.enabled ? 1 : 0 +} + +data "aws_partition" "current" { + count = local.enabled ? 1 : 0 +} + +data "aws_region" "current" { + count = local.enabled ? 1 : 0 +} + +data "aws_autoscaling_group" "default" { + count = local.enabled ? 1 : 0 + + name = var.autoscaling_group_name +} + +resource "aws_autoscaling_lifecycle_hook" "default" { + count = local.enabled ? 1 : 0 + + name = module.this.id + autoscaling_group_name = var.autoscaling_group_name + heartbeat_timeout = 500 + default_result = "CONTINUE" + lifecycle_transition = "autoscaling:EC2_INSTANCE_TERMINATING" +} + +resource "aws_ssm_document" "default" { + count = local.enabled ? 1 : 0 + + name = module.this.id + + document_type = "Automation" + document_format = "YAML" + content = <<-DOC + --- + schemaVersion: '0.3' + description: "Run Command on Shutdown" + assumeRole: "{{automationAssumeRole}}" + parameters: + automationAssumeRole: + type: "String" + ASGName: + type: "String" + LCHName: + type: "String" + InstanceId: + type: "String" + mainSteps: + - action: "aws:runCommand" + name: "runCommand" + inputs: + Parameters: + executionTimeout: "300" + commands: + - "${var.command}" + InstanceIds: + - "{{ InstanceId }}" + DocumentName: "AWS-RunShellScript" + - action: "aws:executeAwsApi" + name: "terminateInstance" + inputs: + LifecycleHookName: "{{ LCHName }}" + InstanceId: "{{ InstanceId }}" + AutoScalingGroupName: "{{ ASGName }}" + Service: "autoscaling" + Api: "CompleteLifecycleAction" + LifecycleActionResult: "CONTINUE" + DOC + + tags = module.this.tags +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/outputs.tf new file mode 100644 index 0000000..a87e00f --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/outputs.tf @@ -0,0 +1,19 @@ +output "eventbridge_rule_arn" { + description = "The ARN of the Eventbridge rule for the EC2 lifecycle transition." + value = join("", aws_cloudwatch_event_rule.default.*.arn) +} + +output "eventbridge_target_arn" { + description = "The ARN of the Eventbridge target corresponding to the Eventbridge rule for the EC2 lifecycle transition." + value = join("", aws_cloudwatch_event_target.default.*.arn) +} + +output "autoscaling_lifecycle_hook_name" { + description = "The name of the Lifecycle Hook for the Auto Scaling Group." + value = join("", aws_autoscaling_lifecycle_hook.default.*.name) +} + +output "ssm_document_arn" { + description = "The ARN of the SSM document." + value = join("", aws_ssm_document.default.*.arn) +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/ssm.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/ssm.tf new file mode 100644 index 0000000..07e857f --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/ssm.tf @@ -0,0 +1,88 @@ +locals { + # The CompleteLifeCycle Action requires a wildcard in the Auto Scaling Group ARN, so we cannot reference the aws_autoscaling_group data source directly + asg_wildcard_arn = "arn:${join("", data.aws_partition.current.*.partition)}:autoscaling:${join("", data.aws_region.current.*.name)}:${join("", data.aws_caller_identity.current.*.account_id)}:autoScalingGroup:*:autoScalingGroupName/${join("", data.aws_autoscaling_group.default.*.name)}" +} + +module "ssm_document_label" { + source = "cloudposse/label/null" + version = "0.25.0" + + enabled = local.enabled + + attributes = ["ssm", "doc"] + + context = module.this.context +} + +data "aws_iam_policy_document" "ssm_document_assume_role_policy" { + count = local.enabled ? 1 : 0 + + statement { + sid = "AllowSSMAssumeRole" + actions = ["sts:AssumeRole"] + + principals { + type = "Service" + identifiers = ["ssm.amazonaws.com"] + } + } +} + +# https://aws.amazon.com/blogs/infrastructure-and-automation/run-code-before-terminating-an-ec2-auto-scaling-instance/ +data "aws_iam_policy_document" "ssm_document_policy" { + count = local.enabled ? 1 : 0 + + statement { + sid = "AllowCompleteLifecycleAction" + actions = ["autoscaling:CompleteLifecycleAction"] + resources = [ + local.asg_wildcard_arn + ] + } + + statement { + sid = "AllowListSSMCommands" + actions = [ + "ssm:DescribeInstanceInformation", + "ssm:ListCommands", + "ssm:ListCommandInvocations" + ] + resources = [ + "*" + ] + } + + statement { + sid = "AllowSendSSMCommandShellScript" + actions = ["ssm:SendCommand"] + resources = [ + "arn:${join("", data.aws_partition.current.*.partition)}:ssm:${join("", data.aws_region.current.*.name)}::document/AWS-RunShellScript" + ] + } + + statement { + sid = "AllowSendSSMCommandInstances" + actions = ["ssm:SendCommand"] + resources = [ + "arn:${join("", data.aws_partition.current.*.partition)}:ec2:*:*:instance/*" + ] + } +} + +resource "aws_iam_policy" "ssm_document_policy" { + count = local.enabled ? 1 : 0 + + name = module.ssm_document_label.id + policy = join("", data.aws_iam_policy_document.ssm_document_policy.*.json) + + tags = module.ssm_document_label.tags +} + +resource "aws_iam_role" "ssm_document_role" { + count = local.enabled ? 1 : 0 + + name = module.ssm_document_label.id + tags = module.ssm_document_label.tags + assume_role_policy = join("", data.aws_iam_policy_document.ssm_document_assume_role_policy.*.json) + managed_policy_arns = [join("", aws_iam_policy.ssm_document_policy.*.arn)] +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/variables.tf new file mode 100644 index 0000000..1aee59e --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/github-runners/modules/graceful_scale_in/input/variables.tf @@ -0,0 +1,9 @@ +variable "autoscaling_group_name" { + description = "The name of the Auto Scaling Group to create the lifecycle hook for." + type = string +} + +variable "command" { + description = "Command to run on EC2 instance shutdown." + type = string +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/fixture.json new file mode 100644 index 0000000..543bc4e --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/fixture.json @@ -0,0 +1,39 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/opsgenie-team/modules/escalation", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "e1879b74590ba805b76e6269f7664ee154b49d9335b2f5763ac8223bca9cf069" + }, + "license": "Apache-2.0", + "providers": [ + "opsgenie" + ], + "features": [ + "conditionals", + "count", + "data", + "dynamic", + "for_each", + "for_expressions", + "functions", + "heredoc", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/main.tf new file mode 100644 index 0000000..8083d71 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/main.tf @@ -0,0 +1,69 @@ +locals { + enabled = module.this.enabled && var.escalation != null && length(var.escalation.rules) > 0 + lookup_teams = local.enabled ? distinct(flatten([ + for rule in var.escalation.rules : + rule.recipient.name + if rule.recipient.type == "team" + ])) : [] + lookup_users = local.enabled ? distinct(flatten([ + for rule in var.escalation.rules : + rule.recipient.name + if rule.recipient.type == "user" + ])) : [] + lookup_schedules = local.enabled ? distinct(flatten([ + for rule in var.escalation.rules : + format(var.team_naming_format, var.team_name, rule.recipient.name) + if rule.recipient.type == "schedule" && module.this.enabled + ])) : [] +} + +data "opsgenie_team" "recipient" { + for_each = toset(local.lookup_teams) + name = each.value +} + +data "opsgenie_user" "recipient" { + for_each = toset(local.lookup_users) + username = each.value +} + +data "opsgenie_schedule" "recipient" { + for_each = toset(local.lookup_schedules) + name = each.value +} + +# TODO: use https://github.com/cloudposse/terraform-opsgenie-incident-management/tree/master/modules/escalation +resource "opsgenie_escalation" "this" { + count = module.this.enabled ? 1 : 0 + + name = format(var.team_naming_format, var.team_name, var.escalation.name) + description = try(var.escalation.description, var.escalation.name) + owner_team_id = try(var.escalation.owner_team_id, null) + + dynamic "rules" { + for_each = try(var.escalation.rules, []) + + content { + condition = try(rules.value.condition, "if-not-acked") + notify_type = try(rules.value.notify_type, "default") + delay = try(rules.value.delay, 0) + + # In spite of the docs, only one recipient can be used per escalation resource with multiple rules + recipient { + id = rules.value.recipient.type == "team" ? data.opsgenie_team.recipient[rules.value.recipient.name].id : rules.value.recipient.type == "schedule" ? data.opsgenie_schedule.recipient[format(var.team_naming_format, var.team_name, rules.value.recipient.name)].id : data.opsgenie_user.recipient[rules.value.recipient.name].id + type = rules.value.recipient.type + } + } + } + + dynamic "repeat" { + for_each = try(var.escalation.repeat, null) != null ? ["true"] : [] + + content { + wait_interval = lookup(var.escalation.repeat, "wait_interval", 5) + count = lookup(var.escalation.repeat, "count", 0) + reset_recipient_states = lookup(var.escalation.repeat, "reset_recipient_states", true) + close_alert_after_all = lookup(var.escalation.repeat, "close_alert_after_all", true) + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/opsgenie.context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/opsgenie.context.tf new file mode 100644 index 0000000..a6fa39d --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/opsgenie.context.tf @@ -0,0 +1,11 @@ +variable "team_name" { + type = string + default = null + description = "Current OpsGenie Team Name" +} + +variable "team_naming_format" { + type = string + default = "%s_%s" + description = "OpsGenie Team Naming Format" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/outputs.tf new file mode 100644 index 0000000..80a4f07 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/outputs.tf @@ -0,0 +1,9 @@ +output "escalation_id" { + description = "The ID of the Opsgenie Escalation" + value = try(opsgenie_escalation.this[0].id, null) +} + +output "escalation_name" { + description = "Name of the Opsgenie Escalation" + value = try(opsgenie_escalation.this[0].name, null) +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/variables.tf new file mode 100644 index 0000000..6db977f --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/variables.tf @@ -0,0 +1,5 @@ +variable "escalation" { + default = {} + type = any + description = "Opsgenie Escalation configuration" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/versions.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/versions.tf new file mode 100644 index 0000000..87be4ce --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/escalation/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.0" + + required_providers { + opsgenie = { + source = "opsgenie/opsgenie" + version = ">= 0.6.7" + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/fixture.json new file mode 100644 index 0000000..54b2c72 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/opsgenie-team/modules/integration", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "e2666b652ddaa69527824da37e3a3dd51ea417673e9b637f315382686913ddd2" + }, + "license": "Apache-2.0", + "providers": [ + "opsgenie" + ], + "features": [ + "conditionals", + "count", + "data", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/main.tf new file mode 100644 index 0000000..d45635c --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/main.tf @@ -0,0 +1,245 @@ +locals { + enabled = module.this.enabled + + is_type_datadog = lower(var.type) == "datadog" + + # Fully qualified integration name with tenant and team + name = module.integration_name.id + + ssm_path = format(var.ssm_path_format, local.name) + + team_id = join("", data.opsgenie_team.default.*.id) + + append_datadog_tags_enabled = local.enabled && local.is_type_datadog && var.append_datadog_tags_enabled +} + +# Fully qualified integration name normalized +module "integration_name" { + source = "cloudposse/label/null" + version = "0.25.0" + + # Remove these from the identifier to prevent integration names from containing extraneous information + # This will prevent an integration name of `----team-sre` and reduce it to simply `team-sre` + # This is useful for the type Datadog integration where the name is used with the `@opsgenie-` within a Datadog alert message + namespace = "" + tenant = "" + environment = "" + stage = "" + + context = module.this.context +} + +data "opsgenie_team" "default" { + count = local.enabled ? 1 : 0 + + name = var.team_name +} + +module "api_integration" { + source = "cloudposse/incident-management/opsgenie//modules/api_integration" + version = "0.16.0" + + # TODO: add additional parameters to api integrations + api_integration = { + name = local.name + type = var.type + owner_team_id = local.team_id + } + + context = module.this.context +} + +resource "opsgenie_integration_action" "datadog" { + # TODO: use upstream module instead of raw resource + # source = "cloudposse/incident-management/opsgenie//modules/integration_action" + # version = "0.14.4" + + count = local.append_datadog_tags_enabled ? 1 : 0 + + integration_id = module.api_integration.api_integration_id + + create { + ignore_responders_from_payload = true + + name = "Create Metric Alert" + order = 1 + alias = "{{alias}}" + tags = ["{{dd_tags}}"] + user = "Datadog" + note = "{{note}}" + source = "{{source}}" + message = "[Datadog] {{monitor_name}}" + entity = "{{entity}}" + alert_actions = [] + + # The Datadog description is null so we use the DD Message as the description + description = "{{templated_message}}\n" + extra_properties = { + "Event Url" : "{{event_url}}" + "Snapshot Link" : "{{snapshot_link}}" + "Metric Graph" : "" + "Datadog Tags" : "{{dd_tags}}" + } + + # Note, this does NOT match the docs found in terraform + ## https://registry.terraform.io/providers/opsgenie/opsgenie/latest/docs/resources/integration_action#filter + # Instead we find the actual working fields from the debug section of Opsgenie. + filter { + type = "match-all-conditions" + + # The order of these filter rules matter or it can create an inconsistent plan. It seems like it's alphabetically + # ordered by the conditions field. + + conditions { + # not `actions` as described in the TF docs + field = "action" + operation = "equals" + expected_value = "create" + } + + # Specifically do not check for dd_tags, contains, team:${var.team_name} so other teams can reuse a team integration. Also @opsgenie- already controls what integration the alert is sent to. + + # We purposely do not check for tenant/stage since this is controlled by the Datadog organizations + # and how the datadog organizations are configured. 1 per tenant, 1 per account, single org, etc. + + conditions { + # not `source` as described in the TF docs + field = "event_type" + operation = "equals" + expected_value = "query_alert_monitor" + } + + } + + responders { + id = local.team_id + type = "team" + } + } + + create { + ignore_responders_from_payload = true + + name = "Create Synthetic Alert" + order = 2 + + # Only add the Statuspage component and incident ID tags. + # If all of dd_tags is added, then the alert will be polluted with probe_ tags, which are not necessary in OpsGenie, + # and also cause the alert's tag count to exceed the limit (20). This then prevents the Statuspage integration from + # appending the incident_id tag, which is required for bidirectional OpsGenie <-> Statuspage communication. + tags = [ + "{{ dd_tags.substringBetween(\"cmp_\",\",\") }}", + "{{ dd_tags.substringBetween(\"incident_id:\",\",\") }}" + ] + user = "Datadog" + note = "{{note}}" + alias = "{{alias}}" + source = "{{source}}" + message = "{{monitor_name.substringAfter(\"[Synthetics]\")}}" + entity = "{{entity}}" + alert_actions = [] + + description = "{{templated_message.substringBefore(\"@\")}}\n" + extra_properties = { + "Event Url" : "{{event_url}}" + } + + filter { + type = "match-all-conditions" + + conditions { + # not `actions` as described in the TF docs + field = "action" + operation = "equals" + expected_value = "create" + } + + conditions { + # not `source` as described in the TF docs + field = "event_type" + operation = "equals" + expected_value = "synthetics_alert" + } + + } + + responders { + id = local.team_id + type = "team" + } + } + + # Close Action of a Metric Alert from Datadog + close { + name = "Close Alert" + alias = "{{alias}}" + user = "{{user}}" + note = "{{note}}" + + # Note, this does NOT match the docs found in terraform + ## https://registry.terraform.io/providers/opsgenie/opsgenie/latest/docs/resources/integration_action#filter + # Instead we find the actual working fields from the debug section of Opsgenie. + filter { + type = "match-all-conditions" + + # The order of these filter rules matter or it can create an inconsistent plan. It seems like it's alphabetically + # ordered by the conditions field. + + conditions { + # not `actions` as described in the TF docs + field = "action" + operation = "equals" + expected_value = "close" + } + } + } + + # Acknowledge Action of a Metric Alert from Datadog + acknowledge { + name = "Acknowledge Alert" + alias = "{{alias}}" + user = "{{user_handle}}" + note = "{{templated_message}}" + + # Note, this does NOT match the docs found in terraform + ## https://registry.terraform.io/providers/opsgenie/opsgenie/latest/docs/resources/integration_action#filter + # Instead we find the actual working fields from the debug section of Opsgenie. + filter { + type = "match-all-conditions" + + # The order of these filter rules matter or it can create an inconsistent plan. It seems like it's alphabetically + # ordered by the conditions field. + + conditions { + # not `actions` as described in the TF docs + field = "action" + operation = "equals" + expected_value = "acknowledge" + } + } + } +} + +# Populate SSM Parameter Store with API Keys for OpsGenie API Integrations. +# These keys can either be used when setting up OpsGenie integrations manually, +# Or they can be used programmatically, if their respective Terraform provider supports it. +module "ssm_parameter_store" { + source = "cloudposse/ssm-parameter-store/aws" + version = "0.11.0" + + # KMS key is only applied to SecureString params + # https://github.com/cloudposse/terraform-aws-ssm-parameter-store/blob/master/main.tf#L17 + kms_arn = var.kms_key_arn + + parameter_write = [ + { + description = "API Key for Opsgenie ${local.name} API Integration" + name = local.ssm_path + overwrite = true + type = "SecureString" + value = module.api_integration.api_integration_api_key + } + ] + + context = module.this.context +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/outputs.tf new file mode 100644 index 0000000..2015b11 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/outputs.tf @@ -0,0 +1,9 @@ +output "ssm_path" { + value = local.ssm_path + description = "Full SSM path of the team integration key" +} + +output "type" { + value = var.type + description = "Type of the team integration" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/variables.tf new file mode 100644 index 0000000..45d3a64 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/variables.tf @@ -0,0 +1,27 @@ +variable "team_name" { + type = string + description = "Name of the team to assign this integration to." +} + +variable "ssm_path_format" { + type = string + default = "/opsgenie-team/%s" + description = "SSM parameter name format" +} + +variable "kms_key_arn" { + type = string + default = "alias/aws/ssm" + description = "AWS KMS key used for writing to SSM" +} + +variable "type" { + type = string + description = "API Integration Type" +} + +variable "append_datadog_tags_enabled" { + type = bool + default = true + description = "Add Datadog Tags to the Tags of alerts from this integration." +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/versions.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/versions.tf new file mode 100644 index 0000000..87be4ce --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/integration/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.0" + + required_providers { + opsgenie = { + source = "opsgenie/opsgenie" + version = ">= 0.6.7" + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/fixture.json new file mode 100644 index 0000000..9290365 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/fixture.json @@ -0,0 +1,38 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/opsgenie-team/modules/routing", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "820f601888ac397b0cb36f83ea9f0678bdafb728bfa16606c942417c4c08ba25" + }, + "license": "Apache-2.0", + "providers": [ + "opsgenie" + ], + "features": [ + "conditionals", + "count", + "data", + "depends_on", + "for_each", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/main.tf new file mode 100644 index 0000000..fc41bee --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/main.tf @@ -0,0 +1,139 @@ +locals { + enabled = module.this.enabled + + team_alert_rule_enabled = local.enabled && var.type == "alert" + service_incident_rule_enabled = local.enabled && var.type == "incident" + + # Schedule is only used for alert + notify_schedule_enabled = local.team_alert_rule_enabled && try(var.notify.type == "schedule", true) + + schedule_name = try(var.notify.name, null) + + # Routing rule name has _ format + # team_routing_rule_name = format("%s_%s", var.team_name, var.name) + team_routing_rule_name = module.this.name +} + +data "opsgenie_team" "default" { + count = local.enabled ? 1 : 0 + + name = var.team_name +} + +data "opsgenie_schedule" "notification_schedule" { + count = local.team_alert_rule_enabled && local.notify_schedule_enabled ? 1 : 0 + + name = local.schedule_name +} + +data "opsgenie_service" "incident_service" { + for_each = local.service_incident_rule_enabled ? var.services : {} + + name = each.key +} + +module "team_routing_rule" { + source = "cloudposse/incident-management/opsgenie//modules/team_routing_rule" + version = "0.16.0" + + count = local.team_alert_rule_enabled ? 1 : 0 + + team_routing_rule = { + name = local.team_routing_rule_name + team_id = join("", data.opsgenie_team.default.*.id) + + order = var.order + + notify = [{ + type = var.notify.type + name = try(format(var.team_naming_format, var.team_name, var.notify.name), null) + id = try(join("", data.opsgenie_schedule.notification_schedule.*.id), "") + }] + + criteria = { + type = try(var.criteria.type, null) + conditions = try(var.criteria.conditions, null) + } + + timezone = var.timezone + time_restriction = var.time_restriction + } + + context = module.this.context +} + +locals { + default_service = { for k, v in var.services : k => v if k == "default_service" } + services = { for k, v in var.services : k => v if k != "default_service" } +} + +module "service_incident_rule" { + source = "cloudposse/incident-management/opsgenie//modules/service_incident_rule" + version = "0.16.0" + + for_each = local.service_incident_rule_enabled ? local.services : {} + + service_incident_rule = { + service_id = data.opsgenie_service.incident_service[each.key].id + + incident_rule = { + condition_match_type = var.criteria.type + conditions = concat(try(var.criteria.conditions, null), [{ + field = "tags" + operation = "contains" + expected_value = "service:${each.key}" + }]) + + incident_properties = { + message = try(var.incident_properties.message, "{{message}}") + tags = try(var.incident_properties.tags, []) + details = try(var.incident_properties.details, {}) + + priority = var.priority + + stakeholder_properties = { + message = try(var.incident_properties.message, "{{message}}") + description = try(var.incident_properties.description, null) + enable = try(var.incident_properties.update_stakeholders, true) + } + } + } + } + + context = module.this.context +} + + +module "serviceless_incident_rule" { + source = "cloudposse/incident-management/opsgenie//modules/service_incident_rule" + version = "0.16.0" + + depends_on = [data.opsgenie_service.incident_service] + + for_each = local.service_incident_rule_enabled ? local.default_service : {} + + service_incident_rule = { + service_id = data.opsgenie_service.incident_service[each.key].id + + incident_rule = { + condition_match_type = var.criteria.type + conditions = try(var.criteria.conditions, null) + + incident_properties = { + message = try(var.incident_properties.message, "{{message}}") + tags = try(var.incident_properties.tags, []) + details = try(var.incident_properties.details, {}) + + priority = var.priority + + stakeholder_properties = { + message = try(var.incident_properties.message, "{{message}}") + description = try(var.incident_properties.description, null) + enable = try(var.incident_properties.update_stakeholders, true) + } + } + } + } + + context = module.this.context +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/opsgenie.context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/opsgenie.context.tf new file mode 100644 index 0000000..a6fa39d --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/opsgenie.context.tf @@ -0,0 +1,11 @@ +variable "team_name" { + type = string + default = null + description = "Current OpsGenie Team Name" +} + +variable "team_naming_format" { + type = string + default = "%s_%s" + description = "OpsGenie Team Naming Format" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/outputs.tf new file mode 100644 index 0000000..b6e9384 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/outputs.tf @@ -0,0 +1,9 @@ +output "team_routing_rule" { + value = module.team_routing_rule + description = "Team routing rules for alerts" +} + +output "service_incident_rule" { + value = module.service_incident_rule + description = "Service incident rules for incidents" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/variables.tf new file mode 100644 index 0000000..3ab43c5 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/variables.tf @@ -0,0 +1,72 @@ +variable "criteria" { + type = object({ + type = string, + conditions = any + }) + description = "Criteria of the Routing Rule, rules to match or not" +} + +variable "type" { + type = string + default = "alert" + validation { + condition = contains(["alert", "incident"], var.type) + error_message = "Allowed values: `alert`, `incident`." + } + description = "Type of Routing Rule Alert or Incident" +} + +variable "services" { + type = map(any) + default = null + description = "Team services to associate with incident routing rules" +} + +variable "notify" { + type = map(any) + validation { + condition = contains(["schedule", "escalation", "none"], var.notify.type) + error_message = "Allowed values: `schedule`, `escalation`, `none`." + } + description = "Notification of team alerting rule" +} + +variable "order" { + type = number + description = "Order of the alerting rule" +} + +variable "priority" { + type = string + description = "Priority level of custom Incidents" +} + +variable "incident_properties" { + # type = object({ + # message = string + # description = string + # services = list(string) + # update_stakeholders = bool + # }) + type = map(any) + description = "Properties to override on the incident routing rule" +} + +variable "timezone" { + type = string + default = null + description = "Timezone for this alerting route" +} + +variable "time_restriction" { + type = any + default = null + description = "Time restriction of alert routing rule" +} + +variable "is_default" { + type = bool + default = false + description = "Set this alerting route as the default route" + +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/versions.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/versions.tf new file mode 100644 index 0000000..87be4ce --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/opsgenie-team/modules/routing/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.0" + + required_providers { + opsgenie = { + source = "opsgenie/opsgenie" + version = ">= 0.6.7" + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/fixture.json new file mode 100644 index 0000000..25d4158 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/fixture.json @@ -0,0 +1,42 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/spacelift/admin-stack", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "14983dd772b38c4e47ecf3c1b23b4caa49c27c505750e8e276c5a69fdde9542d" + }, + "license": "Apache-2.0", + "providers": [ + "null", + "spacelift" + ], + "features": [ + "conditionals", + "count", + "data", + "depends_on", + "for_each", + "for_expressions", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "sensitive", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/child-stacks.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/child-stacks.tf new file mode 100644 index 0000000..0d094e2 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/child-stacks.tf @@ -0,0 +1,167 @@ +locals { + child_stacks = { + for k, v in module.child_stacks_config.spacelift_stacks : k => v + if local.enabled == true && + try(v.settings.spacelift.workspace_enabled, false) == true + } + + child_stack_policies = { + for k, v in module.all_admin_stacks_config.spacelift_stacks : k => v.vars.child_policy_attachments + if local.enabled == true && + try(v.settings.spacelift.workspace_enabled, false) == true && + try(v.vars.child_policy_attachments, null) != null + } + + child_policies = local.create_root_admin_stack ? var.child_policy_attachments : try(local.child_stack_policies[local.managed_by], null) + child_policy_ids = try([for item in local.child_policies : local.policies[item]], []) + admin_stack_label = try([for item in var.labels : item if startswith(item, format("${var.admin_stack_label}:"))][0], null) + managed_by = local.create_root_admin_stack ? local.root_admin_stack_name : try(data.spacelift_stacks.this[0].stacks[0].name, null) +} + +data "spacelift_stacks" "this" { + count = ( + local.enabled && + local.create_root_admin_stack == false && + local.admin_stack_label != null + ) ? 1 : 0 + labels { + any_of = [local.admin_stack_label] + } +} + +# Ensure no stacks are configured to use public workers if they are not allowed +resource "null_resource" "child_stack_parent_precondition" { + count = local.enabled ? 1 : 0 + lifecycle { + precondition { + condition = local.create_root_admin_stack ? true : length(data.spacelift_stacks.this[0].stacks) > 0 + error_message = "Please apply this stack's parent before applying this stack." + } + } +} + +# Get all of the stack configurations from the atmos config that matched the context_filters and create a stack +# for each one. +module "child_stacks_config" { + source = "cloudposse/cloud-infrastructure-automation/spacelift//modules/spacelift-stacks-from-atmos-config" + version = "1.5.0" + + context_filters = var.context_filters + excluded_context_filters = var.excluded_context_filters + + context = module.this.context +} + +module "child_stack" { + source = "cloudposse/cloud-infrastructure-automation/spacelift//modules/spacelift-stack" + version = "1.6.0" + + for_each = local.child_stacks + + # Only the following attributes are available in `each.value` + # component, base_component, stack, imports, deps, deps_all, vars, settings, env, inheritance, metadata, backend_type, backend, workspace, labels + # They are in the outputs from the module https://github.com/cloudposse/terraform-spacelift-cloud-infrastructure-automation/tree/main/modules/spacelift-stacks-from-atmos-config + # The rest are configured in `settings.spacelift` or `vars` for each component, and should be accessed by `each.value.settings.spacelift` and `each.value.vars` + + atmos_stack_name = try(each.value.stack, null) + component_env = try(each.value.env, var.component_env) + component_name = try(each.value.component, null) + component_root = try(join("/", [var.component_root, try(each.value.metadata.component, each.value.component)])) + component_vars = try(each.value.vars, var.component_vars) + terraform_workspace = try(each.value.workspace, var.terraform_workspace) + + labels = concat( + try(each.value.labels, []), + try(each.value.vars.labels, []), + ["managed-by:${local.managed_by}"], + local.create_root_admin_stack ? ["depends-on:${local.root_admin_stack_name}", ""] : [] + ) + + administrative = try(each.value.settings.spacelift.administrative, false) + after_apply = try(each.value.settings.spacelift.after_apply, []) + after_destroy = try(each.value.settings.spacelift.after_destroy, []) + after_init = try(each.value.settings.spacelift.after_init, []) + after_perform = try(each.value.settings.spacelift.after_perform, []) + after_plan = try(each.value.settings.spacelift.after_plan, []) + autodeploy = try(each.value.settings.spacelift.autodeploy, var.autodeploy) + autoretry = try(each.value.settings.spacelift.autoretry, var.autoretry) + aws_role_enabled = try(each.value.settings.spacelift.aws_role_enabled, var.aws_role_enabled) + aws_role_arn = try(each.value.settings.spacelift.aws_role_arn, var.aws_role_arn) + aws_role_external_id = try(each.value.settings.spacelift.aws_role_external_id, var.aws_role_external_id) + aws_role_generate_credentials_in_worker = try(each.value.settings.spacelift.aws_role_generate_credentials_in_worker, var.aws_role_generate_credentials_in_worker) + before_apply = try(each.value.settings.spacelift.before_apply, []) + before_destroy = try(each.value.settings.spacelift.before_destroy, []) + before_init = try(each.value.settings.spacelift.before_init, []) + before_perform = try(each.value.settings.spacelift.before_perform, []) + before_plan = try(each.value.settings.spacelift.before_plan, []) + branch = try(each.value.settings.spacelift.branch, var.branch) + commit_sha = var.commit_sha != null ? var.commit_sha : try(each.value.settings.spacelift.commit_sha, null) + context_attachments = try(each.value.settings.spacelift.context_attachments, var.context_attachments) + description = try(each.value.settings.spacelift.description, var.description) + drift_detection_enabled = try(each.value.settings.spacelift.drift_detection_enabled, var.drift_detection_enabled) + drift_detection_reconcile = try(each.value.settings.spacelift.drift_detection_reconcile, var.drift_detection_reconcile) + drift_detection_schedule = try(each.value.settings.spacelift.drift_detection_schedule, var.drift_detection_schedule) + drift_detection_timezone = try(each.value.settings.spacelift.drift_detection_timezone, var.drift_detection_timezone) + local_preview_enabled = try(each.value.settings.spacelift.local_preview_enabled, var.local_preview_enabled) + manage_state = try(each.value.settings.spacelift.manage_state, var.manage_state) + policy_ids = try(concat(each.value.settings.spacelift.policies, local.child_policy_ids), local.child_policy_ids, []) + protect_from_deletion = try(each.value.settings.spacelift.protect_from_deletion, var.protect_from_deletion) + repository = var.repository + runner_image = try(each.value.settings.spacelift.runner_image, var.runner_image) + spacelift_run_enabled = try(each.value.settings.spacelift.spacelift_run_enabled, var.spacelift_run_enabled) + spacelift_stack_dependency_enabled = try(each.value.settings.spacelift.spacelift_stack_dependency_enabled, var.spacelift_stack_dependency_enabled) + stack_destructor_enabled = try(each.value.settings.spacelift.stack_destructor_enabled, var.stack_destructor_enabled) + stack_name = try(each.value.settings.spacelift.stack_name, each.key) + terraform_smart_sanitization = try(each.value.settings.spacelift.terraform_smart_sanitization, var.terraform_smart_sanitization) + terraform_version = lookup(var.terraform_version_map, try(each.value.settings.spacelift.terraform_version, ""), var.terraform_version) + terraform_workflow_tool = try(each.value.settings.spacelift.terraform_workflow_tool, var.terraform_workflow_tool) + webhook_enabled = try(each.value.settings.spacelift.webhook_enabled, var.webhook_enabled) + webhook_endpoint = try(each.value.settings.spacelift.webhook_endpoint, var.webhook_endpoint) + webhook_secret = try(each.value.settings.spacelift.webhook_secret, var.webhook_secret) + worker_pool_id = try(local.worker_pools[each.value.settings.spacelift.worker_pool_name], local.worker_pools[var.worker_pool_name], null) + + azure_devops = try(each.value.settings.spacelift.azure_devops, var.azure_devops) + bitbucket_cloud = try(each.value.settings.spacelift.bitbucket_cloud, var.bitbucket_cloud) + bitbucket_datacenter = try(each.value.settings.spacelift.bitbucket_datacenter, var.bitbucket_datacenter) + cloudformation = try(each.value.settings.spacelift.cloudformation, var.cloudformation) + github_enterprise = try(each.value.settings.spacelift.github_enterprise, var.github_enterprise) + gitlab = try(each.value.settings.spacelift.gitlab, var.gitlab) + pulumi = try(each.value.settings.spacelift.pulumi, var.pulumi) + showcase = try(each.value.settings.spacelift.showcase, var.showcase) + + # Process `spacelift.space_name` and `spacelift.space_name_pattern` + space_id = local.spaces[ + try( + coalesce( + # if `space_name` is specified, use it + each.value.settings.spacelift.space_name, + # otherwise, try to replace the context tokens in `space_name_template` and use it + # `space_name_template` accepts the following context tokens: {namespace}, {tenant}, {environment}, {stage} + each.value.settings.spacelift.space_name_pattern != "" && each.value.settings.spacelift.space_name_pattern != null ? ( + replace( + replace( + replace( + replace( + each.value.settings.spacelift.space_name_pattern, + "{namespace}", module.this.namespace + ), + "{tenant}", module.this.tenant + ), + "{environment}", module.this.environment + ), + "{stage}", module.this.stage) + ) : "" + ), + var.space_id + ) + ] + + depends_on = [ + null_resource.spaces_precondition, + null_resource.workers_precondition, + spacelift_policy_attachment.root, + null_resource.child_stack_parent_precondition + ] + + context = module.this.context +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/main.tf new file mode 100644 index 0000000..03bce1f --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/main.tf @@ -0,0 +1,11 @@ +locals { + enabled = module.this.enabled + create_root_admin_stack = local.enabled && var.root_admin_stack + root_admin_stack_name = local.create_root_admin_stack ? keys(module.root_admin_stack_config.spacelift_stacks)[0] : null + root_admin_stack_config = local.create_root_admin_stack ? module.root_admin_stack_config.spacelift_stacks[local.root_admin_stack_name] : null + + # Create a map of all the policies {policy_name = policy_id} + policies = { for k, v in data.spacelift_policies.this.policies : v.name => v.id } +} + +data "spacelift_policies" "this" {} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/outputs.tf new file mode 100644 index 0000000..4462815 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/outputs.tf @@ -0,0 +1,16 @@ +output "root_stack_id" { + description = "The stack id" + value = local.enabled && local.create_root_admin_stack ? module.root_admin_stack.id : "" +} + +output "root_stack" { + description = "The root stack, if enabled and created by this component" + value = local.enabled && local.create_root_admin_stack ? module.root_admin_stack : null + sensitive = true +} + +output "child_stacks" { + description = "All children stacks managed by this component" + value = local.enabled ? values(module.child_stack)[*] : [] + sensitive = true +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/providers.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/providers.tf new file mode 100644 index 0000000..c95d538 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/providers.tf @@ -0,0 +1 @@ +provider "spacelift" {} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/remote-state.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/remote-state.tf new file mode 100644 index 0000000..69834fa --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/remote-state.tf @@ -0,0 +1,11 @@ +module "spaces" { + source = "cloudposse/stack-config/yaml//modules/remote-state" + version = "1.5.0" + + component = var.spacelift_spaces_component_name + environment = try(var.spacelift_spaces_environment_name, module.this.environment) + stage = try(var.spacelift_spaces_stage_name, module.this.stage) + tenant = try(var.spacelift_spaces_tenant_name, module.this.tenant) + + context = module.this.context +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/root-admin-stack.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/root-admin-stack.tf new file mode 100644 index 0000000..2e2b4b3 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/root-admin-stack.tf @@ -0,0 +1,110 @@ +# The root admin stack is a special stack that is used to manage all of the other admin stacks in the the Spacelift +# organization. This stack is denoted by setting the root_administrative property to true in the atmos config. Only one +# such stack is allowed in the Spacelift organization. +module "root_admin_stack_config" { + source = "cloudposse/cloud-infrastructure-automation/spacelift//modules/spacelift-stacks-from-atmos-config" + version = "1.5.0" + + enabled = local.create_root_admin_stack + + context_filters = { + root_administrative = true + } +} + +# This gets the atmos stack config for all of the administrative stacks +module "all_admin_stacks_config" { + source = "cloudposse/cloud-infrastructure-automation/spacelift//modules/spacelift-stacks-from-atmos-config" + version = "1.5.0" + + enabled = local.create_root_admin_stack + + context_filters = { + administrative = true + } +} + +module "root_admin_stack" { + source = "cloudposse/cloud-infrastructure-automation/spacelift//modules/spacelift-stack" + version = "1.6.0" + + enabled = local.create_root_admin_stack + + # Only the following attributes are available in `local.root_admin_stack_config` + # component, base_component, stack, imports, deps, deps_all, vars, settings, env, inheritance, metadata, backend_type, backend, workspace, labels + # They are in the outputs from the module https://github.com/cloudposse/terraform-spacelift-cloud-infrastructure-automation/tree/main/modules/spacelift-stacks-from-atmos-config + # The rest are configured in `settings.spacelift` or `vars` for each component, and should be accessed by `each.value.settings.spacelift` and `each.value.vars` + + atmos_stack_name = try(local.root_admin_stack_config.stack, null) + component_env = try(local.root_admin_stack_config.env, var.component_env) + component_name = try(local.root_admin_stack_config.component, null) + component_root = try(join("/", [var.component_root, local.root_admin_stack_config.metadata.component]), null) + component_vars = try(local.root_admin_stack_config.vars, var.component_vars) + terraform_workspace = try(local.root_admin_stack_config.workspace, var.terraform_workspace) + labels = concat(try(local.root_admin_stack_config.labels, []), try(var.labels, [])) + + administrative = true + after_apply = try(local.root_admin_stack_config.settings.spacelift.after_apply, []) + after_destroy = try(local.root_admin_stack_config.settings.spacelift.after_destroy, []) + after_init = try(local.root_admin_stack_config.settings.spacelift.after_init, []) + after_perform = try(local.root_admin_stack_config.settings.spacelift.after_perform, []) + after_plan = try(local.root_admin_stack_config.settings.spacelift.after_plan, []) + autodeploy = try(local.root_admin_stack_config.settings.spacelift.autodeploy, var.autodeploy) + autoretry = try(local.root_admin_stack_config.settings.spacelift.autoretry, var.autoretry) + aws_role_enabled = try(local.root_admin_stack_config.settings.spacelift.aws_role_enabled, var.aws_role_enabled) + aws_role_arn = try(local.root_admin_stack_config.settings.spacelift.aws_role_arn, var.aws_role_arn) + aws_role_external_id = try(local.root_admin_stack_config.settings.spacelift.aws_role_external_id, var.aws_role_external_id) + aws_role_generate_credentials_in_worker = try(local.root_admin_stack_config.settings.spacelift.aws_role_generate_credentials_in_worker, var.aws_role_generate_credentials_in_worker) + before_apply = try(local.root_admin_stack_config.settings.spacelift.before_apply, []) + before_destroy = try(local.root_admin_stack_config.settings.spacelift.before_destroy, []) + before_init = try(local.root_admin_stack_config.settings.spacelift.before_init, []) + before_perform = try(local.root_admin_stack_config.settings.spacelift.before_perform, []) + before_plan = try(local.root_admin_stack_config.settings.spacelift.before_plan, []) + branch = try(local.root_admin_stack_config.settings.spacelift.branch, var.branch) + commit_sha = var.commit_sha != null ? var.commit_sha : try(local.root_admin_stack_config.settings.spacelift.commit_sha, null) + context_attachments = try(local.root_admin_stack_config.settings.spacelift.context_attachments, var.context_attachments) + description = try(local.root_admin_stack_config.settings.spacelift.description, var.description) + drift_detection_enabled = try(local.root_admin_stack_config.settings.spacelift.drift_detection_enabled, var.drift_detection_enabled) + drift_detection_reconcile = try(local.root_admin_stack_config.settings.spacelift.drift_detection_reconcile, var.drift_detection_reconcile) + drift_detection_schedule = try(local.root_admin_stack_config.settings.spacelift.drift_detection_schedule, var.drift_detection_schedule) + drift_detection_timezone = try(local.root_admin_stack_config.settings.spacelift.drift_detection_timezone, var.drift_detection_timezone) + local_preview_enabled = try(local.root_admin_stack_config.settings.spacelift.local_preview_enabled, var.local_preview_enabled) + manage_state = try(local.root_admin_stack_config.settings.spacelift.manage_state, var.manage_state) + protect_from_deletion = try(local.root_admin_stack_config.settings.spacelift.protect_from_deletion, var.protect_from_deletion) + repository = var.repository + runner_image = try(local.root_admin_stack_config.settings.spacelift.runner_image, var.runner_image) + space_id = var.space_id + spacelift_run_enabled = coalesce(try(local.root_admin_stack_config.settings.spacelift.spacelift_run_enabled, null), var.spacelift_run_enabled) + spacelift_stack_dependency_enabled = try(local.root_admin_stack_config.settings.spacelift.spacelift_stack_dependency_enabled, var.spacelift_stack_dependency_enabled) + stack_destructor_enabled = try(local.root_admin_stack_config.settings.spacelift.stack_destructor_enabled, var.stack_destructor_enabled) + stack_name = var.stack_name != null ? var.stack_name : local.root_admin_stack_name + terraform_smart_sanitization = try(local.root_admin_stack_config.settings.spacelift.terraform_smart_sanitization, var.terraform_smart_sanitization) + terraform_version = lookup(var.terraform_version_map, try(local.root_admin_stack_config.settings.spacelift.terraform_version, ""), var.terraform_version) + terraform_workflow_tool = try(local.root_admin_stack_config.settings.spacelift.terraform_workflow_tool, var.terraform_workflow_tool) + webhook_enabled = try(local.root_admin_stack_config.settings.spacelift.webhook_enabled, var.webhook_enabled) + webhook_endpoint = try(local.root_admin_stack_config.settings.spacelift.webhook_endpoint, var.webhook_endpoint) + webhook_secret = try(local.root_admin_stack_config.settings.spacelift.webhook_secret, var.webhook_secret) + worker_pool_id = try(local.worker_pools[var.worker_pool_name], null) + + azure_devops = try(local.root_admin_stack_config.settings.spacelift.azure_devops, var.azure_devops) + bitbucket_cloud = try(local.root_admin_stack_config.settings.spacelift.bitbucket_cloud, var.bitbucket_cloud) + bitbucket_datacenter = try(local.root_admin_stack_config.settings.spacelift.bitbucket_datacenter, var.bitbucket_datacenter) + cloudformation = try(local.root_admin_stack_config.settings.spacelift.cloudformation, var.cloudformation) + github_enterprise = try(local.root_admin_stack_config.settings.spacelift.github_enterprise, var.github_enterprise) + gitlab = try(local.root_admin_stack_config.settings.spacelift.gitlab, var.gitlab) + pulumi = try(local.root_admin_stack_config.settings.spacelift.pulumi, var.pulumi) + showcase = try(local.root_admin_stack_config.settings.spacelift.showcase, var.showcase) + + depends_on = [ + null_resource.spaces_precondition, + null_resource.workers_precondition + ] + + context = module.this.context +} + +resource "spacelift_policy_attachment" "root" { + for_each = var.root_stack_policy_attachments + policy_id = local.policies[each.key] + stack_id = module.root_admin_stack.id +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/spaces.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/spaces.tf new file mode 100644 index 0000000..b66a208 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/spaces.tf @@ -0,0 +1,53 @@ +locals { + # This loops through all of the administrative stacks in the atmos config and extracts the space_name from the + # spacelift.settings metadata. It then creates a set of all of the unique space_names so we can use that to look up + # their IDs from remote state. + unique_spaces_from_config = toset([for k, v in { + for k, v in module.child_stacks_config.spacelift_stacks : k => try( + coalesce( + # if `space_name` is specified, use it + v.settings.spacelift.space_name, + # otherwise, try to replace the context tokens in `space_name_template` and use it + # `space_name_template` accepts the following context tokens: {namespace}, {tenant}, {environment}, {stage} + v.settings.spacelift.space_name_pattern != "" && v.settings.spacelift.space_name_pattern != null ? ( + replace( + replace( + replace( + replace( + v.settings.spacelift.space_name_pattern, + "{namespace}", module.this.namespace + ), + "{tenant}", module.this.tenant + ), + "{environment}", module.this.environment + ), + "{stage}", module.this.stage) + ) : "" + ), + "root" + ) + if try(v.settings.spacelift.workspace_enabled, false) == true + } : v if v != "root"]) + + # Create a map of all the unique spaces {space_name = space_id} + spaces = merge(try({ + for k in local.unique_spaces_from_config : k => module.spaces.outputs.spaces[k].id + }, {}), { + root = "root" + }) + + # Create a list of all the spaces that are defined in config but missing from Spacelift + missing_spaces = setunion(setsubtract(local.unique_spaces_from_config, keys(local.spaces))) +} + +# Ensure all of the spaces referenced in the Atmos config exist in Spacelift +resource "null_resource" "spaces_precondition" { + count = local.enabled ? 1 : 0 + + lifecycle { + precondition { + condition = length(local.missing_spaces) == 0 + error_message = "Please create the following spaces in Spacelift before running this module: ${join(", ", local.missing_spaces)}" + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/variables.tf new file mode 100644 index 0000000..883383c --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/variables.tf @@ -0,0 +1,351 @@ +variable "admin_stack_label" { + description = "Label to use to identify the admin stack when creating the child stacks" + type = string + default = "admin-stack-name" +} + +variable "allow_public_workers" { + type = bool + description = "Whether to allow public workers to be used for this stack" + default = false +} + +variable "autodeploy" { + type = bool + description = "Controls the Spacelift 'autodeploy' option for a stack" + default = false +} + +variable "autoretry" { + type = bool + description = "Controls the Spacelift 'autoretry' option for a stack" + default = false +} + +variable "aws_role_arn" { + type = string + description = "ARN of the AWS IAM role to assume and put its temporary credentials in the runtime environment" + default = null +} + +variable "aws_role_enabled" { + type = bool + description = "Flag to enable/disable Spacelift to use AWS STS to assume the supplied IAM role and put its temporary credentials in the runtime environment" + default = false +} + +variable "aws_role_external_id" { + type = string + description = "Custom external ID (works only for private workers). See https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html for more details" + default = null +} + +variable "aws_role_generate_credentials_in_worker" { + type = bool + description = "Flag to enable/disable generating AWS credentials in the private worker after assuming the supplied IAM role" + default = true +} + +variable "azure_devops" { + type = map(any) + description = "Azure DevOps VCS settings" + default = null +} + +variable "bitbucket_cloud" { + type = map(any) + description = "Bitbucket Cloud VCS settings" + default = null +} + +variable "bitbucket_datacenter" { + type = map(any) + description = "Bitbucket Datacenter VCS settings" + default = null +} + +variable "branch" { + type = string + description = "Specify which branch to use within your infrastructure repo" + default = "main" +} + +variable "child_policy_attachments" { + description = "List of policy attachments to attach to the child stacks created by this module" + type = set(string) + default = [] +} + +variable "cloudformation" { + type = map(any) + description = "CloudFormation-specific configuration. Presence means this Stack is a CloudFormation Stack." + default = null +} + +variable "commit_sha" { + type = string + description = "The commit SHA for which to trigger a run. Requires `var.spacelift_run_enabled` to be set to `true`" + default = null +} + +variable "component_env" { + type = any + default = {} + description = "Map of component ENV variables" +} + +variable "component_root" { + type = string + description = "The path, relative to the root of the repository, where the component can be found" +} + +variable "component_vars" { + type = any + default = {} + description = "All Terraform values to be applied to the stack via a mounted file" +} + +variable "context_attachments" { + type = list(string) + description = "A list of context IDs to attach to this stack" + default = [] +} + +variable "context_filters" { + description = "Context filters to select atmos stacks matching specific criteria to create as children." + type = object({ + namespaces = optional(list(string), []) + environments = optional(list(string), []) + tenants = optional(list(string), []) + stages = optional(list(string), []) + tags = optional(map(string), {}) + administrative = optional(bool) + root_administrative = optional(bool) + }) +} + +variable "excluded_context_filters" { + description = "Context filters to exclude from stacks matching specific criteria of `var.context_filters`." + default = {} + type = object({ + namespaces = optional(list(string), []) + environments = optional(list(string), []) + tenants = optional(list(string), []) + stages = optional(list(string), []) + tags = optional(map(string), {}) + }) +} + +variable "description" { + type = string + description = "Specify description of stack" + default = null +} + +variable "drift_detection_enabled" { + type = bool + description = "Flag to enable/disable drift detection on the infrastructure stacks" + default = false +} + +variable "drift_detection_reconcile" { + type = bool + description = "Flag to enable/disable infrastructure stacks drift automatic reconciliation. If drift is detected and `reconcile` is turned on, Spacelift will create a tracked run to correct the drift" + default = false +} + +variable "drift_detection_schedule" { + type = list(string) + description = "List of cron expressions to schedule drift detection for the infrastructure stacks" + default = ["0 4 * * *"] +} + +variable "drift_detection_timezone" { + type = string + description = "Timezone in which the schedule is expressed. Defaults to UTC." + default = null +} + +variable "github_enterprise" { + type = map(any) + description = "GitHub Enterprise (self-hosted) VCS settings" + default = null +} + +variable "gitlab" { + type = map(any) + description = "GitLab VCS settings" + default = null +} + +variable "labels" { + type = list(string) + description = "A list of labels for the stack" + default = [] +} + +variable "local_preview_enabled" { + type = bool + description = "Indicates whether local preview runs can be triggered on this Stack" + default = false +} + +variable "manage_state" { + type = bool + description = "Flag to enable/disable manage_state setting in stack" + default = false +} + +variable "protect_from_deletion" { + type = bool + description = "Flag to enable/disable deletion protection." + default = false +} + +variable "pulumi" { + type = map(any) + description = "Pulumi-specific configuration. Presence means this Stack is a Pulumi Stack." + default = null +} + +variable "repository" { + type = string + description = "The name of your infrastructure repo" +} + +variable "root_admin_stack" { + description = "Flag to indicate if this stack is the root admin stack. In this case, the stack will be created in the root space and will create all the other admin stacks as children." + type = bool + default = false +} + +variable "root_stack_policy_attachments" { + description = "List of policy attachments to attach to the root admin stack" + type = set(string) + default = [] +} + +variable "runner_image" { + type = string + description = "The full image name and tag of the Docker image to use in Spacelift" + default = null +} + +variable "showcase" { + type = map(any) + description = "Showcase settings" + default = null +} + +variable "space_id" { + type = string + description = "Place the stack in the specified space_id" + default = "root" +} + +variable "spacelift_run_enabled" { + type = bool + description = "Enable/disable creation of the `spacelift_run` resource" + default = false +} + +variable "spacelift_spaces_environment_name" { + type = string + description = "The environment name of the spacelift spaces component" + default = null +} + +variable "spacelift_spaces_stage_name" { + type = string + description = "The stage name of the spacelift spaces component" + default = null +} + +variable "spacelift_spaces_tenant_name" { + type = string + description = "The tenant name of the spacelift spaces component" + default = null +} + +variable "spacelift_spaces_component_name" { + type = string + description = "The component name of the spacelift spaces component" + default = "spacelift/spaces" +} + +variable "spacelift_stack_dependency_enabled" { + type = bool + description = "If enabled, the `spacelift_stack_dependency` Spacelift resource will be used to create dependencies between stacks instead of using the `depends-on` labels. The `depends-on` labels will be removed from the stacks and the trigger policies for dependencies will be detached" + default = false +} + +variable "stack_destructor_enabled" { + type = bool + description = "Flag to enable/disable the stack destructor to destroy the resources of the stack before deleting the stack itself" + default = false +} + +variable "stack_name" { + type = string + description = "The name of the Spacelift stack" + default = null +} + +variable "terraform_smart_sanitization" { + type = bool + description = "Whether or not to enable [Smart Sanitization](https://docs.spacelift.io/vendors/terraform/resource-sanitization) which will only sanitize values marked as sensitive." + default = false +} + +variable "terraform_version" { + type = string + description = "Specify the version of Terraform to use for the stack" + default = null +} + +variable "terraform_version_map" { + type = map(string) + description = "A map to determine which Terraform patch version to use for each minor version" + default = {} +} + +variable "terraform_workflow_tool" { + type = string + description = "Defines the tool that will be used to execute the workflow. This can be one of OPEN_TOFU, TERRAFORM_FOSS or CUSTOM. Defaults to TERRAFORM_FOSS." + default = "TERRAFORM_FOSS" + + validation { + condition = contains(["OPEN_TOFU", "TERRAFORM_FOSS", "CUSTOM"], var.terraform_workflow_tool) + error_message = "Valid values for terraform_workflow_tool are (OPEN_TOFU, TERRAFORM_FOSS, CUSTOM)." + } +} + +variable "terraform_workspace" { + type = string + description = "Specify the Terraform workspace to use for the stack" + default = null +} + +variable "webhook_enabled" { + type = bool + description = "Flag to enable/disable the webhook endpoint to which Spacelift sends the POST requests about run state changes" + default = false +} + +variable "webhook_endpoint" { + type = string + description = "Webhook endpoint to which Spacelift sends the POST requests about run state changes" + default = null +} + +variable "webhook_secret" { + type = string + description = "Webhook secret used to sign each POST request so you're able to verify that the requests come from Spacelift" + default = null +} + +variable "worker_pool_name" { + type = string + description = "The atmos stack name of the worker pool. Example: `acme-core-ue2-auto-spacelift-default-worker-pool`" + default = null +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/versions.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/versions.tf new file mode 100644 index 0000000..1bcb05a --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/versions.tf @@ -0,0 +1,22 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + spacelift = { + source = "spacelift-io/spacelift" + version = ">= 0.1.31" + } + aws = { + source = "hashicorp/aws" + version = ">= 4.0" + } + null = { + source = "hashicorp/null" + version = ">= 3.0" + } + utils = { + source = "cloudposse/utils" + version = ">= 1.14.0" + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/workers.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/workers.tf new file mode 100644 index 0000000..2a51215 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/admin-stack/input/workers.tf @@ -0,0 +1,49 @@ +locals { + # This loops through all of the stacks in the atmos config and extracts the worker_name. It then creates a set of all + # of the unique worker_names so we can use that to make sure that the worker pool exists in Spacelift. + # + # If a worker pool is not defined in the atmos config, then it will default to a fake "public" value so we can + # check below if any stacks are configured to use public workers. + unique_workers_from_config = toset([for k, v in { + for k, v in module.child_stacks_config.spacelift_stacks : k => coalesce(try(v.settings.spacelift.worker_pool_name, var.worker_pool_name), "public") + if try(v.settings.spacelift.workspace_enabled, false) == true + } : v]) + + # Create a map of all the worker pools that exist in spacelift {worker_pool_name = worker_pool_id} + worker_pools = { for k, v in data.spacelift_worker_pools.this.worker_pools : v.name => v.worker_pool_id } + + # Create a list of all the worker pools that are defined in config but missing from Spacelift + missing_workers = setunion(setsubtract(local.unique_workers_from_config, keys(local.worker_pools))) +} + +data "spacelift_worker_pools" "this" { +} + +# Ensure no stacks are configured to use public workers if they are not allowed +resource "null_resource" "public_workers_precondition" { + count = local.enabled ? 1 : 0 + lifecycle { + precondition { + condition = var.allow_public_workers == true || contains(local.missing_workers, "public") == false + error_message = "Use of public workers is not allowed. Please create worker pool(s) in Spacelift and assign all stacks to a worker before running this module." + } + } +} + +# Ensure all of the spaces referenced in the atmos config exist in Spacelift +resource "null_resource" "workers_precondition" { + count = local.enabled ? 1 : 0 + + depends_on = [null_resource.public_workers_precondition] + + lifecycle { + precondition { + condition = (var.allow_public_workers == false && length(local.missing_workers) == 0) || ( + var.allow_public_workers == true && + length(local.missing_workers) == 1 + && contains(local.missing_workers, "public") + ) + error_message = "Please create the following workers in Spacelift before running this module: ${join(", ", local.missing_workers)}" + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/fixture.json new file mode 100644 index 0000000..ff24603 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/spacelift/spaces", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "91e2ec346bfc2bad089558390cb83fead8bdbacb9712155c919278b8c45486c8" + }, + "license": "Apache-2.0", + "providers": [ + "spacelift" + ], + "features": [ + "conditionals", + "for_each", + "for_expressions", + "functions", + "heredoc", + "locals", + "modules", + "outputs", + "required_providers", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/main.tf new file mode 100644 index 0000000..bcaa6ff --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/main.tf @@ -0,0 +1,69 @@ +locals { + enabled = module.this.enabled + + spaces = local.enabled ? { for item in values(module.space)[*].space : item.name => { + description = item.description + id = item.id + inherit_entities = item.inherit_entities + labels = toset(item.labels) + parent_space_id = item.parent_space_id + } + } : {} + + # Create a map of all the policies {policy_name = policy} + policies = local.enabled ? { for item in distinct(values(module.policy)[*].policy) : item.name => { + id = item.id + type = item.type + labels = toset(item.labels) + space_id = item.space_id + } + } : {} + + policy_inputs = local.enabled ? { + for k, v in var.spaces : k => { + for pn, p in v.policies : pn => { + body = p.body + body_url = p.body_url + body_url_version = p.body_url_version + body_file_path = p.body_file_path + labels = setunion(toset(v.labels), toset(p.labels)) + name = pn + space_id = k == "root" ? "root" : module.space[k].space_id + type = p.type + } + } + } : {} + + all_policies_inputs = merge([for k, v in local.policy_inputs : v if length(keys(v)) > 0]...) +} + +module "space" { + source = "cloudposse/cloud-infrastructure-automation/spacelift//modules/spacelift-space" + version = "1.6.0" + + # Create a space for each entry in the `spaces` variable, except for the root space which already exists by default + # and cannot be deleted. + for_each = { for k, v in var.spaces : k => v if k != "root" } + + space_name = each.key + parent_space_id = each.value.parent_space_id + description = each.value.description + inherit_entities_from_parent = each.value.inherit_entities + labels = each.value.labels +} + +module "policy" { + source = "cloudposse/cloud-infrastructure-automation/spacelift//modules/spacelift-policy" + version = "1.7.0" + + for_each = local.all_policies_inputs + + policy_name = each.key + body = each.value.body + body_url = each.value.body_url + body_url_version = each.value.body_url_version + body_file_path = each.value.body_file_path + type = each.value.type + labels = each.value.labels + space_id = each.value.space_id +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/outputs.tf new file mode 100644 index 0000000..eca2e02 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/outputs.tf @@ -0,0 +1,9 @@ +output "spaces" { + description = "The spaces created by this component" + value = local.enabled ? local.spaces : {} +} + +output "policies" { + description = "The policies created by this component" + value = local.enabled ? local.policies : {} +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/providers.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/providers.tf new file mode 100644 index 0000000..c95d538 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/providers.tf @@ -0,0 +1 @@ +provider "spacelift" {} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/variables.tf new file mode 100644 index 0000000..f11aed4 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/variables.tf @@ -0,0 +1,17 @@ +variable "spaces" { + type = map(object({ + parent_space_id = string, + description = optional(string), + inherit_entities = optional(bool, false), + labels = optional(set(string), []), + policies = optional(map(object({ + body = optional(string), + body_url = optional(string), + body_url_version = optional(string, "master"), + body_file_path = optional(string), + type = optional(string), + labels = optional(set(string), []), + })), {}), + })) + description = "A map of all Spaces to create in Spacelift" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/versions.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/versions.tf new file mode 100644 index 0000000..1174cd1 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/spacelift/spaces/input/versions.tf @@ -0,0 +1,14 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + spacelift = { + source = "spacelift-io/spacelift" + version = ">= 0.1.31" + } + aws = { + source = "hashicorp/aws" + version = ">= 4.0" + } + } +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/LICENSE b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/LICENSE new file mode 100644 index 0000000..861ef18 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2024 Cloud Posse, LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/fixture.json b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/fixture.json new file mode 100644 index 0000000..0500441 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment", + "tier": "modules", + "origin": "github", + "source": { + "url": "https://github.com/cloudposse/terraform-aws-components", + "ref": "1f74a966a0b40ce7e5cae5baec690e5356cf46b8", + "path": "modules/tgw/spoke/modules/standard_vpc_attachment", + "archiveSha256": "97bfd2e9c947b2ae0a7fe6754f377cdc389f3397de7eba4d935c82a8aaf2ab4c", + "inputSha256": "8fc5b690313240ecc72ef2117a2145e9f46592388fe34b739b90aa9456a25d08" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "for_each", + "for_expressions", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/context.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/context.tf new file mode 100644 index 0000000..5e0ef88 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/context.tf @@ -0,0 +1,279 @@ +# +# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label +# All other instances of this file should be a copy of that one +# +# +# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf +# and then place it in your Terraform module to automatically get +# Cloud Posse's standard configuration inputs suitable for passing +# to Cloud Posse modules. +# +# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf +# +# Modules should access the whole context as `module.this.context` +# to get the input variables with nulls for defaults, +# for example `context = module.this.context`, +# and access individual variables as `module.this.`, +# with final values filled in. +# +# For example, when using defaults, `module.this.context.delimiter` +# will be null, and `module.this.delimiter` will be `-` (hyphen). +# + +module "this" { + source = "cloudposse/label/null" + version = "0.25.0" # requires Terraform >= 0.13.0 + + enabled = var.enabled + namespace = var.namespace + tenant = var.tenant + environment = var.environment + stage = var.stage + name = var.name + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + additional_tag_map = var.additional_tag_map + label_order = var.label_order + regex_replace_chars = var.regex_replace_chars + id_length_limit = var.id_length_limit + label_key_case = var.label_key_case + label_value_case = var.label_value_case + descriptor_formats = var.descriptor_formats + labels_as_tags = var.labels_as_tags + + context = var.context +} + +# Copy contents of cloudposse/terraform-null-label/variables.tf here + +variable "context" { + type = any + default = { + enabled = true + namespace = null + tenant = null + environment = null + stage = null + name = null + delimiter = null + attributes = [] + tags = {} + additional_tag_map = {} + regex_replace_chars = null + label_order = [] + id_length_limit = null + label_key_case = null + label_value_case = null + descriptor_formats = {} + # Note: we have to use [] instead of null for unset lists due to + # https://github.com/hashicorp/terraform/issues/28137 + # which was not fixed until Terraform 1.0.0, + # but we want the default to be all the labels in `label_order` + # and we want users to be able to prevent all tag generation + # by setting `labels_as_tags` to `[]`, so we need + # a different sentinel to indicate "default" + labels_as_tags = ["unset"] + } + description = <<-EOT + Single object for setting entire context at once. + See description of individual variables for details. + Leave string and numeric variables as `null` to use default value. + Individual variable settings (non-null) override settings in context object, + except for attributes, tags, and additional_tag_map, which are merged. + EOT + + validation { + condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`." + } + + validation { + condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "enabled" { + type = bool + default = null + description = "Set to false to prevent the module from creating any resources" +} + +variable "namespace" { + type = string + default = null + description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" +} + +variable "tenant" { + type = string + default = null + description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" +} + +variable "environment" { + type = string + default = null + description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" +} + +variable "stage" { + type = string + default = null + description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" +} + +variable "name" { + type = string + default = null + description = <<-EOT + ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. + This is the only ID element not also included as a `tag`. + The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. + EOT +} + +variable "delimiter" { + type = string + default = null + description = <<-EOT + Delimiter to be used between ID elements. + Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. + EOT +} + +variable "attributes" { + type = list(string) + default = [] + description = <<-EOT + ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, + in the order they appear in the list. New attributes are appended to the + end of the list. The elements of the list are joined by the `delimiter` + and treated as a single ID element. + EOT +} + +variable "labels_as_tags" { + type = set(string) + default = ["default"] + description = <<-EOT + Set of labels (ID elements) to include as tags in the `tags` output. + Default is to include all labels. + Tags with empty values will not be included in the `tags` output. + Set to `[]` to suppress all generated tags. + **Notes:** + The value of the `name` tag, if included, will be the `id`, not the `name`. + Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be + changed in later chained modules. Attempts to change it will be silently ignored. + EOT +} + +variable "tags" { + type = map(string) + default = {} + description = <<-EOT + Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). + Neither the tag keys nor the tag values will be modified by this module. + EOT +} + +variable "additional_tag_map" { + type = map(string) + default = {} + description = <<-EOT + Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. + This is for some rare cases where resources want additional configuration of tags + and therefore take a list of maps with tag key, value, and additional configuration. + EOT +} + +variable "label_order" { + type = list(string) + default = null + description = <<-EOT + The order in which the labels (ID elements) appear in the `id`. + Defaults to ["namespace", "environment", "stage", "name", "attributes"]. + You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. + EOT +} + +variable "regex_replace_chars" { + type = string + default = null + description = <<-EOT + Terraform regular expression (regex) string. + Characters matching the regex will be removed from the ID elements. + If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. + EOT +} + +variable "id_length_limit" { + type = number + default = null + description = <<-EOT + Limit `id` to this many characters (minimum 6). + Set to `0` for unlimited length. + Set to `null` for keep the existing setting, which defaults to `0`. + Does not affect `id_full`. + EOT + validation { + condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 + error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." + } +} + +variable "label_key_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of the `tags` keys (label names) for tags generated by this module. + Does not affect keys of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper`. + Default value: `title`. + EOT + + validation { + condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) + error_message = "Allowed values: `lower`, `title`, `upper`." + } +} + +variable "label_value_case" { + type = string + default = null + description = <<-EOT + Controls the letter case of ID elements (labels) as included in `id`, + set as tag values, and output by this module individually. + Does not affect values of tags passed in via the `tags` input. + Possible values: `lower`, `title`, `upper` and `none` (no transformation). + Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. + Default value: `lower`. + EOT + + validation { + condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) + error_message = "Allowed values: `lower`, `title`, `upper`, `none`." + } +} + +variable "descriptor_formats" { + type = any + default = {} + description = <<-EOT + Describe additional descriptors to be output in the `descriptors` output map. + Map of maps. Keys are names of descriptors. Values are maps of the form + `{ + format = string + labels = list(string) + }` + (Type is `any` so the map values can later be enhanced to provide additional options.) + `format` is a Terraform format string to be passed to the `format()` function. + `labels` is a list of labels, in order, to pass to `format()` function. + Label values will be normalized before being passed to `format()` so they will be + identical to how they appear in `id`. + Default is `{}` (`descriptors` output will be empty). + EOT +} + +#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/main.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/main.tf new file mode 100644 index 0000000..634975b --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/main.tf @@ -0,0 +1,188 @@ +locals { + vpcs = var.tgw_config.vpcs + eks = var.tgw_config.eks + + own_account_vpc_key = "${var.owning_account}-${var.own_vpc_component_name}" + own_vpc = local.vpcs[local.own_account_vpc_key].outputs + is_network_hub = (module.this.stage == var.network_account_stage_name) ? true : false + + # Create a list of all VPC component keys. Key includes stack + component + # + # Example var.connections + # connections: + # - account: + # tenant: core + # stage: network + # vpc_component_names: + # - vpc-dev + # - account: + # tenant: core + # stage: auto + # - account: + # tenant: plat + # stage: dev + # - account: + # tenant: plat + # stage: dev + # environment: usw2 + connected_vpc_component_keys = flatten( + [ + for c in var.connections : + [ + # Default value for c.vpc_component_names is ["vpc"] + for vpc in c.vpc_component_names : + # This component key needs to match the key created by tgw/hub + # See components/terraform/tgw/hub/remote-state.tf + length(c.account.environment) > 0 ? + (length(c.account.tenant) > 0 ? + "${c.account.tenant}-${c.account.environment}-${c.account.stage}-${vpc}" : + "${c.account.environment}-${c.account.stage}-${vpc}") + : + (length(c.account.tenant) > 0 ? + "${c.account.tenant}-${module.this.environment}-${c.account.stage}-${vpc}" : + "${module.this.environment}-${c.account.stage}-${vpc}") + ] + ] + ) + + # Create a list of all EKS component keys. + # Follows same pattern as vpc_component_names + connected_eks_component_keys = flatten( + [ + for c in var.connections : + [ + for eks in c.eks_component_names : + length(c.account.environment) > 0 ? + (length(c.account.tenant) > 0 ? + "${c.account.tenant}-${c.account.environment}-${c.account.stage}-${eks}" : + "${c.account.environment}-${c.account.stage}-${eks}") + : + (length(c.account.tenant) > 0 ? + "${c.account.tenant}-${module.this.environment}-${c.account.stage}-${eks}" : + "${module.this.environment}-${c.account.stage}-${eks}") + ] + ] + ) + + # Define a list of all VPCs allowed to access this account's VPC. + # Filter the tgw_config output from tgw/hub for VPCs and pull the CIDR of a VPC if + # (1) this is not the primary VPC that we are connecting to and (2) this VPC key is given as a connection + allowed_vpcs = { + for vpc_key, vpc_remote_state in local.vpcs : + vpc_key => { + cidr = vpc_remote_state.outputs.vpc_cidr + cross_region = (vpc_remote_state.outputs.environment != module.this.environment) + environment = vpc_remote_state.outputs.environment + } if vpc_key != local.own_account_vpc_key && contains(local.connected_vpc_component_keys, vpc_key) + } + + # For each EKS cluster in this account, map the EKS SG to the CIDR for each connected cluster + allowed_eks = merge([ + for own_eks_component in var.own_eks_component_names : + { + for eks_key, eks_remote_state in local.eks : + eks_key => { + # SG of each EKS component in this account + sg_id = local.eks["${var.owning_account}-${own_eks_component}"].outputs.eks_cluster_managed_security_group_id + # CIDR of the remote EKS cluster + cidr = eks_remote_state.outputs.vpc_cidr + } if contains(local.connected_eks_component_keys, eks_key) + } + ]...) + + cross_region_vpcs = flatten([ + for vpc_key, vpc in local.allowed_vpcs : [ + { + vpc_key = vpc_key + cidr = vpc.cidr + environment = vpc.environment + } + ] if vpc.cross_region + ]) + + cross_region_vpc_route_table_ids = flatten([ + for vpc_key, vpc in local.allowed_vpcs : [ + for route_table_key, route_table_id in local.own_vpc.private_route_table_ids : [ + { + vpc_key = vpc_key + rt_key = route_table_key + cidr = vpc.cidr + route_table_id = route_table_id + } + ] + ] if vpc.cross_region + ]) +} + +# Create a TGW attachment from this account's VPC to the TGW Hub +# This includes a merged list of all CIDRs from allowed VPCs in connected accounts +module "standard_vpc_attachment" { + source = "cloudposse/transit-gateway/aws" + version = "0.11.0" + + existing_transit_gateway_id = var.tgw_config.existing_transit_gateway_id + existing_transit_gateway_route_table_id = var.tgw_config.existing_transit_gateway_route_table_id + + route_keys_enabled = true + create_transit_gateway = false + create_transit_gateway_route_table = false + create_transit_gateway_vpc_attachment = true + create_transit_gateway_route_table_association_and_propagation = false + + config = { + (var.owning_account) = { + vpc_id = local.own_vpc.vpc_id + vpc_cidr = local.own_vpc.vpc_cidr + subnet_ids = local.own_vpc.private_subnet_ids + subnet_route_table_ids = local.own_vpc.private_route_table_ids + route_to = null + static_routes = var.static_routes + transit_gateway_vpc_attachment_id = null + route_to_cidr_blocks = concat([for vpc in local.allowed_vpcs : vpc.cidr if !vpc.cross_region], var.static_tgw_routes) + } + } + + context = module.this.context +} + +# Create a TGW attachment for a Peering Connection +# This in only necessary in the hub accounts +resource "aws_ec2_transit_gateway_route" "peering_connection" { + for_each = local.is_network_hub ? { + for vpc in local.cross_region_vpcs : vpc.cidr => vpc + } : {} + + # Use the TGW Attachment in the alternate, peered region + transit_gateway_attachment_id = var.peered_region ? var.tgw_connector_config[local.own_vpc.environment].outputs.aws_ec2_transit_gateway_peering_attachment_id : var.tgw_connector_config[each.value.environment].outputs.aws_ec2_transit_gateway_peering_attachment_id + + blackhole = false + destination_cidr_block = each.value.cidr + transit_gateway_route_table_id = var.tgw_config.existing_transit_gateway_route_table_id +} + +# Route this VPC to the destination CIDR +# This is only necessary in cross-region connections +resource "aws_route" "peering_connection" { + for_each = { + for vpc_rt in local.cross_region_vpc_route_table_ids : "${vpc_rt.route_table_id}:${vpc_rt.cidr}" => vpc_rt + } + + transit_gateway_id = var.tgw_config.existing_transit_gateway_id + + route_table_id = each.value.route_table_id + destination_cidr_block = each.value.cidr +} + +# Define a Security Group Rule to allow traffic from +# Expose traffic from EKS VPC CIDRs in other accounts to this accounts EKS cluster SG +resource "aws_security_group_rule" "ingress_cidr_blocks" { + for_each = var.expose_eks_sg ? local.allowed_eks : {} + + description = "Allow inbound traffic from ${each.key}" + type = "ingress" + from_port = 0 + to_port = 65535 + protocol = "tcp" + cidr_blocks = [each.value.cidr] # CIDR of cluster in other accounts + security_group_id = each.value.sg_id # SG of cluster in this account +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/outputs.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/outputs.tf new file mode 100644 index 0000000..3c21a67 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/outputs.tf @@ -0,0 +1,14 @@ +output "tg_config" { + ## Fit tg config type https://github.com/cloudposse/terraform-aws-transit-gateway#input_config + value = { + vpc_id = null + vpc_cidr = null + subnet_ids = null + subnet_route_table_ids = null + route_to = null + route_to_cidr_blocks = null + static_routes = var.static_routes + transit_gateway_vpc_attachment_id = module.standard_vpc_attachment.transit_gateway_vpc_attachment_ids[var.owning_account] + } + description = "Transit Gateway configuration formatted for handling" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/variables.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/variables.tf new file mode 100644 index 0000000..8722bbd --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/variables.tf @@ -0,0 +1,86 @@ +variable "owning_account" { + type = string + default = null + description = "The name of the account that owns the VPC being attached" +} + +variable "own_vpc_component_name" { + type = string + default = "vpc" + description = "The name of the vpc component in the owning account. Defaults to \"vpc\"" +} + +variable "own_eks_component_names" { + type = list(string) + default = [] + description = "The name of the eks components in the owning account." +} + +variable "tgw_config" { + type = object({ + existing_transit_gateway_id = string + existing_transit_gateway_route_table_id = string + vpcs = any + eks = any + }) + description = "Object to pass common data from root module to this submodule. See root module for details" +} + +variable "tgw_connector_config" { + type = map(any) + description = "Map of output from all `tgw/cross-region-hub-connector` components. See root module for details" + default = {} +} + +variable "connections" { + type = list(object({ + account = object({ + stage = string + environment = optional(string, "") + tenant = optional(string, "") + }) + vpc_component_names = optional(list(string), ["vpc"]) + eks_component_names = optional(list(string), []) + })) + description = <<-EOT + A list of objects to define each TGW connections. + + By default, each connection will look for only the default `vpc` component. + EOT + default = [] +} + +variable "static_routes" { + type = set(object({ + blackhole = bool + destination_cidr_block = string + })) + description = <<-EOT + A list of static routes. + EOT + default = [] +} + +variable "static_tgw_routes" { + type = list(string) + description = "A list of static routes to add to the local routing table with the transit gateway as a destination." + default = [] +} + +variable "expose_eks_sg" { + type = bool + description = "Set true to allow EKS clusters to accept traffic from source accounts" + default = true +} + +variable "peered_region" { + type = bool + description = "Set `true` if this region is not the primary region" + default = false +} + +variable "network_account_stage_name" { + type = string + description = "The name of the stage designated as the network hub" + default = "network" +} diff --git a/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/versions.tf b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/versions.tf new file mode 100644 index 0000000..f33ede7 --- /dev/null +++ b/conformance/fixtures/github/cloudposse/terraform-aws-components/1f74a966/modules/tgw/spoke/modules/standard_vpc_attachment/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.0.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.0" + } + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/LICENSE b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/LICENSE new file mode 100644 index 0000000..4f45e80 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 CrowdStrike + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/fixture.json b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/fixture.json new file mode 100644 index 0000000..a5279b3 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/fixture.json @@ -0,0 +1,44 @@ +{ + "schema": 1, + "id": "registry/CrowdStrike/cloud-registration/0.7.13", + "tier": "modules", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/CrowdStrike/cloud-registration/aws/0.7.13", + "ref": "0.7.13", + "path": ".", + "archiveSha256": "9c33a02d03ae3fab7a6108b528c724ad9af5512fec975753745466bc1cd0419a", + "inputSha256": "a74895806c30bdfc6567e80f380f01329cdc3252f521bc555734744582cae481" + }, + "license": "MIT", + "providers": [ + "aws", + "crowdstrike", + "random" + ], + "features": [ + "check", + "conditionals", + "count", + "data", + "depends_on", + "for_expressions", + "functions", + "heredoc", + "interpolation", + "locals", + "modules", + "moved", + "outputs", + "required_providers", + "resources", + "sensitive", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/main.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/main.tf new file mode 100644 index 0000000..7324b8e --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/main.tf @@ -0,0 +1,237 @@ +data "aws_region" "current" {} + +data "aws_caller_identity" "current" {} + +data "crowdstrike_cloud_aws_account" "target" { + account_id = var.account_id + organization_id = length(var.account_id) != 0 ? null : var.organization_id +} + +locals { + # Prefer caller-supplied values over the data source reads. Terraform requires count to be + # known at plan time, and it defers data source reads to apply whenever this module has + # pending-change dependencies (for example, a depends_on on the module call). Reading the + # region and account ID from configuration keeps the count expressions below resolvable. + # See CSPG-102208. + # + # account_id is intentionally empty for organization registrations, so current_account_id + # exists as a separate override for that case - account_id also selects which Falcon + # registration to look up above, and overloading it would change that lookup. + aws_region = var.region != null ? var.region : data.aws_region.current.id + aws_account = coalesce(var.current_account_id, var.account_id != "" ? var.account_id : null, data.aws_caller_identity.current.account_id) + is_primary_region = var.is_primary_region != null ? var.is_primary_region : local.aws_region == var.primary_region + is_gov_commercial = var.is_gov && var.account_type == "commercial" + + agentless_scanning_enabled = (var.enable_dspm || var.enable_vulnerability_scanning) + + # Use agentless_scanning_regions if customized, otherwise fall back to dspm_regions for backward compatibility + agentless_scanning_regions_is_custom = var.agentless_scanning_regions != tolist(["us-east-1"]) + agentless_scanning_regions = local.agentless_scanning_regions_is_custom ? var.agentless_scanning_regions : ( + length(var.dspm_regions) > 0 ? var.dspm_regions : var.agentless_scanning_regions + ) + + # Use agentless custom role name if provided, with DSPM role name as fallback for backward compatibility + dspm_role_name_is_set = var.dspm_role_name != "" + agentless_role_is_default = var.agentless_scanning_role_name == "CrowdStrikeAgentlessScanningIntegrationRole" + + agentless_scanning_role_name = !local.agentless_role_is_default ? var.agentless_scanning_role_name : ( + local.dspm_role_name_is_set ? var.dspm_role_name : var.agentless_scanning_role_name + ) + + # Scanner role follows same precedence pattern + dspm_scanner_role_is_set = var.dspm_scanner_role_name != "" + agentless_scanner_role_is_default = var.agentless_scanning_scanner_role_name == "CrowdStrikeAgentlessScanningScannerRole" + + agentless_scanning_scanner_role_name = !local.agentless_scanner_role_is_default ? var.agentless_scanning_scanner_role_name : ( + local.dspm_scanner_role_is_set ? var.dspm_scanner_role_name : var.agentless_scanning_scanner_role_name + ) + + agentless_scanning_integration_role_unique_id = var.agentless_scanning_integration_role_unique_id != "" ? var.agentless_scanning_integration_role_unique_id : var.dspm_integration_role_unique_id + + agentless_scanning_scanner_role_unique_id = var.agentless_scanning_scanner_role_unique_id != "" ? var.agentless_scanning_scanner_role_unique_id : var.dspm_scanner_role_unique_id + + # Boolean AND logic for create_nat_gateway: + # If either variable is false, result is false + agentless_scanning_create_nat_gateway = var.agentless_scanning_create_nat_gateway && var.dspm_create_nat_gateway + + # if we target by account_id, it will be the only account returned + # if we target by organization_id, we pick the first one because all accounts will have the same settings + account = try( + data.crowdstrike_cloud_aws_account.target.accounts[0], + { + account_id = "" + external_id = "" + intermediate_role_arn = "" + iam_role_name = "" + eventbus_arn = "" + cloudtrail_bucket_name = "" + } + ) + + external_id = coalesce(var.external_id, local.account.external_id) + intermediate_role_arn = coalesce(var.intermediate_role_arn, local.account.intermediate_role_arn) + iam_role_name = coalesce(var.iam_role_name, local.account.iam_role_name) + eventbus_arn = local.is_gov_commercial ? "" : coalesce(var.eventbus_arn, local.account.eventbus_arn) + cloudtrail_bucket_name = "" # DEPRECATED: CrowdStrike no longer provisions CloudTrail resources +} + +# The region and account overrides above exist so count expressions resolve at plan time, which +# means nothing compares them against the provider they are supposed to describe. A caller that +# supplies the wrong value would build resources with the wrong region or account baked into +# names, ARNs and IAM policy conditions, and the plan would look correct. +# +# These run at apply, once the data source reads have happened, so they catch a mismatch without +# reintroducing the plan-time dependency the overrides were added to remove. +check "region_override_matches_provider" { + assert { + condition = var.region == null || var.region == data.aws_region.current.id + error_message = "var.region does not match the region of the aws provider passed to this module. Resources will be created with the wrong region in their names and policies." + } +} + +check "current_account_id_matches_provider" { + assert { + condition = var.current_account_id == null || var.current_account_id == data.aws_caller_identity.current.account_id + error_message = "var.current_account_id does not match the account of the aws provider passed to this module. Resources will be created with the wrong account ID in their policies." + } +} + +module "asset_inventory" { + count = local.is_primary_region ? 1 : 0 + source = "./modules/asset-inventory/" + external_id = local.external_id + intermediate_role_arn = local.intermediate_role_arn + role_name = local.iam_role_name + permissions_boundary = var.permissions_boundary + use_existing_iam_reader_role = var.use_existing_iam_reader_role + tags = var.tags + + depends_on = [ + data.crowdstrike_cloud_aws_account.target + ] + +} + +module "sensor_management" { + count = (local.is_primary_region && var.enable_sensor_management) ? 1 : 0 + source = "./modules/sensor-management/" + falcon_client_id = var.falcon_client_id + falcon_client_secret = var.falcon_client_secret + external_id = local.external_id + intermediate_role_arn = local.intermediate_role_arn + permissions_boundary = var.permissions_boundary + account_type = var.account_type + is_gov = var.is_gov + cs_address = var.cs_address + resource_prefix = var.resource_prefix + resource_suffix = var.resource_suffix + tags = var.tags + + depends_on = [ + data.crowdstrike_cloud_aws_account.target + ] + + providers = { + aws = aws + } +} + +module "realtime_visibility" { + count = (var.enable_realtime_visibility || var.enable_idp) ? 1 : 0 + source = "./modules/realtime-visibility/" + use_existing_cloudtrail = var.use_existing_cloudtrail + cloudtrail_bucket_name = local.cloudtrail_bucket_name + eventbridge_role_name = var.eventbridge_role_name + eventbus_arn = local.eventbus_arn + is_organization_trail = length(var.organization_id) > 0 + is_gov = var.is_gov + is_gov_commercial = local.is_gov_commercial + is_primary_region = local.is_primary_region + region = local.aws_region + account_id = local.aws_account + create_rules = var.create_rtvd_rules + primary_region = var.primary_region + permissions_boundary = var.permissions_boundary + falcon_client_id = var.falcon_client_id + falcon_client_secret = var.falcon_client_secret + resource_prefix = var.resource_prefix + resource_suffix = var.resource_suffix + tags = var.tags + # S3 Log Ingestion Variables + log_ingestion_method = var.log_ingestion_method + log_ingestion_s3_bucket_name = var.log_ingestion_s3_bucket_name + log_ingestion_sns_topic_arn = var.log_ingestion_sns_topic_arn + log_ingestion_s3_bucket_prefix = var.log_ingestion_s3_bucket_prefix + log_ingestion_kms_key_arn = var.log_ingestion_kms_key_arn + external_id = local.external_id + intermediate_role_arn = local.intermediate_role_arn + + depends_on = [ + data.crowdstrike_cloud_aws_account.target, + ] + + providers = { + aws = aws + } +} + +module "agentless_scanning_roles" { + count = (local.is_primary_region && local.agentless_scanning_enabled) ? 1 : 0 + source = "./modules/agentless-scanning-roles/" + falcon_client_id = var.falcon_client_id + falcon_client_secret = var.falcon_client_secret + agentless_scanning_role_name = local.agentless_scanning_role_name + agentless_scanning_scanner_role_name = local.agentless_scanning_scanner_role_name + intermediate_role_arn = local.intermediate_role_arn + external_id = local.external_id + agentless_scanning_regions = local.agentless_scanning_regions + agentless_scanning_use_custom_vpc = var.agentless_scanning_use_custom_vpc + agentless_scanning_custom_vpc_resources_map = var.agentless_scanning_custom_vpc_resources_map + dspm_s3_access = var.dspm_s3_access + dspm_dynamodb_access = var.dspm_dynamodb_access + dspm_rds_access = var.dspm_rds_access + dspm_redshift_access = var.dspm_redshift_access + dspm_ebs_access = var.dspm_ebs_access + enable_dspm = var.enable_dspm + enable_vulnerability_scanning = var.enable_vulnerability_scanning + tags = var.tags + account_id = local.aws_account + agentless_scanning_host_account_id = var.agentless_scanning_host_account_id + agentless_scanning_host_scanner_role_name = var.agentless_scanning_host_scanner_role_name + permissions_boundary = var.permissions_boundary +} + +module "agentless_scanning_environments" { + count = local.agentless_scanning_enabled && contains(local.agentless_scanning_regions, local.aws_region) ? 1 : 0 + source = "./modules/agentless-scanning-environments/" + integration_role_unique_id = local.is_primary_region ? module.agentless_scanning_roles[0].integration_role_unique_id : local.agentless_scanning_integration_role_unique_id + scanner_role_unique_id = local.is_primary_region ? module.agentless_scanning_roles[0].scanner_role_unique_id : local.agentless_scanning_scanner_role_unique_id + agentless_scanning_create_nat_gateway = local.agentless_scanning_create_nat_gateway + account_id = local.aws_account + agentless_scanning_host_account_id = var.agentless_scanning_host_account_id + agentless_scanning_host_role_name = var.agentless_scanning_host_role_name + + # Pass explicit boolean decision and region-specific VPC config + use_custom_vpc = var.agentless_scanning_use_custom_vpc + region_vpc_config = var.agentless_scanning_use_custom_vpc ? lookup(var.agentless_scanning_custom_vpc_resources_map, local.aws_region, null) : null + + tags = var.tags + vpc_cidr_block = var.vpc_cidr_block + + depends_on = [module.agentless_scanning_roles] + + providers = { + aws = aws + } +} + +# Handle module renames +moved { + from = module.dspm_roles + to = module.agentless_scanning_roles +} + +moved { + from = module.dspm_environments + to = module.agentless_scanning_environments +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/kms.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/kms.tf new file mode 100644 index 0000000..626825e --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/kms.tf @@ -0,0 +1,227 @@ +# Policy document for host account +data "aws_iam_policy_document" "policy_kms_key_host" { + #checkov:skip=CKV_AWS_356:Root user requires unrestricted KMS access according to AWS documentation https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html + #checkov:skip=CKV_AWS_109,CKV_AWS_111:DSPM roles require permissions to write and modify KMS resources + statement { + sid = "Enable IAM User Permissions" + effect = "Allow" + principals { + type = "AWS" + identifiers = [join("", ["arn:${local.aws_partition}:iam::", local.account_id, ":root"])] + } + actions = [ + "kms:*" + ] + resources = ["*"] + } + statement { + sid = "Allow administration of the key" + effect = "Allow" + principals { + type = "AWS" + identifiers = ["*"] + } + actions = [ + "kms:Create*", + "kms:Describe*", + "kms:Enable*", + "kms:List*", + "kms:Put*", + "kms:Update*", + "kms:Revoke*", + "kms:Disable*", + "kms:Get*", + "kms:Delete*", + "kms:ScheduleKeyDeletion", + "kms:CancelKeyDeletion" + ] + resources = ["*"] + condition { + test = "StringEquals" + variable = "aws:userId" + values = [ + var.integration_role_unique_id, + "${var.integration_role_unique_id}:*", + ] + } + } + statement { + sid = "Allow use of the key" + effect = "Allow" + principals { + type = "AWS" + identifiers = ["*"] + } + actions = [ + "kms:DescribeKey", + "kms:Encrypt", + "kms:Decrypt", + "kms:ReEncrypt*", + "kms:GenerateDataKey", + "kms:GenerateDataKeyWithoutPlaintext" + ] + resources = ["*"] + condition { + test = "StringLike" + variable = "aws:userId" + values = [ + var.integration_role_unique_id, + "${var.integration_role_unique_id}:*", + var.scanner_role_unique_id, + "${var.scanner_role_unique_id}:*" + ] + } + } +} + +# Policy document for target account +data "aws_iam_policy_document" "policy_kms_key_target" { + #checkov:skip=CKV_AWS_356:Root user requires unrestricted KMS access according to AWS documentation https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html + #checkov:skip=CKV_AWS_109,CKV_AWS_111:DSPM roles require permissions to write and modify KMS resources + statement { + sid = "Enable IAM User Permissions" + effect = "Allow" + principals { + type = "AWS" + identifiers = [join("", ["arn:${local.aws_partition}:iam::", local.account_id, ":root"])] + } + actions = [ + "kms:*" + ] + resources = ["*"] + } + + statement { + sid = "Allow administration of the key" + effect = "Allow" + principals { + type = "AWS" + identifiers = ["*"] + } + actions = [ + "kms:Create*", + "kms:Describe*", + "kms:Enable*", + "kms:List*", + "kms:Put*", + "kms:Update*", + "kms:Revoke*", + "kms:Disable*", + "kms:Get*", + "kms:Delete*", + "kms:ScheduleKeyDeletion", + "kms:CancelKeyDeletion" + ] + resources = ["*"] + condition { + test = "StringEquals" + variable = "aws:userId" + values = [ + var.integration_role_unique_id, + "${var.integration_role_unique_id}:*", + ] + } + } + + statement { + sid = "Allow use of the key to this account" + effect = "Allow" + principals { + type = "AWS" + identifiers = ["*"] + } + actions = [ + "kms:DescribeKey", + "kms:Encrypt", + "kms:Decrypt", + "kms:ReEncrypt*", + "kms:GenerateDataKey", + "kms:GenerateDataKeyWithoutPlaintext" + ] + resources = ["*"] + condition { + test = "StringLike" + variable = "aws:userId" + values = [ + var.integration_role_unique_id, + "${var.integration_role_unique_id}:*", + var.scanner_role_unique_id, + "${var.scanner_role_unique_id}:*" + ] + } + } + + statement { + sid = "Allow use of the key from host account" + effect = "Allow" + principals { + type = "AWS" + identifiers = [ + "arn:${local.aws_partition}:iam::${var.agentless_scanning_host_account_id}:root" + ] + } + actions = [ + "kms:DescribeKey", + "kms:Encrypt", + "kms:Decrypt", + "kms:ReEncrypt*", + "kms:GenerateDataKey", + "kms:GenerateDataKeyWithoutPlaintext" + ] + resources = ["*"] + condition { + test = "StringEquals" + variable = "aws:PrincipalArn" + values = ["arn:${local.aws_partition}:iam::${var.agentless_scanning_host_account_id}:role/${var.agentless_scanning_host_role_name}"] + } + } + + statement { + sid = "Allow attachment of persistent resources" + effect = "Allow" + principals { + type = "AWS" + identifiers = [ + "arn:${local.aws_partition}:iam::${var.agentless_scanning_host_account_id}:root" + ] + } + actions = [ + "kms:CreateGrant", + "kms:ListGrants", + "kms:RevokeGrant" + ] + resources = ["*"] + condition { + test = "StringEquals" + variable = "aws:PrincipalArn" + values = ["arn:${local.aws_partition}:iam::${var.agentless_scanning_host_account_id}:role/${var.agentless_scanning_host_role_name}"] + } + condition { + test = "Bool" + variable = "kms:GrantIsForAWSResource" + values = ["true"] + } + } +} + +resource "aws_kms_key" "crowdstrike_kms_key" { + description = "CrowdStrike Agentless Scanning KMS Key" + enable_key_rotation = true + deletion_window_in_days = 20 + customer_master_key_spec = "SYMMETRIC_DEFAULT" + key_usage = "ENCRYPT_DECRYPT" + policy = local.is_host_account ? data.aws_iam_policy_document.policy_kms_key_host.json : data.aws_iam_policy_document.policy_kms_key_target.json + + tags = merge( + var.tags, + { + (local.logical_tag_key) = local.logical_kms_key + (local.crowdstrike_tag_key) = (local.crowdstrike_tag_value) + } + ) +} + +resource "aws_kms_alias" "crowdstrike_key_alias" { + name = "alias/CrowdStrikeAgentlessScanningKey" + target_key_id = aws_kms_key.crowdstrike_kms_key.arn +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/locals.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/locals.tf new file mode 100644 index 0000000..8ef6f0e --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/locals.tf @@ -0,0 +1,21 @@ +locals { + crowdstrike_tag_key = "ProvisionedBy" + crowdstrike_tag_value = "CrowdStrike" + logical_tag_key = "CrowdStrikeLogicalId" + + logical_subnet_group = "DBSubnetGroup" + logical_redshift_subnet_group = "RedshiftSubnetGroup" + logical_private_subnet = "PrivateSubnet" + logical_elastic_ip = "ElasticIP" + logical_ec2_security_group = "EC2SecurityGroup" + logical_db_security_group = "DBSecurityGroup" + logical_kms_key = "KMSKey" + aws_region = data.aws_region.current.id + account_id = data.aws_caller_identity.current.account_id + aws_partition = data.aws_partition.current.partition + + # Condition to determine if this is the host account + is_host_account = var.agentless_scanning_host_account_id == var.account_id || var.agentless_scanning_host_account_id == "" + # Condition to determine whether scanning infrastructure should be created in this account + create_scanning_infrastructure = local.is_host_account && !var.use_custom_vpc +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/main.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/main.tf new file mode 100644 index 0000000..1f3a9ee --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/main.tf @@ -0,0 +1,555 @@ +data "aws_region" "current" {} +data "aws_caller_identity" "current" {} +data "aws_partition" "current" {} + +data "aws_availability_zones" "available" { + state = "available" +} + +# Data sources for custom VPC DB subnets (needed for subnet groups) +data "aws_subnet" "custom_db_subnet_a" { + count = var.use_custom_vpc ? 1 : 0 + id = var.region_vpc_config.db_subnet_a +} + +data "aws_subnet" "custom_db_subnet_b" { + count = var.use_custom_vpc ? 1 : 0 + id = var.region_vpc_config.db_subnet_b +} + +# Create new VPC resources only when create scanning infrastructure is true +resource "aws_vpc" "vpc" { + count = local.create_scanning_infrastructure ? 1 : 0 + cidr_block = var.vpc_cidr_block + enable_dns_support = true + enable_dns_hostnames = true + + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-VPC" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_internet_gateway" "internet_gateway" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-Gateway" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) + + depends_on = [aws_vpc.vpc[0]] +} + +resource "aws_subnet" "db_subnet_a" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + cidr_block = cidrsubnet(var.vpc_cidr_block, 8, 0) + availability_zone = data.aws_availability_zones.available.names[0] + + lifecycle { + ignore_changes = [availability_zone] + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-DB-A" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_subnet" "db_subnet_b" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + cidr_block = cidrsubnet(var.vpc_cidr_block, 8, 1) + availability_zone = data.aws_availability_zones.available.names[1] + + lifecycle { + ignore_changes = [availability_zone] + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-DB-B" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_db_subnet_group" "db_subnet_group" { + count = local.is_host_account ? 1 : 0 + name = "${var.deployment_name}-db-subnet-group-${var.use_custom_vpc ? var.region_vpc_config.vpc : aws_vpc.vpc[0].id}" + description = "CrowdStrike Security DB subnet group" + subnet_ids = var.use_custom_vpc ? [ + data.aws_subnet.custom_db_subnet_a[0].id, + data.aws_subnet.custom_db_subnet_b[0].id + ] : [ + aws_subnet.db_subnet_a[0].id, + aws_subnet.db_subnet_b[0].id + ] + + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-DBSubnetGroup" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = local.logical_subnet_group + } + ) +} + +resource "aws_redshift_subnet_group" "redshift_subnet_group" { + count = local.is_host_account ? 1 : 0 + name = "${var.deployment_name}-redshift-subnet-group-${var.use_custom_vpc ? var.region_vpc_config.vpc : aws_vpc.vpc[0].id}" + description = "CrowdStrike Security Redshift subnet group" + subnet_ids = var.use_custom_vpc ? [ + data.aws_subnet.custom_db_subnet_a[0].id, + data.aws_subnet.custom_db_subnet_b[0].id + ] : [ + aws_subnet.db_subnet_a[0].id, + aws_subnet.db_subnet_b[0].id + ] + + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-RedshiftSubnetGroup" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = local.logical_redshift_subnet_group + } + ) +} + +resource "aws_subnet" "public_subnet" { + count = var.agentless_scanning_create_nat_gateway && local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + cidr_block = cidrsubnet(var.vpc_cidr_block, 8, 2) + availability_zone = data.aws_availability_zones.available.names[0] + + lifecycle { + ignore_changes = [availability_zone] + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-Public" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_subnet" "private_subnet" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + cidr_block = cidrsubnet(var.vpc_cidr_block, 8, 3) + availability_zone = data.aws_availability_zones.available.names[0] + + lifecycle { + ignore_changes = [availability_zone] + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-Private" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = local.logical_private_subnet + } + ) +} + +resource "aws_route_table" "public_route_table" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + + # PublicRoute1 + route { + cidr_block = "0.0.0.0/0" + gateway_id = aws_internet_gateway.internet_gateway[0].id + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-Public" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) + + depends_on = [aws_internet_gateway.internet_gateway] +} + +resource "aws_eip" "elastic_ip_address" { + count = var.agentless_scanning_create_nat_gateway && local.create_scanning_infrastructure ? 1 : 0 + domain = "vpc" + tags = merge( + var.tags, + { + Name = "EIP-${var.deployment_name}" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = local.logical_elastic_ip + } + ) +} + +resource "aws_nat_gateway" "nat_gateway" { + count = var.agentless_scanning_create_nat_gateway && local.create_scanning_infrastructure ? 1 : 0 + allocation_id = aws_eip.elastic_ip_address[0].id + subnet_id = aws_subnet.public_subnet[0].id + + tags = merge( + var.tags, + { + Name = "NAT-${var.deployment_name}" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + + +resource "aws_route_table" "private_route_table" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + + # PrivateRoute - conditionally use NAT Gateway or Internet Gateway + route { + cidr_block = "0.0.0.0/0" + nat_gateway_id = var.agentless_scanning_create_nat_gateway ? aws_nat_gateway.nat_gateway[0].id : null + gateway_id = var.agentless_scanning_create_nat_gateway ? null : aws_internet_gateway.internet_gateway[0].id + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-Private" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_route_table_association" "public_subnet_route_table_association" { + count = var.agentless_scanning_create_nat_gateway && local.create_scanning_infrastructure ? 1 : 0 + subnet_id = aws_subnet.public_subnet[0].id + route_table_id = aws_route_table.public_route_table[0].id +} + +resource "aws_route_table_association" "private_subnet_route_table_association" { + count = local.create_scanning_infrastructure ? 1 : 0 + subnet_id = aws_subnet.private_subnet[0].id + route_table_id = aws_route_table.private_route_table[0].id +} + +resource "aws_network_acl" "network_acl" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-NACL" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_network_acl_rule" "inbound_a" { + count = local.create_scanning_infrastructure ? 1 : 0 + network_acl_id = aws_network_acl.network_acl[0].id + rule_number = 100 + protocol = "-1" + rule_action = "allow" + egress = false + cidr_block = "0.0.0.0/1" +} + +resource "aws_network_acl_rule" "inbound_b" { + count = local.create_scanning_infrastructure ? 1 : 0 + network_acl_id = aws_network_acl.network_acl[0].id + rule_number = 110 + protocol = "-1" + rule_action = "allow" + egress = false + cidr_block = "128.0.0.0/1" +} + +resource "aws_network_acl_rule" "outbound" { + count = local.create_scanning_infrastructure ? 1 : 0 + network_acl_id = aws_network_acl.network_acl[0].id + rule_number = 100 + protocol = "-1" + rule_action = "allow" + egress = true + cidr_block = "0.0.0.0/0" +} + +resource "aws_network_acl_association" "public_subnet_nacl_association" { + count = var.agentless_scanning_create_nat_gateway && local.create_scanning_infrastructure ? 1 : 0 + subnet_id = aws_subnet.public_subnet[0].id + network_acl_id = aws_network_acl.network_acl[0].id +} + +resource "aws_network_acl_association" "private_subnet_nacl_association" { + count = local.create_scanning_infrastructure ? 1 : 0 + subnet_id = aws_subnet.private_subnet[0].id + network_acl_id = aws_network_acl.network_acl[0].id +} + +resource "aws_network_acl_association" "db_subnet_a_nacl_association" { + count = local.create_scanning_infrastructure ? 1 : 0 + subnet_id = aws_subnet.db_subnet_a[0].id + network_acl_id = aws_network_acl.network_acl[0].id +} + +resource "aws_network_acl_association" "db_subnet_b_nacl_association" { + count = local.create_scanning_infrastructure ? 1 : 0 + subnet_id = aws_subnet.db_subnet_b[0].id + network_acl_id = aws_network_acl.network_acl[0].id +} + +resource "aws_security_group" "ec2_security_group" { + #checkov:skip=CKV_AWS_382:Data scanner must be allowed to access undetermined ports to support scanning new services + count = local.create_scanning_infrastructure ? 1 : 0 + name = "EC2SecurityGroup" + description = "Security group attached to CrowdStrike provisioned EC2 instances for running data scanners" + vpc_id = aws_vpc.vpc[0].id + + # General outbound traffic + egress { + description = "Security group attached to EC2" + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = ["0.0.0.0/0"] + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-EC2" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = local.logical_ec2_security_group + } + ) +} + +resource "aws_security_group" "db_security_group" { + count = local.create_scanning_infrastructure ? 1 : 0 + name = "DBSecurityGroup" + description = "Security group attached to RDS instance to allow EC2 instances with specific security groups attached to connect to the database" + vpc_id = aws_vpc.vpc[0].id + + # postgres + ingress { + description = "access for postgres port" + from_port = 5432 + to_port = 5432 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # mysql + ingress { + description = "access for mysql port" + from_port = 3306 + to_port = 3306 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # oracle + ingress { + description = "access for oracle db port" + from_port = 1521 + to_port = 1523 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # sql server + ingress { + description = "access for sql server port" + from_port = 1433 + to_port = 1433 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # mongo + ingress { + description = "access for mongodb port" + from_port = 27017 + to_port = 27017 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # redis + ingress { + description = "access for redis port" + from_port = 6379 + to_port = 6379 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # cassandra + ingress { + description = "access for cassandra port" + from_port = 9042 + to_port = 9042 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # open search + ingress { + description = "access for open search port" + from_port = 9200 + to_port = 9200 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # redshift + ingress { + description = "access for redshift port" + from_port = 5439 + to_port = 5439 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-DB" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = local.logical_db_security_group + } + ) +} + +resource "aws_vpc_endpoint" "s3_endpoint" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + service_name = "com.amazonaws.${local.aws_region}.s3" + vpc_endpoint_type = "Gateway" + route_table_ids = [aws_route_table.private_route_table[0].id] + + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Principal = "*" + Action = [ + "s3:Get*", + "s3:List*" + ] + Resource = "*" + Condition = { + ArnEquals = { + "aws:SourceVpcArn" = aws_vpc.vpc[0].arn + } + } + } + ] + }) + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-S3-Endpoint" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = "S3Endpoint" + } + ) +} + +resource "aws_vpc_endpoint" "dynamodb_endpoint" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + service_name = "com.amazonaws.${local.aws_region}.dynamodb" + vpc_endpoint_type = "Gateway" + route_table_ids = [aws_route_table.private_route_table[0].id] + + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Principal = "*" + Action = [ + "dynamodb:BatchGet*", + "dynamodb:Describe*", + "dynamodb:List*", + "dynamodb:Get*", + "dynamodb:Query", + "dynamodb:Scan", + "dynamodb:PartiQLSelect" + ] + Resource = "*" + Condition = { + ArnEquals = { + "aws:SourceVpcArn" = aws_vpc.vpc[0].arn + } + } + } + ] + }) + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-DynamoDB-Endpoint" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = "DynamoDBEndpoint" + } + ) +} + +# Regional SSM parameter containing environment configuration +resource "aws_ssm_parameter" "scan_environment_parameter" { + name = "/CrowdStrike/AgentlessScanning/Environment" + type = "String" + tier = "Intelligent-Tiering" + value = jsonencode(merge( + { + KMSKey = aws_kms_key.crowdstrike_kms_key.arn + }, + local.is_host_account ? { + DBSubnetA = var.use_custom_vpc ? var.region_vpc_config.db_subnet_a : aws_subnet.db_subnet_a[0].id + DBSubnetB = var.use_custom_vpc ? var.region_vpc_config.db_subnet_b : aws_subnet.db_subnet_b[0].id + VpcId = var.use_custom_vpc ? var.region_vpc_config.vpc : aws_vpc.vpc[0].id + CreateVPC = var.use_custom_vpc ? "false" : "true" + CreateNatGW = var.agentless_scanning_create_nat_gateway ? "true" : "false" + PrivateSubnet = var.use_custom_vpc ? var.region_vpc_config.scanner_subnet : aws_subnet.private_subnet[0].id + ScannerSecurityGroup = var.use_custom_vpc ? var.region_vpc_config.scanner_sg : aws_security_group.ec2_security_group[0].id + DBSubnetGroup = aws_db_subnet_group.db_subnet_group[0].name + DBSecurityGroup = var.use_custom_vpc ? var.region_vpc_config.db_sg : aws_security_group.db_security_group[0].id + RedshiftSubnetGroup = aws_redshift_subnet_group.redshift_subnet_group[0].name + } : {} + )) + description = "Environment configuration for CrowdStrike Scanning" + tags = merge( + var.tags, + { + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = "ScanEnvironmentParameter" + } + ) +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/outputs.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/outputs.tf new file mode 100644 index 0000000..6ecf365 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/outputs.tf @@ -0,0 +1,4 @@ +output "crowdstrike_kms_key" { + description = "The arn of the KMS key that agentless scanning will use" + value = aws_kms_key.crowdstrike_kms_key.arn +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/variables.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/variables.tf new file mode 100644 index 0000000..b0924de --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/variables.tf @@ -0,0 +1,96 @@ +variable "deployment_name" { + description = "The deployment name will be used in environment installation" + type = string + default = "dspm-environment" +} + +variable "integration_role_unique_id" { + description = "The unique ID of the agentless scanning integration role" + type = string +} + +variable "scanner_role_unique_id" { + description = "The unique ID of the agentless scanning scanner role" + type = string +} + +variable "use_custom_vpc" { + description = "Whether to use existing custom VPC resources instead of creating new ones. When true, region_vpc_config must be provided." + type = bool + default = false +} + +variable "region_vpc_config" { + description = "VPC configuration for the current region" + type = object({ + vpc = string + scanner_subnet = string + scanner_sg = string + db_subnet_a = string + db_subnet_b = string + db_sg = string + }) + default = null + + validation { + condition = var.region_vpc_config == null || ( + can(regex("^vpc-[a-f0-9]{8}(?:[a-f0-9]{9})?$", var.region_vpc_config.vpc)) && + can(regex("^subnet-[a-f0-9]{8}(?:[a-f0-9]{9})?$", var.region_vpc_config.scanner_subnet)) && + can(regex("^sg-[a-f0-9]{8}(?:[a-f0-9]{9})?$", var.region_vpc_config.scanner_sg)) && + can(regex("^subnet-[a-f0-9]{8}(?:[a-f0-9]{9})?$", var.region_vpc_config.db_subnet_a)) && + can(regex("^subnet-[a-f0-9]{8}(?:[a-f0-9]{9})?$", var.region_vpc_config.db_subnet_b)) && + can(regex("^sg-[a-f0-9]{8}(?:[a-f0-9]{9})?$", var.region_vpc_config.db_sg)) + ) + error_message = "All AWS resource IDs must be valid format: VPC IDs must start with 'vpc-', subnet IDs must start with 'subnet-', and security group IDs must start with 'sg-', followed by 8 or 17 hexadecimal characters." + } +} + +variable "agentless_scanning_create_nat_gateway" { + description = "Set to true to create a NAT Gateway for agentless scanning environments" + type = bool + default = true +} + +variable "tags" { + description = "A map of tags to add to all resources that support tagging" + type = map(string) + default = {} +} + +variable "vpc_cidr_block" { + description = "VPC CIDR block" + type = string + default = "10.0.0.0/16" +} + +variable "agentless_scanning_host_account_id" { + type = string + default = "" + description = "The AWS account ID where agentless scanning host resources are deployed" + + validation { + condition = var.agentless_scanning_host_account_id == "" || can(regex("^\\d{12}$", var.agentless_scanning_host_account_id)) + error_message = "Agentless scanning host account ID must be empty or 12 digits." + } +} + +variable "agentless_scanning_host_role_name" { + type = string + default = "CrowdStrikeAgentlessScanningIntegrationRole" + description = "Name of agentless scanning integration role in host account" + + validation { + condition = can(regex("^$|^[a-zA-Z0-9+=,.@_-]{1,64}$", var.agentless_scanning_host_role_name)) + error_message = "Role name must be empty or use only alphanumeric and '+=,.@-_' characters, maximum 64 characters." + } +} + +variable "account_id" { + type = string + default = "" + description = "The AWS 12 digit account ID" + validation { + condition = length(var.account_id) == 0 || can(regex("^[0-9]{12}$", var.account_id)) + error_message = "account_id must be either empty or the 12-digit AWS account ID" + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/versions.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/versions.tf new file mode 100644 index 0000000..5c472aa --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-environments/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.5.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.0.0" + } + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/client_secret.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/client_secret.tf new file mode 100644 index 0000000..1e0f96b --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/client_secret.tf @@ -0,0 +1,22 @@ +resource "aws_secretsmanager_secret" "client_secrets" { + #checkov:skip=CKV_AWS_149:The secret is encrypted using an AWS managed key + name = "CrowdStrikeDSPMClientSecret" + + tags = merge( + var.tags, + { + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = "ClientSecrets" + (local.deployment_regions_tag_key) = join("/", var.agentless_scanning_regions) + } + ) + recovery_window_in_days = 0 +} + +resource "aws_secretsmanager_secret_version" "client_secrets_version" { + secret_id = aws_secretsmanager_secret.client_secrets.id + secret_string = jsonencode({ + ClientId = var.falcon_client_id + ClientSecret = var.falcon_client_secret + }) +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/integration_role.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/integration_role.tf new file mode 100644 index 0000000..ed1bd0a --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/integration_role.tf @@ -0,0 +1,924 @@ +data "aws_caller_identity" "current" {} +data "aws_region" "current" {} +data "aws_partition" "current" {} + +data "aws_iam_policy_document" "assume_role" { + statement { + actions = ["sts:AssumeRole"] + + principals { + type = "AWS" + identifiers = [var.intermediate_role_arn] + } + + effect = "Allow" + + condition { + test = "StringEquals" + variable = "sts:ExternalId" + values = [var.external_id] + } + } +} + +resource "aws_iam_role" "crowdstrike_aws_agentless_scanning_integration_role" { + name = var.agentless_scanning_role_name + path = "/" + max_session_duration = 43200 + assume_role_policy = data.aws_iam_policy_document.assume_role.json + permissions_boundary = var.permissions_boundary != "" ? "arn:${local.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/${var.permissions_boundary}" : null + tags = merge( + var.tags, + { + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + RootRegion = data.aws_region.current.id + } + ) +} + +moved { + from = aws_iam_role.crowdstrike_aws_dspm_integration_role + to = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role +} + +resource "aws_iam_role_policy_attachment" "security_audit" { + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.name + policy_arn = "arn:${local.aws_partition}:iam::aws:policy/SecurityAudit" +} + +resource "aws_iam_role_policy" "crowdstrike_cloud_scan_supplemental" { + name = "CrowdStrikeCloudScanSupplemental" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_cloud_scan_supplemental_data.json +} + +data "aws_iam_policy_document" "crowdstrike_cloud_scan_supplemental_data" { + #checkov:skip=CKV_AWS_356:DSPM cloud scanning requires read access to various AWS resources + statement { + sid = "CloudScanSupplemental" + actions = [ + "ses:DescribeActiveReceiptRuleSet", + "athena:GetWorkGroup", + "logs:DescribeLogGroups", + "elastictranscoder:ListPipelines", + "elasticfilesystem:DescribeFileSystems", + "redshift:List*", + "redshift:Describe*", + "redshift:View*", + "redshift-serverless:List*", + "ec2:GetConsoleOutput", + "ec2:Describe*", + "sts:DecodeAuthorizationMessage", + "elb:DescribeLoadBalancers", + "cloudwatch:GetMetricData", + "cloudwatch:GetMetricStatistics", + "cloudwatch:ListMetrics", + "pricing:GetProducts" + ] + effect = "Allow" + resources = ["*"] + } +} + +resource "aws_iam_role_policy" "crowdstrike_run_data_scanner_restricted" { + count = local.is_host_account ? 1 : 0 + name = "RunDataScannerRestricted" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_run_data_scanner_restricted_data[0].json +} + +data "aws_iam_policy_document" "crowdstrike_run_data_scanner_restricted_data" { + count = local.is_host_account ? 1 : 0 + # Grants permission to start, terminate EC2 and attach, detach, delete volume + # on CrowdStrike EC2 instance + #checkov:skip=CKV_AWS_108:Running a DSPM data scanner requires ssm:GetParameters permissions + statement { + sid = "AllowInstanceOperationsWithRestrictions" + actions = [ + "ec2:StartInstances", + "ec2:TerminateInstances", + "ec2:RebootInstances" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:instance/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*" + ] + condition { + test = "StringEquals" + variable = "ec2:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to launch EC2 from public image + # Below resources are generic as they are not known during launch + statement { + sid = "AllowRunDistrosInstances" + actions = [ + "ec2:RunInstances" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*::image/*", + "arn:${local.aws_partition}:ec2:*::snapshot/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:network-interface/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:security-group/*" + ] + } + + # Grants permission to Launch EC2 and create volume for CrowdStrike EC2 instance + # The condition key aws:RequestTag is applicable to below resources + statement { + sid = "AllowRunInstancesWithRestrictions" + actions = [ + "ec2:RunInstances" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:instance/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to Launch EC2 for CrowdStrike EC2 instance + # The condition key ec2:ResourceTag is applicable to below resources + statement { + sid = "AllowRunInstances" + effect = "Allow" + + actions = [ + "ec2:RunInstances" + ] + + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:security-group/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:subnet/*" + ] + + condition { + test = "StringEquals" + variable = "ec2:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to create below resources with only Crowdstrike tag + # On CrowdStrike EC2 instance + statement { + sid = "AllowCreateTagsOnlyLaunching" + actions = [ + "ec2:CreateTags" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:instance/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + condition { + test = "StringEquals" + variable = "ec2:CreateAction" + values = ["RunInstances"] + } + } + + # Grant permissions to attach instance profile for EC2 service created by CrowdStrike. + statement { + sid = "passRoleToEc2Service" + actions = [ + "iam:PassRole" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:role/${var.agentless_scanning_scanner_role_name}" + ] + condition { + test = "StringEquals" + variable = "iam:PassedToService" + values = ["ec2.amazonaws.com"] + } + } + + statement { + sid = "ssmAmiAliasPermissions" + actions = [ + "ssm:GetParameters" + ] + effect = "Allow" + resources = ["arn:${local.aws_partition}:ssm:*:*:parameter/*"] + } +} + +resource "aws_iam_role_policy" "crowdstrike_rds_clone" { + count = (var.dspm_rds_access && var.enable_dspm) ? 1 : 0 + name = "CrowdStrikeRDSClone" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_rds_clone_base[0].json +} + +resource "aws_iam_role_policy" "crowdstrike_rds_clone_host" { + count = (var.dspm_rds_access && var.enable_dspm && local.is_host_account) ? 1 : 0 + name = "CrowdStrikeRDSCloneHost" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_rds_clone_host[0].json +} + +resource "aws_iam_role_policy" "crowdstrike_rds_clone_target" { + count = (var.dspm_rds_access && var.enable_dspm && !local.is_host_account) ? 1 : 0 + name = "CrowdStrikeRDSCloneTarget" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_rds_clone_target[0].json +} + +# Base RDS policy - common permissions for both host and target accounts +data "aws_iam_policy_document" "crowdstrike_rds_clone_base" { + count = local.create_rds_policy ? 1 : 0 + + # Grants permission to restore CMK encrypted instances + statement { + sid = "KMSPermissionsForRDSRestore" + actions = [ + "kms:Encrypt", + "kms:Decrypt", + "kms:ReEncrypt*", + "kms:GenerateDataKey*", + "kms:CreateGrant", + "kms:ListGrants", + "kms:DescribeKey" + ] + effect = "Allow" + resources = ["*"] + condition { + test = "StringLike" + variable = "kms:ViaService" + values = ["rds.*.amazonaws.com"] + } + } + + # Grants permission to create snapshot with a tag mentioned in the condition. + statement { + sid = "RDSLimitedPermissionForSnapshotCreate" + actions = [ + "rds:CreateDBSnapshot", + "rds:CreateDBClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:db:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:crowdstrike-*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:crowdstrike-*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } +} + +# Host account RDS policy - full permissions for scanning infrastructure +data "aws_iam_policy_document" "crowdstrike_rds_clone_host" { + count = (local.create_rds_policy && local.is_host_account) ? 1 : 0 + + # Grants permission to add only requested tag mentioned in condition to RDS instance and snapshot + statement { + sid = "RDSPermissionForTagging" + actions = [ + "rds:AddTagsToResource" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:db:crowdstrike-*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:crowdstrike-*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster:crowdstrike-*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:crowdstrike-*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to restore an instance/cluster from any snapshot + statement { + sid = "RDSPermissionForInstanceRestore" + actions = [ + "rds:RestoreDBInstanceFromDBSnapshot", + "rds:RestoreDBClusterFromSnapshot", + "kms:Decrypt" # Require to restore encrypted db snapshot using KMS keys + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:*", + "arn:${local.aws_partition}:kms:*:${data.aws_caller_identity.current.account_id}:key/*" + ] + } + + # Restricts permission to restore an instance/cluster to CrowdStrike VPC + statement { + sid = "RDSPermissionForInstanceRestoreCrowdStrikeVPC" + actions = [ + "rds:RestoreDBInstanceFromDBSnapshot", + "rds:RestoreDBClusterFromSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:subgrp:*" + ] + condition { + test = "StringEquals" + variable = "aws:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to restore instance/cluster with a tag mentioned in the condition + statement { + sid = "RDSLimitedPermissionForInstanceRestore" + actions = [ + "rds:RestoreDBInstanceFromDBSnapshot", + "rds:RestoreDBClusterFromSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:db:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster:*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:security-group/*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:og:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:pg:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-og:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-pg:*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to copy snapshot with a tag mentioned in the condition. + statement { + sid = "RDSLimitedPermissionForCopySnapshot" + actions = [ + "rds:CopyDBSnapshot", + "rds:CopyDBClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:*:snapshot:*", + "arn:${local.aws_partition}:rds:*:*:cluster-snapshot:*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to create db instance with a tag mentioned in the condition inside db cluster + statement { + sid = "RDSPermissionDBClusterCreateInstance" + actions = [ + "rds:CreateDBInstance" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:db:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Restricts create db instance permission to CrowdStrike VPC + statement { + sid = "RDSPermissionDBClusterCreateInstanceCrowdStrikeVPC" + actions = [ + "rds:CreateDBInstance" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:subgrp:*" + ] + condition { + test = "StringEquals" + variable = "aws:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to delete or modify RDS DB/cluster, which are tagged as mentioned in the condition + statement { + sid = "RDSPermissionDeleteRestorePermissions" + actions = [ + "rds:DeleteDBInstance", + "rds:DeleteDBSnapshot", + "rds:ModifyDBInstance", + "rds:DeleteDBCluster", + "rds:DeleteDBClusterSnapshot", + "rds:ModifyDBCluster", + "rds:RebootDBInstance" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:db:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:og:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:pg:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-og:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-pg:*" + ] + condition { + test = "StringEquals" + variable = "aws:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } +} + +# Target account RDS policy - limited permissions for sharing snapshots +data "aws_iam_policy_document" "crowdstrike_rds_clone_target" { + count = (local.create_rds_policy && !local.is_host_account) ? 1 : 0 + + # Grants permission to add only requested tag mentioned in condition to RDS instance and snapshot + statement { + sid = "RDSPermissionForTagging" + actions = [ + "rds:AddTagsToResource" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:crowdstrike-*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:crowdstrike-*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to delete or modify RDS DB/cluster, which are tagged as mentioned in the condition + statement { + sid = "RDSPermissionDeleteRestorePermissions" + actions = [ + "rds:DeleteDBSnapshot", + "rds:DeleteDBClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:*" + ] + condition { + test = "StringEquals" + variable = "aws:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to copy snapshot with a tag mentioned in the condition. + statement { + sid = "RDSLimitedPermissionForCopySnapshot" + actions = [ + "rds:CopyDBSnapshot", + "rds:CopyDBClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to modify snapshot attributes for sharing + statement { + sid = "RDSLimitedPermissionForShareSnapshot" + actions = [ + "rds:ModifyDBSnapshotAttribute", + "rds:ModifyDBClusterSnapshotAttribute" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:crowdstrike-*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:crowdstrike-*" + ] + condition { + test = "StringEquals" + variable = "aws:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } +} + +resource "aws_iam_role_policy" "crowdstrike_redshift_clone_host" { + count = (var.dspm_redshift_access && var.enable_dspm && local.is_host_account) ? 1 : 0 + name = "CrowdStrikeRedshiftClone" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_redshift_clone_host[0].json +} + +resource "aws_iam_role_policy" "crowdstrike_redshift_clone_target" { + count = (var.dspm_redshift_access && var.enable_dspm && !local.is_host_account) ? 1 : 0 + name = "CrowdStrikeRedshiftCloneTarget" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_redshift_clone_target[0].json +} + +# Host account Redshift policy - full permissions for scanning infrastructure +data "aws_iam_policy_document" "crowdstrike_redshift_clone_host" { + count = (local.create_redshift_policy && local.is_host_account) ? 1 : 0 + + # Grants permission to create a cluster snapshot and restore cluster from snapshot + statement { + sid = "RedshiftPermissionsForRestoring" + actions = [ + "redshift:RestoreFromClusterSnapshot", + "redshift:CreateClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:cluster:*", + "arn:${local.aws_partition}:redshift:*:*:snapshot:*" + ] + } + + # Grants permission to create tags, modify and delete CrowdStrike's clusters and snapshots + statement { + sid = "RedshiftPermissionsForControllingClones" + actions = [ + "redshift:CreateTags", + "redshift:ModifyCluster*", + "redshift:DeleteCluster", + "redshift:DeleteClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:cluster:crowdstrike-*", + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:snapshot:*/crowdstrike-snapshot-*" + ] + } + + # Grants permission to secret manager to restore redshift's password managed by secret manager + statement { + sid = "RedshiftPermissionsForSecretsManager" + actions = [ + "secretsmanager:CreateSecret", + "secretsmanager:TagResource", + "secretsmanager:DescribeSecret" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:secretsmanager:*:${data.aws_caller_identity.current.account_id}:secret:*" + ] + } +} + +# Target account Redshift policy - limited permissions for sharing snapshots +data "aws_iam_policy_document" "crowdstrike_redshift_clone_target" { + count = (var.dspm_redshift_access && var.enable_dspm && !local.is_host_account) ? 1 : 0 + + # Grants permission to create a cluster snapshot + statement { + sid = "RedshiftPermissionsForRestoring" + actions = [ + "redshift:CreateClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:cluster:*", + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:snapshot:*" + ] + } + + # Grants permission to create tags and delete CrowdStrike's snapshots + statement { + sid = "RedshiftPermissionsForControllingClones" + actions = [ + "redshift:CreateTags", + "redshift:DeleteClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:cluster:crowdstrike-*", + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:snapshot:*/crowdstrike-snapshot-*" + ] + } + + # Grants permission to authorize and revoke snapshot access + statement { + sid = "RDSAuthorizeSnapshotAccessPermissions" + actions = [ + "redshift:AuthorizeSnapshotAccess", + "redshift:RevokeSnapshotAccess" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:snapshot:*" + ] + } +} + +resource "aws_iam_role_policy" "crowdstrike_ssm_reader" { + name = "CrowdStrikeSSMReader" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_ssm_reader_data.json +} + +data "aws_iam_policy_document" "crowdstrike_ssm_reader_data" { + statement { + actions = [ + "ssm:GetParameter" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ssm:*:${data.aws_caller_identity.current.account_id}:parameter/CrowdStrike/*" + ] + } +} + +# Custom VPC IAM policy +resource "aws_iam_role_policy" "run_data_scanner_custom_vpcs" { + count = var.agentless_scanning_use_custom_vpc && local.is_host_account && length(var.agentless_scanning_custom_vpc_resources_map) > 0 ? 1 : 0 + name = "RunDataScannerCustomVPCs" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.run_data_scanner_custom_vpcs_data[0].json +} + +data "aws_iam_policy_document" "run_data_scanner_custom_vpcs_data" { + count = var.agentless_scanning_use_custom_vpc && length(var.agentless_scanning_custom_vpc_resources_map) > 0 ? 1 : 0 + + # Grants permission to Launch EC2 for CrowdStrike EC2 instance in custom VPCs + # The condition key ec2:Vpc is applicable to custom VPC resources + statement { + sid = "AllowRunInstancesCustomVpc" + actions = [ + "ec2:RunInstances" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:security-group/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:subnet/*" + ] + condition { + test = "ForAnyValue:StringEquals" + variable = "ec2:Vpc" + values = local.custom_vpc_arns + } + } +} + +# EBS Scanning Base Policy - Common EBS and KMS permissions +resource "aws_iam_role_policy" "crowdstrike_ebs_clone" { + count = local.create_ebs_policy ? 1 : 0 + name = "CrowdStrikeEBSClone" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_ebs_clone[0].json +} + +data "aws_iam_policy_document" "crowdstrike_ebs_clone" { + count = local.create_ebs_policy ? 1 : 0 + + # EBS Volume Access for Snapshot Creation + statement { + sid = "EBSVolumeAccessForSnapshotCreation" + actions = [ + "ec2:CreateSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*" + ] + } + + # EBS snapshot delete and snapshot access for copy + statement { + sid = "EBSSnapshotDeleteAndCopyAccess" + actions = [ + "ec2:DeleteSnapshot", + "ec2:CopySnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*::snapshot/*" + ] + condition { + test = "StringEquals" + variable = "ec2:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # EBS snapshot create and copy + statement { + sid = "EBSSnapshotCreateAndCopy" + actions = [ + "ec2:CopySnapshot", + "ec2:CreateSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*::snapshot/*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Tagging Operations + statement { + sid = "TaggingOperations" + actions = [ + "ec2:CreateTags" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*::snapshot/*" + ] + condition { + test = "ForAnyValue:StringEquals" + variable = "ec2:CreateAction" + values = ["CreateSnapshot", "CopySnapshot"] + } + } + + # KMS Permissions for EBS Operations + statement { + sid = "KMSPermissionsForEBSOps" + actions = [ + "kms:ReEncrypt*", + "kms:DescribeKey", + "kms:CreateGrant", + "kms:GenerateDataKey", + "kms:GenerateDataKeyWithoutPlaintext", + "kms:Decrypt" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:kms:*:*:key/*" + ] + condition { + test = "StringLike" + variable = "kms:ViaService" + values = ["ec2.*.amazonaws.com"] + } + } +} + +# EBS Scanning Host Account Policy - Volume operations in scanning environment +resource "aws_iam_role_policy" "crowdstrike_ebs_clone_host" { + count = (local.create_ebs_policy && local.is_host_account) ? 1 : 0 + name = "CrowdStrikeEBSCloneHost" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_ebs_clone_host[0].json +} + +data "aws_iam_policy_document" "crowdstrike_ebs_clone_host" { + count = (local.create_ebs_policy && local.is_host_account) ? 1 : 0 + + # EBS Snapshot Access for Volume Creation + statement { + sid = "EBSSnapshotAccessForVolumeCreation" + actions = [ + "ec2:CreateVolume" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*::snapshot/*" + ] + } + + # EBS Volume Operations Create + statement { + sid = "EBSVolumeOperationsCreate" + actions = [ + "ec2:CreateVolume" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # EBS Volume Operations Delete + statement { + sid = "EBSVolumeOperationsDelete" + actions = [ + "ec2:DeleteVolume" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*" + ] + condition { + test = "StringEquals" + variable = "ec2:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Tagging Operations + statement { + sid = "TaggingOperations" + actions = [ + "ec2:CreateTags" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*" + ] + condition { + test = "ForAnyValue:StringEquals" + variable = "ec2:CreateAction" + values = ["CreateVolume"] + } + } +} + +# EBS Scanning Target Account Policy - Snapshot sharing with host account +resource "aws_iam_role_policy" "crowdstrike_ebs_clone_target" { + count = (local.create_ebs_policy && !local.is_host_account) ? 1 : 0 + name = "CrowdStrikeEBSCloneTarget" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_ebs_clone_target[0].json +} + +data "aws_iam_policy_document" "crowdstrike_ebs_clone_target" { + count = (local.create_ebs_policy && !local.is_host_account) ? 1 : 0 + + # EBS Snapshot Share + statement { + sid = "EBSSnapshotShare" + actions = [ + "ec2:ModifySnapshotAttribute" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*::snapshot/*" + ] + condition { + test = "StringEquals" + variable = "ec2:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + condition { + test = "StringEquals" + variable = "ec2:Add/userId" + values = [var.agentless_scanning_host_account_id] + } + } + + # EBS Snapshot Unshare + statement { + sid = "EBSSnapshotUnshare" + actions = [ + "ec2:ModifySnapshotAttribute" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*::snapshot/*" + ] + condition { + test = "StringEquals" + variable = "ec2:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + condition { + test = "StringEquals" + variable = "ec2:Remove/userId" + values = [var.agentless_scanning_host_account_id] + } + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/locals.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/locals.tf new file mode 100644 index 0000000..3b83db8 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/locals.tf @@ -0,0 +1,24 @@ +locals { + crowdstrike_tag_key = "ProvisionedBy" + crowdstrike_tag_value = "CrowdStrike" + logical_tag_key = "CrowdStrikeLogicalId" + deployment_regions_tag_key = "CrowdStrikeDeploymentRegions" + + aws_partition = data.aws_partition.current.partition + + # Extract VPC ARNs from custom VPC resources map for IAM policy conditions + custom_vpc_arns = [ + for region, resources in var.agentless_scanning_custom_vpc_resources_map : + "arn:${local.aws_partition}:ec2:${region}:${data.aws_caller_identity.current.account_id}:vpc/${resources.vpc}" + ] + + # Condition to determine if this is the host account + is_host_account = var.agentless_scanning_host_account_id == var.account_id || var.agentless_scanning_host_account_id == "" + + # Agentless scanning policy conditions + create_s3_policy = var.enable_dspm && var.dspm_s3_access + create_rds_policy = var.enable_dspm && var.dspm_rds_access + create_dynamodb_policy = var.enable_dspm && var.dspm_dynamodb_access + create_redshift_policy = var.enable_dspm && var.dspm_redshift_access + create_ebs_policy = (var.enable_dspm && var.dspm_ebs_access) || var.enable_vulnerability_scanning +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/main.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/main.tf new file mode 100644 index 0000000..5b7eb53 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/main.tf @@ -0,0 +1,280 @@ +# Creates instance profile. Attached as IAM role to EC2 instance, used for data scan +resource "aws_iam_instance_profile" "instance_profile" { + count = local.is_host_account ? 1 : 0 + name = "CrowdStrikeScannerRoleProfile" + path = "/" + role = var.agentless_scanning_scanner_role_name + tags = merge( + var.tags, + { + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_ssm_parameter" "agentless_scanning_root_parameter" { + name = "/CrowdStrike/AgentlessScanning/Root" + type = "String" + tier = "Intelligent-Tiering" + value = jsonencode({ + version = "1.1.1+tf.0" + deployment_regions = var.agentless_scanning_regions + scan_products = { + dspm_scanning_enabled = var.enable_dspm + vulnerability_scanning_enabled = var.enable_vulnerability_scanning + } + scanner_role_arn = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.arn + instance_profile = local.is_host_account ? aws_iam_instance_profile.instance_profile[0].name : "" + host_account_id = local.is_host_account ? data.aws_caller_identity.current.account_id : var.agentless_scanning_host_account_id + permissions = { + s3_policy = local.create_s3_policy ? "${var.agentless_scanning_scanner_role_name}/CrowdStrikeBucketReader" : "" + rds_policy = local.create_rds_policy ? "${var.agentless_scanning_role_name}/CrowdStrikeRDSClone" : "" + dynamodb_policy = local.create_dynamodb_policy ? "${var.agentless_scanning_scanner_role_name}/CrowdStrikeDynamoDBReader" : "" + redshift_policy = local.create_redshift_policy ? "${var.agentless_scanning_role_name}/CrowdStrikeRedshiftClone" : "" + ebs_policy = local.create_ebs_policy ? "${var.agentless_scanning_role_name}/CrowdStrikeEBSClone" : "" + } + }) + description = "Tracks which datastore services are enabled for DSPM scanning via their policies" + tags = merge( + var.tags, + { + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_iam_role" "crowdstrike_aws_agentless_scanning_scanner_role" { + name = var.agentless_scanning_scanner_role_name + path = "/" + assume_role_policy = local.is_host_account ? jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Action = "sts:AssumeRole" + Effect = "Allow" + Principal = { + Service = "ec2.amazonaws.com" + } + Condition = { + StringEquals = { + "aws:ResourceTag/${local.crowdstrike_tag_key}" = local.crowdstrike_tag_value + } + } + } + ] + }) : jsonencode({ + Version = "2008-10-17" + Statement = [ + { + Effect = "Allow" + Principal = { + AWS = "arn:${local.aws_partition}:iam::${var.agentless_scanning_host_account_id}:root" + } + Action = "sts:AssumeRole" + Condition = { + StringEquals = { + "aws:PrincipalArn" = "arn:${local.aws_partition}:iam::${var.agentless_scanning_host_account_id}:role/${var.agentless_scanning_host_scanner_role_name}" + } + } + } + ] + }) + permissions_boundary = var.permissions_boundary != "" ? "arn:${local.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/${var.permissions_boundary}" : null + tags = merge( + var.tags, + { + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +moved { + from = aws_iam_role.crowdstrike_aws_dspm_scanner_role + to = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role +} + +resource "aws_iam_role_policy_attachment" "cloud_watch_logs_read_only_access" { + role = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.name + policy_arn = "arn:${local.aws_partition}:iam::aws:policy/CloudWatchLogsReadOnlyAccess" +} + + +resource "aws_iam_role_policy" "crowdstrike_bucket_reader" { + count = local.create_s3_policy ? 1 : 0 + #checkov:skip=CKV_AWS_288,CKV_AWS_355:DSPM data scanner requires read access to all scannable s3 assets + name = "CrowdStrikeBucketReader" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Sid = "AllowS3ReadObjects" + Action = [ + "s3:Get*", + "s3:List*" + ] + Effect = "Allow" + Resource = ["*"] + }, + { + Sid = "AllowS3DecryptObjects" + Action = "kms:Decrypt" + Effect = "Allow", + Resource = ["*"] + Condition = { + StringLike = { + "kms:ViaService" = "s3.*.amazonaws.com" + } + } + } + ] + }) +} + +resource "aws_iam_role_policy" "crowdstrike_dynamodb_reader" { + count = local.create_dynamodb_policy ? 1 : 0 + #checkov:skip=CKV_AWS_355:DSPM data scanner requires read access to all scannable dynamodb assets + name = "CrowdStrikeDynamoDBReader" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Action = [ + "dynamodb:BatchGetItem", + "dynamodb:Describe*", + "dynamodb:List*", + "dynamodb:Get*", + "dynamodb:Query", + "dynamodb:Scan", + "dynamodb:PartiQLSelect" + ] + Effect = "Allow" + Resource = ["*"] + } + ] + }) +} + +resource "aws_iam_role_policy" "crowdstrike_redshift_reader" { + count = (local.create_redshift_policy && local.is_host_account) ? 1 : 0 + #checkov:skip=CKV_AWS_355:DSPM data scanner requires read access to all scannable redshift assets + #checkov:skip=CKV_AWS_290,CKV_AWS_287:DSPM data scanner requires redshift:Get* permissions + name = "CrowdStrikeRedshiftReader" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Action = [ + "redshift:List*", + "redshift:Describe*", + "redshift:View*", + "redshift:Get*", + "redshift-serverless:List*", + "redshift-serverless:Get*" + ] + Effect = "Allow" + Resource = ["*"] + } + ] + }) +} + +resource "aws_iam_role_policy" "crowdstrike_secret_reader" { + count = local.is_host_account ? 1 : 0 + name = "CrowdStrikeSecretReader" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Sid = "SecretsManagerReadClientSecret" + Action = [ + "secretsmanager:GetSecretValue", + "secretsmanager:DescribeSecret", + ] + Effect = "Allow" + Resource = aws_secretsmanager_secret.client_secrets.arn + }, + { + Sid = "SecretsManagerListSecrets", + Action = "secretsmanager:ListSecrets", + Effect = "Allow", + Resource = "*" + } + ] + }) +} + +resource "aws_iam_role_policy" "crowdstrike_assume_target_scanner_role" { + count = local.is_host_account ? 1 : 0 + name = "CrowdStrikeAssumeTargetScannerRole" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Sid = "AssumeRole" + Effect = "Allow" + Action = [ + "sts:AssumeRole" + ] + Resource = "arn:${local.aws_partition}:iam::*:role/*" + } + ] + }) +} + +# EBS Volume Reader Policy for EBS Scanning +resource "aws_iam_role_policy" "crowdstrike_ebs_volume_reader" { + count = (local.create_ebs_policy && local.is_host_account) ? 1 : 0 + name = "CrowdStrikeEBSVolumeReader" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Sid = "AttachEBSVolumes" + Effect = "Allow" + Action = [ + "ec2:AttachVolume", + "ec2:DetachVolume" + ] + Resource = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:instance/*" + ] + Condition = { + StringEquals = { + "ec2:ResourceTag/${local.crowdstrike_tag_key}" = local.crowdstrike_tag_value + } + } + }, + { + Sid = "AllowDescribeVolumesAndInstanceAttributes" + Effect = "Allow" + Action = [ + "ec2:DescribeVolumes", + "ec2:DescribeInstanceAttribute" + ] + Resource = "*" + }, + { + Sid = "AllowUseOfKMSKeyForEBS" + Effect = "Allow" + Action = [ + "kms:Decrypt", + "kms:CreateGrant" + ] + Resource = "arn:${local.aws_partition}:kms:*:${data.aws_caller_identity.current.account_id}:key/*" + Condition = { + StringLike = { + "kms:ViaService" = "ec2.*.amazonaws.com" + } + } + } + ] + }) +} + diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/outputs.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/outputs.tf new file mode 100644 index 0000000..f6aefb1 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/outputs.tf @@ -0,0 +1,19 @@ +output "integration_role_name" { + description = "The arn of the IAM role that CrowdStrike will be assuming" + value = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.name +} + +output "integration_role_unique_id" { + description = "The unique ID of the DSPM integration role" + value = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.unique_id +} + +output "scanner_role_name" { + description = "The arn of the IAM role that CrowdStrike Scanner will be assuming" + value = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.name +} + +output "scanner_role_unique_id" { + description = "The unique ID of the DSPM scanner role" + value = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.unique_id +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/variables.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/variables.tf new file mode 100644 index 0000000..fa2c053 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/variables.tf @@ -0,0 +1,177 @@ +variable "agentless_scanning_role_name" { + description = "The unique name of the IAM role that Agentless scanning will be assuming" + type = string + default = "CrowdStrikeAgentlessScanningIntegrationRole" +} + +variable "agentless_scanning_scanner_role_name" { + description = "The unique name of the IAM role that Agentless scanning scanner will be assuming" + type = string + default = "CrowdStrikeAgentlessScanningScannerRole" +} + +variable "falcon_client_id" { + description = "CrowdStrike client ID" + type = string + nullable = false + validation { + condition = length(var.falcon_client_id) == 32 && can(regex("^[a-fA-F0-9]+$", var.falcon_client_id)) + error_message = "The client_id must be a valid v4 uuid (without dashes), containing only hexadecimal characters and exactly 32 characters long." + } +} + +variable "falcon_client_secret" { + description = "CrowdStrike client secret" + type = string + nullable = false +} + +variable "intermediate_role_arn" { + description = "ARN of the CrowdStrike assuming role" + type = string + nullable = false + + validation { + condition = can(regex("^arn:(aws|aws-us-gov):iam::[0-9]{12}:role/[a-zA-Z0-9+=,.@\\-_/]+$", var.intermediate_role_arn)) + error_message = "The provided value for cs_role_arn must be a valid AWS IAM role ARN." + } +} + +variable "external_id" { + description = "Unique ID for customer" + type = string + nullable = false + + validation { + condition = ( + length(var.external_id) >= 1 && + length(var.external_id) <= 256 && + can(regex("^[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+$", var.external_id)) + ) + error_message = "The provided value for the field external_id must be a valid AWS external ID." + } +} + +variable "agentless_scanning_regions" { + description = "List of regions where agentless scanning will be deployed" + type = list(string) + default = ["us-east-1"] + + validation { + condition = length(var.agentless_scanning_regions) > 0 + error_message = "At least one agentless scanning region must be specified." + } + + validation { + condition = alltrue([ + for region in var.agentless_scanning_regions : + (can(regex("^(?:us|eu|ap|sa|ca|af|me|il)-(?:north|south|east|west|central|northeast|southeast|southwest|northwest)-[1-4]$", region)) || + can(regex("^us-gov-(?:east|west)-1$", region)))]) + error_message = "Each element in the agentless_scanning_regions list must be a valid AWS region (e.g., 'us-east-1', 'eu-west-2', 'us-gov-east-1', 'us-gov-west-1')." + } +} + +variable "agentless_scanning_use_custom_vpc" { + description = "Whether to use existing custom VPC resources for ALL deployment regions (requires agentless_scanning_custom_vpc_resources_map with all regions)" + type = bool + default = false +} + +variable "agentless_scanning_custom_vpc_resources_map" { + description = "Map of region-specific VPC resources for existing VPC deployment. Keys are region names, values are objects containing VPC resource IDs." + type = map(object({ + vpc = string + scanner_subnet = string + scanner_sg = string + db_subnet_a = string + db_subnet_b = string + db_sg = string + })) + default = {} +} + +variable "dspm_s3_access" { + description = "Apply permissions for DSPM S3 bucket scanning" + type = bool + default = true +} + +variable "dspm_dynamodb_access" { + description = "Apply permissions for DSPM DynamoDB table scanning" + type = bool + default = true +} + +variable "dspm_rds_access" { + description = "Apply permissions for DSPM RDS instance scanning" + type = bool + default = true +} + +variable "dspm_redshift_access" { + description = "Apply permissions for DSPM Redshift cluster scanning" + type = bool + default = true +} + +variable "dspm_ebs_access" { + description = "Apply permissions for DSPM VM scanning" + type = bool + default = true +} + +variable "enable_dspm" { + description = "Enable DSPM scanning resources and permissions" + type = bool + default = false +} + +variable "enable_vulnerability_scanning" { + description = "Enable vulnerability scanning resources and permissions" + type = bool + default = false +} + +variable "tags" { + description = "A map of tags to add to all resources that support tagging" + type = map(string) + default = {} +} + +variable "permissions_boundary" { + description = "The name of the policy used to set the permissions boundary for IAM roles" + type = string + default = "" +} + +variable "agentless_scanning_host_account_id" { + type = string + default = "" + description = "The AWS account ID where agentless scanning host resources are deployed" + + validation { + condition = var.agentless_scanning_host_account_id == "" || can(regex("^\\d{12}$", var.agentless_scanning_host_account_id)) + error_message = "Agentless scanning host account ID must be empty or 12 digits." + } +} + +variable "agentless_scanning_host_scanner_role_name" { + type = string + default = "CrowdStrikeAgentlessScanningScannerRole" + description = "Name of agentless scanning scanner role in host account" + + validation { + condition = can(regex("^$|^[a-zA-Z0-9+=,.@_-]{1,64}$", var.agentless_scanning_host_scanner_role_name)) + error_message = "Role name must be empty or use only alphanumeric and '+=,.@-_' characters, maximum 64 characters." + } +} + +variable "account_id" { + type = string + default = "" + description = "The AWS 12 digit account ID" + validation { + condition = length(var.account_id) == 0 || can(regex("^[0-9]{12}$", var.account_id)) + error_message = "account_id must be either empty or the 12-digit AWS account ID" + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/versions.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/versions.tf new file mode 100644 index 0000000..5c472aa --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/agentless-scanning-roles/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.5.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.0.0" + } + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/main.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/main.tf new file mode 100644 index 0000000..f57213c --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/main.tf @@ -0,0 +1,234 @@ +data "aws_caller_identity" "current" {} +data "aws_partition" "current" {} + +locals { + account_id = data.aws_caller_identity.current.account_id + aws_partition = data.aws_partition.current.partition +} + +# Data resource to be used as the assume role policy below. +data "aws_iam_policy_document" "this" { + statement { + effect = "Allow" + actions = ["sts:AssumeRole"] + principals { + type = "AWS" + identifiers = [var.intermediate_role_arn] + } + condition { + test = "StringEquals" + values = [var.external_id] + variable = "sts:ExternalId" + } + } +} + +# Create IAM role policy giving the CrowdStrike IAM role read access to AWS resources. +resource "aws_iam_role" "this" { + count = !var.use_existing_iam_reader_role ? 1 : 0 + name = var.role_name + assume_role_policy = data.aws_iam_policy_document.this.json + permissions_boundary = var.permissions_boundary != "" ? "arn:${local.aws_partition}:iam::${local.account_id}:policy/${var.permissions_boundary}" : null + tags = var.tags +} + +resource "aws_iam_role_policy" "this" { + name = "cspm_config" + count = !var.use_existing_iam_reader_role ? 1 : 0 + role = aws_iam_role.this[count.index].id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Resource = "*" + Action = [ + "account:GetContactInformation", + "aoss:BatchGetCollection", + "aoss:GetAccessPolicy", + "aoss:GetSecurityPolicy", + "aoss:ListAccessPolicies", + "aoss:ListCollections", + "aoss:ListSecurityPolicies", + "appsync:GetApiCache", + "appsync:GetGraphqlApi", + "appsync:GetGraphqlApiEnvironmentVariables", + "appsync:GetIntrospectionSchema", + "athena:GetDataCatalog", + "auditmanager:GetAssessment", + "auditmanager:GetControl", + "backup:DescribeBackupVault", + "backup:DescribeRecoveryPoint", + "backup:GetBackupPlan", + "backup:GetBackupSelection", + "backup:ListBackupPlans", + "backup:ListBackupSelections", + "backup:ListRecoveryPointsByBackupVault", + "batch:DescribeJobQueues", + "bedrock-agentcore:GetGatewayTarget", + "bedrock-agentcore:GetHarnessEndpoint", + "bedrock-agentcore:GetMemory", + "bedrock-agentcore:GetPolicy", + "bedrock-agentcore:GetPolicyEngine", + "bedrock-agentcore:GetWorkloadIdentity", + "bedrock-agentcore:ListAgentRuntimeVersions", + "bedrock-agentcore:ListGatewayTargets", + "bedrock-agentcore:ListHarnessEndpoints", + "bedrock-agentcore:ListMemories", + "bedrock-agentcore:ListPolicies", + "bedrock-agentcore:ListPolicyEngines", + "bedrock-agentcore:ListTagsForResource", + "bedrock-agentcore:ListWorkloadIdentities", + "bedrock:GetAgent", + "bedrock:GetAgentActionGroup", + "bedrock:GetAgentAlias", + "bedrock:GetAgentCollaborator", + "bedrock:GetAgentKnowledgeBase", + "bedrock:GetAgentMemory", + "bedrock:GetAgentVersion", + "bedrock:GetFoundationModel", + "bedrock:GetFoundationModelAvailability", + "bedrock:GetGuardrail", + "bedrock:GetKnowledgeBase", + "bedrock:GetKnowledgeBaseDocuments", + "bedrock:GetModelCustomizationJob", + "bedrock:GetProvisionedModelThroughput", + "bedrock:ListAgentActionGroups", + "bedrock:ListAgentAliases", + "bedrock:ListAgentCollaborators", + "bedrock:ListAgentKnowledgeBases", + "bedrock:ListAgentVersions", + "bedrock:ListAgents", + "bedrock:ListFoundationModelAgreementOffers", + "bedrock:ListFoundationModels", + "bedrock:ListGuardrails", + "bedrock:ListKnowledgeBaseDocuments", + "bedrock:ListKnowledgeBases", + "bedrock:ListModelCustomizationJobs", + "bedrock:ListProvisionedModelThroughputs", + "cassandra:Select", + "cloudformation:GetTemplateSummary", + "cloudformation:ListChangeSets", + "codeartifact:DescribeDomain", + "codeartifact:DescribeRepository", + "codeartifact:ListDomains", + "codeartifact:ListRepositoriesInDomain", + "codeartifact:ListTagsForResource", + "codeguru-profiler:DescribeProfilingGroup", + "codeguru-profiler:ListProfilingGroups", + "codepipeline:ListPipelineExecutions", + "codepipeline:ListRuleExecutions", + "codepipeline:ListTagsForResource", + "codepipeline:ListWebhooks", + "cognito-idp:GetGroup", + "cognito-idp:GetLogDeliveryConfiguration", + "connect:DescribeInstance", + "connect:ListTagsForResource", + "databrew:DescribeJob", + "databrew:ListTagsForResource", + "detective:ListDatasourcePackages", + "detective:ListTagsForResource", + "dynamodb:GetResourcePolicy", + "ecr:BatchGetImage", + "ecr:GetDownloadUrlForLayer", + "ecr:GetRegistryScanningConfiguration", + "eks:DescribeAddon", + "eks:ListAddons", + "elasticfilesystem:DescribeAccessPoints", + "fms:GetAdminAccount", + "fms:GetPolicy", + "fms:ListAdminAccountsForOrganization", + "glue:GetBlueprint", + "glue:GetConnection", + "glue:GetConnections", + "glue:GetCrawler", + "glue:GetDatabase", + "glue:GetDevEndpoint", + "glue:GetJob", + "glue:GetResourcePolicies", + "glue:GetSchema", + "glue:GetTrigger", + "glue:GetTriggers", + "glue:ListBlueprints", + "glue:ListSchemas", + "grafana:DescribeWorkspace", + "grafana:DescribeWorkspaceAuthentication", + "grafana:DescribeWorkspaceConfiguration", + "imagebuilder:GetComponent", + "imagebuilder:GetImagePipeline", + "imagebuilder:GetImageRecipe", + "imagebuilder:GetInfrastructureConfiguration", + "imagebuilder:ListComponents", + "imagebuilder:ListImagePipelines", + "imagebuilder:ListImageRecipes", + "imagebuilder:ListInfrastructureConfigurations", + "imagebuilder:ListTagsForResource", + "lambda:GetEventSourceMapping", + "lambda:GetFunction", + "lambda:GetFunctionCodeSigningConfig", + "lambda:GetFunctionUrlConfig", + "lambda:GetLayerVersion", + "lightsail:GetBucketAccessKeys", + "lightsail:GetContainerServiceDeployments", + "lightsail:GetContainerServiceMetricData", + "lightsail:GetDisk", + "lightsail:GetInstance", + "lightsail:GetInstanceAccessDetails", + "lightsail:GetInstancePortStates", + "lightsail:GetInstanceState", + "lightsail:GetKeyPair", + "lightsail:GetKeyPairs", + "lightsail:GetRelationalDatabase", + "lightsail:GetRelationalDatabases", + "macie2:DescribeClassificationJob", + "macie2:GetAutomatedDiscoveryConfiguration", + "macie2:GetMacieSession", + "macie2:ListClassificationJobs", + "macie2:ListTagsForResource", + "memorydb:DescribeACLs", + "memorydb:DescribeParameterGroups", + "memorydb:DescribeParameters", + "memorydb:DescribeSnapshots", + "memorydb:DescribeSubnetGroups", + "memorydb:DescribeUsers", + "memorydb:ListTags", + "redshift-serverless:ListNamespaces", + "sns:GetSubscriptionAttributes", + "ssm:GetParameter", + "ssm:GetParameters", + "states:DescribeActivity", + "states:DescribeStateMachineForExecution", + "states:ListActivities", + "states:ListStateMachineAliases", + "states:ListStateMachineVersions", + "states:ListTagsForResource", + "storagegateway:DescribeSMBFileShares", + "waf-regional:GetIPSet", + "waf-regional:GetRule", + "waf-regional:GetRuleGroup", + "waf-regional:ListActivatedRulesInRuleGroup", + "waf-regional:ListIPSets", + "waf-regional:ListRuleGroups", + "waf-regional:ListRules", + "wafv2:GetIPSet", + "wafv2:GetRuleGroup", + "wisdom:ListAssistants", + "wisdom:ListTagsForResource" + ] + }, + { + Effect = "Allow" + Resource = "arn:${data.aws_partition.current.partition}:apigateway:*::/restapis/*" + Action = [ + "apigateway:Get" + ] + } + ] + }) +} + +resource "aws_iam_role_policy_attachment" "this" { + count = !var.use_existing_iam_reader_role ? 1 : 0 + role = aws_iam_role.this[count.index].name + policy_arn = "arn:${data.aws_partition.current.partition}:iam::aws:policy/SecurityAudit" +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/outputs.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/outputs.tf new file mode 100644 index 0000000..3cf4c23 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/outputs.tf @@ -0,0 +1,4 @@ +output "reader_role_arn" { + value = aws_iam_role.this[*].arn + description = "The reader role ARN used for asset inventory" +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/variables.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/variables.tf new file mode 100644 index 0000000..247746f --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/variables.tf @@ -0,0 +1,32 @@ +variable "external_id" { + type = string + description = "Unique identifier provided by CrowdStrike for secure cross-account access" +} + +variable "use_existing_iam_reader_role" { + type = bool + default = false + description = "Set to true if you intend to use an existing IAM role for asset inventory" +} + +variable "role_name" { + type = string + description = "Name of the asset inventory reader IAM role" +} + +variable "intermediate_role_arn" { + type = string + description = "ARN of CrowdStrike's intermediate role" +} + +variable "permissions_boundary" { + type = string + default = "" + description = "The name of the policy used to set the permissions boundary for IAM roles" +} + +variable "tags" { + description = "A map of tags to add to all resources that support tagging" + type = map(string) + default = {} +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/versions.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/versions.tf new file mode 100644 index 0000000..5c472aa --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/asset-inventory/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.5.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.0.0" + } + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/govcom.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/govcom.tf new file mode 100644 index 0000000..35e1553 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/govcom.tf @@ -0,0 +1,261 @@ +resource "random_string" "suffix" { + length = 8 + special = false + upper = false +} + +locals { + bucket_name = "${var.resource_prefix}s3-${random_string.suffix.result}${var.resource_suffix}" +} + +module "region_map" { + count = var.is_gov_commercial && var.is_primary_region ? 1 : 0 + source = "../region-map/" + aws_region = local.aws_region +} + +resource "aws_iam_role" "lambda" { + count = var.is_gov_commercial && var.is_primary_region ? 1 : 0 + name = "${var.resource_prefix}CSPMLambda${var.resource_suffix}" + assume_role_policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Action = "sts:AssumeRole" + Principal = { + Service = "lambda.amazonaws.com" + } + Sid = "" + } + ] + }) + permissions_boundary = var.permissions_boundary != "" ? "arn:${local.aws_partition}:iam::${local.account_id}:policy/${var.permissions_boundary}" : null + tags = var.tags +} + +resource "aws_iam_role_policy" "lambda_logging" { + count = var.is_gov_commercial && var.is_primary_region ? 1 : 0 + name = "logging" + role = aws_iam_role.lambda[0].id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Resource = [ + "arn:${local.aws_partition}:s3:::${local.bucket_name}", + "arn:${local.aws_partition}:s3:::${local.bucket_name}/*" + ] + Action = [ + "s3:ListBucket", + "s3:GetObject" + ] + }, + { + Effect = "Allow" + Resource = [ + "arn:${local.aws_partition}:logs:*:*:log-group:/aws/lambda/${var.resource_prefix}lambda-*", + "arn:${local.aws_partition}:logs:*:*:log-group:/aws/lambda/${var.resource_prefix}lambda-*:log-stream:*" + ] + Action = [ + "logs:PutLogEvents", + "logs:CreateLogStream" + ] + } + ] + }) +} + +resource "aws_cloudwatch_log_group" "eventbridge_logs" { + count = var.is_gov_commercial && var.is_primary_region ? 1 : 0 + name = "/aws/lambda/${var.resource_prefix}lambda-eventbridge${var.resource_suffix}" + retention_in_days = 1 + tags = var.tags +} + +resource "aws_lambda_function" "eventbridge" { + count = var.is_gov_commercial && var.is_primary_region ? 1 : 0 + function_name = "${var.resource_prefix}lambda-eventbridge${var.resource_suffix}" + role = aws_iam_role.lambda[0].arn + handler = "bootstrap" + runtime = "provided.al2023" + architectures = ["x86_64"] + memory_size = 128 + timeout = 15 + package_type = "Zip" + + s3_bucket = module.region_map[0].lambda_s3_bucket + s3_key = "aws/lambda/aws-lambda-eventbridge.zip" + tags = var.tags + + environment { + variables = { + CS_CLIENT_ID = var.falcon_client_id + CS_CLIENT_SECRET = var.falcon_client_secret + CS_GOV_CLOUD = "true" + CS_ADDRESS = "az.laggar.gcw.crowdstrike.com:443" + } + } + + depends_on = [aws_cloudwatch_log_group.eventbridge_logs] +} + +resource "aws_lambda_alias" "eventbridge" { + count = var.is_gov_commercial && var.is_primary_region ? 1 : 0 + name = "${var.resource_prefix}lambda-eventbridge${var.resource_suffix}" + function_version = "$LATEST" + function_name = aws_lambda_function.eventbridge[0].arn +} + +resource "aws_lambda_permission" "eventbridge" { + count = var.is_gov_commercial && var.is_primary_region ? 1 : 0 + function_name = aws_lambda_alias.eventbridge[0].function_name + qualifier = aws_lambda_alias.eventbridge[0].name + action = "lambda:InvokeFunction" + principal = "events.amazonaws.com" + source_arn = "arn:${local.aws_partition}:events:${local.aws_region}:${local.account_id}:rule/${var.resource_prefix}cs-*" +} + +# DEPRECATED: The following gov-commercial S3/Lambda resources for CloudTrail provisioning +# are no longer created. With use_existing_cloudtrail defaulting to true, all resources +# gated on !var.use_existing_cloudtrail will have count=0. + +resource "aws_cloudwatch_log_group" "s3_logs" { + count = var.is_gov_commercial && !var.use_existing_cloudtrail && var.is_primary_region ? 1 : 0 + name = "/aws/lambda/${var.resource_prefix}lambda-s3${var.resource_suffix}" + retention_in_days = 1 + tags = var.tags +} + +resource "aws_lambda_function" "s3" { + count = var.is_gov_commercial && !var.use_existing_cloudtrail && var.is_primary_region ? 1 : 0 + function_name = "${var.resource_prefix}lambda-s3${var.resource_suffix}" + role = aws_iam_role.lambda[0].arn + handler = "bootstrap" + runtime = "provided.al2023" + architectures = ["x86_64"] + memory_size = 128 + timeout = 15 + package_type = "Zip" + + s3_bucket = module.region_map[0].lambda_s3_bucket + s3_key = "aws/lambda/aws-lambda-s3.zip" + tags = var.tags + + environment { + variables = { + CS_CLIENT_ID = var.falcon_client_id + CS_CLIENT_SECRET = var.falcon_client_secret + CS_GOV_CLOUD = "true" + } + } + + depends_on = [aws_cloudwatch_log_group.s3_logs] +} + +resource "aws_lambda_alias" "s3" { + count = var.is_gov_commercial && !var.use_existing_cloudtrail && var.is_primary_region ? 1 : 0 + name = "${var.resource_prefix}lambda-s3${var.resource_suffix}" + function_version = "$LATEST" + function_name = aws_lambda_function.s3[0].arn +} + +resource "aws_lambda_permission" "s3" { + count = var.is_gov_commercial && !var.use_existing_cloudtrail && var.is_primary_region ? 1 : 0 + function_name = aws_lambda_alias.s3[0].function_name + qualifier = aws_lambda_alias.s3[0].name + action = "lambda:InvokeFunction" + principal = "s3.amazonaws.com" + source_arn = "arn:${local.aws_partition}:s3:::${local.bucket_name}" +} + +resource "aws_s3_bucket" "s3" { + count = var.is_gov_commercial && !var.use_existing_cloudtrail && var.is_primary_region ? 1 : 0 + bucket = local.bucket_name + force_destroy = true + tags = var.tags + + depends_on = [ + aws_lambda_permission.s3 + ] +} + +resource "aws_s3_bucket_lifecycle_configuration" "s3" { + count = var.is_gov_commercial && !var.use_existing_cloudtrail && var.is_primary_region ? 1 : 0 + bucket = aws_s3_bucket.s3[0].id + rule { + id = "rule-1" + status = "Enabled" + filter { + prefix = "" + } + expiration { + days = 1 + } + } +} + +resource "aws_s3_bucket_notification" "s3" { + count = var.is_gov_commercial && !var.use_existing_cloudtrail && var.is_primary_region ? 1 : 0 + bucket = aws_s3_bucket.s3[0].id + + lambda_function { + lambda_function_arn = aws_lambda_alias.s3[0].arn + events = ["s3:ObjectCreated:*"] + } + + depends_on = [ + aws_lambda_permission.s3 + ] +} + +resource "aws_s3_bucket_ownership_controls" "s3" { + count = var.is_gov_commercial && !var.use_existing_cloudtrail && var.is_primary_region ? 1 : 0 + bucket = aws_s3_bucket.s3[0].id + rule { + object_ownership = "BucketOwnerPreferred" + } +} + +resource "aws_s3_bucket_acl" "s3" { + count = var.is_gov_commercial && !var.use_existing_cloudtrail && var.is_primary_region ? 1 : 0 + bucket = aws_s3_bucket.s3[0].id + acl = "private" + + depends_on = [aws_s3_bucket_ownership_controls.s3] +} + +resource "aws_s3_bucket_policy" "s3" { + count = var.is_gov_commercial && !var.use_existing_cloudtrail && var.is_primary_region ? 1 : 0 + bucket = aws_s3_bucket.s3[0].id + + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Sid = "AWSCloudTrailAclCheck" + Effect = "Allow" + Principal = { + Service = "cloudtrail.amazonaws.com" + } + Action = "s3:GetBucketAcl" + Resource = "arn:${local.aws_partition}:s3:::${aws_s3_bucket.s3[0].id}" + }, + { + Sid = "AWSCloudTrailWrite" + Effect = "Allow" + Principal = { + Service = "cloudtrail.amazonaws.com" + } + Action = "s3:PutObject" + Resource = "arn:${local.aws_partition}:s3:::${aws_s3_bucket.s3[0].id}/*" + Condition = { + StringEquals = { + "s3:x-amz-acl" = "bucket-owner-full-control" + } + } + } + ] + }) +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/main.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/main.tf new file mode 100644 index 0000000..7ea6ee4 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/main.tf @@ -0,0 +1,258 @@ +data "aws_caller_identity" "current" {} +data "aws_region" "current" {} +data "aws_partition" "current" {} + +locals { + # Prefer the caller-supplied account ID and region over the data source reads: Terraform + # defers data source reads to apply when this module has pending-change dependencies, and + # the counts further down need to be resolvable at plan time. The root module always passes + # both, resolving them from configuration where it can. See CSPG-102208. + account_id = var.account_id != "" ? var.account_id : data.aws_caller_identity.current.account_id + aws_region = var.region != null ? var.region : data.aws_region.current.id + aws_partition = data.aws_partition.current.partition + + # Conditional logic for log ingestion methods + use_s3_method = var.log_ingestion_method == "s3" + use_eventbridge_method = var.log_ingestion_method == "eventbridge" + has_kms_key = var.log_ingestion_kms_key_arn != "" + has_s3_prefix = var.log_ingestion_s3_bucket_prefix != "" + + # Parse the SNS topic ARN to extract account ID and region; S3 resources are only + # created when both match the current account and region. + # + # Parsed with split() rather than the aws_arn data source on purpose. aws_arn makes + # no API call, but Terraform still defers it to apply alongside every other read in + # this module, which left these counts unresolvable at plan time. ARNs are + # arn:partition:service:region:account-id:resource, so region is [3], account is [4]. + sns_topic_arn_parts = var.log_ingestion_sns_topic_arn != "" ? split(":", var.log_ingestion_sns_topic_arn) : [] + sns_topic_account_id = length(local.sns_topic_arn_parts) > 4 ? local.sns_topic_arn_parts[4] : "" + sns_topic_region = length(local.sns_topic_arn_parts) > 4 ? local.sns_topic_arn_parts[3] : "" + use_s3_method_and_sns_topic_in_current_account = local.use_s3_method && var.log_ingestion_sns_topic_arn != "" && local.sns_topic_account_id == local.account_id + use_s3_method_and_sns_topic_in_current_region = local.use_s3_method && var.log_ingestion_sns_topic_arn != "" && local.sns_topic_region == local.aws_region + use_s3_method_and_sns_topic_matches_current = local.use_s3_method_and_sns_topic_in_current_account && local.use_s3_method_and_sns_topic_in_current_region +} + +resource "aws_iam_role" "eventbridge" { + count = local.use_eventbridge_method && var.is_primary_region ? 1 : 0 + name = "${var.resource_prefix}${var.eventbridge_role_name}${var.resource_suffix}" + assume_role_policy = jsonencode({ + "Version" : "2012-10-17", + "Statement" : [ + { + "Action" : "sts:AssumeRole", + "Principal" : { + "Service" : "events.amazonaws.com" + }, + "Effect" : "Allow", + "Sid" : "", + "Condition" : { + "StringEquals" : { + "aws:SourceAccount" : local.account_id + }, + "ArnLike" : { + "aws:SourceArn" : "arn:${local.aws_partition}:events:*:${local.account_id}:rule/*" + } + } + } + ] + }) + permissions_boundary = var.permissions_boundary != "" ? "arn:${local.aws_partition}:iam::${local.account_id}:policy/${var.permissions_boundary}" : null + tags = var.tags +} + +resource "aws_iam_role_policy" "inline_policy" { + count = local.use_eventbridge_method && var.is_primary_region ? 1 : 0 + name = "eventbridge-put-events" + role = aws_iam_role.eventbridge[count.index].id + policy = jsonencode({ + "Version" : "2012-10-17", + "Statement" : [ + { + "Action" : [ + "events:PutEvents" + ], + "Resource" : !var.is_gov_commercial ? compact(split(",", var.eventbus_arn)) : ["arn:${local.aws_partition}:events:*:${local.account_id}:event-bus/default"] + "Effect" : "Allow" + } + ] + }) +} + +# DEPRECATED: CloudTrail provisioning is no longer supported. +# With use_existing_cloudtrail defaulting to true, this resource will never be created. +resource "aws_cloudtrail" "this" { + count = !var.use_existing_cloudtrail && var.is_primary_region ? 1 : 0 + name = "${var.resource_prefix}CSPMCloudtrail${var.resource_suffix}" + s3_bucket_name = !var.is_gov_commercial ? var.cloudtrail_bucket_name : aws_s3_bucket.s3[0].bucket + s3_key_prefix = "" + include_global_service_events = true + is_multi_region_trail = true + enable_logging = true + is_organization_trail = var.is_organization_trail + tags = var.tags +} + +# Dead Letter Queue for failed CloudTrail log messages +resource "aws_sqs_queue" "cloudtrail_logs_dlq" { + count = local.use_s3_method_and_sns_topic_matches_current ? 1 : 0 + name = "${var.resource_prefix}CloudTrailLogsDLQ${var.resource_suffix}" + message_retention_seconds = 1209600 # 14 days + tags = merge(var.tags, { + Name = "${var.resource_prefix}CloudTrailLogsDLQ${var.resource_suffix}" + }) +} + +# SQS Queue for S3-based log consumption method +resource "aws_sqs_queue" "cloudtrail_logs_sqs" { + count = local.use_s3_method_and_sns_topic_matches_current ? 1 : 0 + name = "${var.resource_prefix}CloudTrailLogsSQS${var.resource_suffix}" + message_retention_seconds = 1209600 # 14 days + visibility_timeout_seconds = 300 # 5 minutes + + redrive_policy = jsonencode({ + deadLetterTargetArn = aws_sqs_queue.cloudtrail_logs_dlq[0].arn + maxReceiveCount = 5 + }) + + tags = merge(var.tags, { + Name = "${var.resource_prefix}CloudTrailLogsSQS${var.resource_suffix}" + }) +} + +# SQS Queue Policy to allow SNS to send messages +resource "aws_sqs_queue_policy" "cloudtrail_logs_sqs_policy" { + count = local.use_s3_method_and_sns_topic_matches_current ? 1 : 0 + queue_url = aws_sqs_queue.cloudtrail_logs_sqs[0].id + + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Principal = { + Service = "sns.amazonaws.com" + } + Action = "sqs:SendMessage" + Resource = aws_sqs_queue.cloudtrail_logs_sqs[0].arn + Condition = { + ArnEquals = { + "aws:SourceArn" = var.log_ingestion_sns_topic_arn + } + } + } + ] + }) +} + +# SNS Subscription to link SNS topic to SQS queue +resource "aws_sns_topic_subscription" "cloudtrail_logs_sns_subscription" { + count = local.use_s3_method_and_sns_topic_matches_current ? 1 : 0 + protocol = "sqs" + topic_arn = var.log_ingestion_sns_topic_arn + endpoint = aws_sqs_queue.cloudtrail_logs_sqs[0].arn + raw_message_delivery = false +} + +# Cross-account IAM role for S3 log consumption +resource "aws_iam_role" "s3_log_role" { + count = local.use_s3_method_and_sns_topic_matches_current ? 1 : 0 + name = "${var.resource_prefix}CrowdStrikeCloudTrailReader${var.resource_suffix}" + + assume_role_policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Principal = { + AWS = var.intermediate_role_arn + } + Condition = { + StringEquals = { + "sts:ExternalId" = var.external_id + } + } + Action = "sts:AssumeRole" + } + ] + }) + + permissions_boundary = var.permissions_boundary != "" ? "arn:${local.aws_partition}:iam::${local.account_id}:policy/${var.permissions_boundary}" : null + tags = var.tags + + depends_on = [ + aws_sqs_queue.cloudtrail_logs_sqs, + aws_sqs_queue.cloudtrail_logs_dlq + ] +} + +# IAM Policy for S3-based log consumption permissions +resource "aws_iam_policy" "s3_log_consumption_policy" { + count = local.use_s3_method_and_sns_topic_matches_current ? 1 : 0 + name = "${var.resource_prefix}CrowdStrikeS3LogConsumption${var.resource_suffix}" + + policy = jsonencode({ + Version = "2012-10-17" + Statement = concat([ + # S3 permissions for CloudTrail logs + { + Sid = "S3CloudTrailLogsAccess" + Effect = "Allow" + Action = [ + "s3:GetObject", + "s3:ListBucket" + ] + Resource = local.has_s3_prefix ? [ + "arn:${local.aws_partition}:s3:::${var.log_ingestion_s3_bucket_name}", + "arn:${local.aws_partition}:s3:::${var.log_ingestion_s3_bucket_name}/${var.log_ingestion_s3_bucket_prefix}/*" + ] : [ + "arn:${local.aws_partition}:s3:::${var.log_ingestion_s3_bucket_name}", + "arn:${local.aws_partition}:s3:::${var.log_ingestion_s3_bucket_name}/*" + ] + }, + # SQS permissions for queue operations + { + Sid = "SQSCloudTrailLogsAccess" + Effect = "Allow" + Action = [ + "sqs:ReceiveMessage", + "sqs:DeleteMessage", + "sqs:ChangeMessageVisibility", + "sqs:GetQueueAttributes", + "sqs:SendMessage" + ] + Resource = [ + aws_sqs_queue.cloudtrail_logs_sqs[0].arn, + aws_sqs_queue.cloudtrail_logs_dlq[0].arn + ] + }, + # CloudWatch metrics permissions for SQS monitoring + { + Sid = "CloudWatchSQSMetricsAccess" + Effect = "Allow" + Action = [ + "cloudwatch:GetMetricStatistics", + "cloudwatch:ListMetrics" + ] + Resource = "*" + } + ], local.has_kms_key ? [ + # KMS permissions for decryption (if KMS key provided) + { + Sid = "KMSCloudTrailLogsAccess" + Effect = "Allow" + Action = [ + "kms:Decrypt", + "kms:DescribeKey" + ] + Resource = var.log_ingestion_kms_key_arn + } + ] : []) + }) +} + +# Attach policy to role +resource "aws_iam_role_policy_attachment" "s3_log_consumption_policy_attachment" { + count = local.use_s3_method_and_sns_topic_matches_current ? 1 : 0 + role = aws_iam_role.s3_log_role[0].name + policy_arn = aws_iam_policy.s3_log_consumption_policy[0].arn +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/outputs.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/outputs.tf new file mode 100644 index 0000000..59792c5 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/outputs.tf @@ -0,0 +1,25 @@ +output "eventbridge_lambda_alias" { + value = try(aws_lambda_alias.eventbridge[0].arn, "") + description = "The AWS lambda alias to forward events to" +} + +# S3 Log Ingestion Outputs +output "s3_log_role_arn" { + value = try(aws_iam_role.s3_log_role[0].arn, "") + description = "ARN of the IAM role for S3 log ingestion" +} + +output "sqs_queue_arn" { + value = try(aws_sqs_queue.cloudtrail_logs_sqs[0].arn, "") + description = "ARN of the SQS queue for CloudTrail log notifications" +} + +output "sqs_dlq_arn" { + value = try(aws_sqs_queue.cloudtrail_logs_dlq[0].arn, "") + description = "ARN of the dead letter queue for failed messages" +} + +output "sns_subscription_arn" { + value = try(aws_sns_topic_subscription.cloudtrail_logs_sns_subscription[0].arn, "") + description = "ARN of the SNS subscription linking customer topic to SQS queue" +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/rules.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/rules.tf new file mode 100644 index 0000000..b63f3e5 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/rules.tf @@ -0,0 +1,153 @@ +locals { + target_id = "CrowdStrikeCentralizeEvents" + rule_name = "${var.resource_prefix}cs-cloudtrail-events-ioa-rule${var.resource_suffix}" + event_pattern = jsonencode({ + source = [ + { + "prefix" : "aws." + } + ], + detail-type = [ + { + suffix = "via CloudTrail" + } + ], + detail = { + "eventName" : [ + { + "anything-but" : [ + "InvokeExecution", + "Invoke", + "UploadPart", + "PutObject", + "InitiateReplication", + "Publish" + ] + } + ], + "readOnly" : [ + false + ] + } + }) + + ro_rule_name = "${var.resource_prefix}cs-cloudtrail-events-readonly-rule${var.resource_suffix}" + ro_event_pattern = jsonencode({ + source = [ + { + "prefix" : "aws." + } + ], + detail-type = [ + { + "suffix" : "via CloudTrail" + } + ], + detail = { + "readOnly" : [ + true + ] + }, + "$or" : [ + { + "detail" : { + "eventName" : [ + { + "anything-but" : [ + "Encrypt", + "Decrypt", + "GenerateDataKey", + "Sign", + "GetObject", + "HeadObject", + "ListObjects", + "GetObjectTagging", + "GetObjectAcl", + "AssumeRole" + ] + } + ] + } + }, + { + "detail" : { + "eventName" : [ + "AssumeRole" + ], + "userIdentity" : { + "type" : [ + { + "anything-but" : [ + "AWSService" + ] + } + ] + } + } + } + ] + }) + + default_eventbus_arn = "arn:${local.aws_partition}:events:${var.primary_region}:${local.account_id}:event-bus/default" + eventbus_arn = ( + var.is_gov_commercial ? + ( + var.is_primary_region ? + aws_lambda_alias.eventbridge[0].arn : + local.default_eventbus_arn + ) : var.is_gov ? + coalesce( + try( + one([ + for value in split(",", var.eventbus_arn) : trimspace(value) + if strcontains(trimspace(value), local.aws_region) + ]), + null + ), + local.default_eventbus_arn + ) : + var.eventbus_arn + ) + eventbridge_role_arn = ( + var.is_gov_commercial && var.is_primary_region ? + null : + "arn:${local.aws_partition}:iam::${local.account_id}:role/${var.resource_prefix}${var.eventbridge_role_name}${var.resource_suffix}" + ) +} + +resource "aws_cloudwatch_event_rule" "rw" { + count = local.use_eventbridge_method && var.create_rules ? 1 : 0 + name = local.rule_name + event_pattern = local.event_pattern +} + +resource "aws_cloudwatch_event_target" "rw" { + count = local.use_eventbridge_method && var.create_rules ? 1 : 0 + target_id = local.target_id + arn = local.eventbus_arn + rule = aws_cloudwatch_event_rule.rw[0].name + role_arn = local.eventbridge_role_arn + + depends_on = [ + aws_lambda_alias.eventbridge + ] +} + + +resource "aws_cloudwatch_event_rule" "ro" { + count = local.use_eventbridge_method && var.create_rules ? 1 : 0 + name = local.ro_rule_name + event_pattern = local.ro_event_pattern +} + +resource "aws_cloudwatch_event_target" "ro" { + count = local.use_eventbridge_method && var.create_rules ? 1 : 0 + target_id = local.target_id + arn = local.eventbus_arn + rule = aws_cloudwatch_event_rule.ro[0].name + role_arn = local.eventbridge_role_arn + + depends_on = [ + aws_lambda_alias.eventbridge + ] +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/variables.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/variables.tf new file mode 100644 index 0000000..711beb5 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/variables.tf @@ -0,0 +1,149 @@ +variable "is_primary_region" { + type = bool + default = false + description = "Whether this is the primary region for deploying global AWS resources (IAM roles, policies, etc.) that are account-wide and only need to be created once." +} + +variable "region" { + type = string + default = null + description = "The region this module instance deploys into, passed down from the root module. When null, the region is read from data.aws_region.current. See CSPG-102208." +} + +variable "account_id" { + type = string + default = "" + description = "The AWS 12 digit account ID, passed down from the root module. When empty, the account ID is read from data.aws_caller_identity.current. See CSPG-102208." +} + +variable "primary_region" { + description = "Region for deploying global AWS resources (IAM roles, policies, etc.) that are account-wide and only need to be created once. Distinct from agentless_scanning_regions which controls region-specific resource deployment." + type = string +} + +variable "create_rules" { + type = bool + default = true + description = "Set to false if you don't want to enable monitoring in this region" +} + +variable "cloudtrail_bucket_name" { + type = string + default = "" + description = "DEPRECATED: This variable is no longer used. CrowdStrike no longer provisions or references a CloudTrail S3 bucket." +} + +variable "use_existing_cloudtrail" { + type = bool + default = true + description = "DEPRECATED: This variable is no longer used. CrowdStrike no longer provisions CloudTrail resources. All deployments now behave as if use_existing_cloudtrail=true." +} + +variable "is_organization_trail" { + type = bool + default = false + description = "Whether the Cloudtrail to be created is an organization trail" +} + +variable "permissions_boundary" { + type = string + default = "" + description = "The name of the policy used to set the permissions boundary for IAM roles" +} + +variable "eventbridge_role_name" { + type = string + default = "CrowdStrikeCSPMEventBridge" + description = "The eventbridge role name" +} + +variable "is_gov" { + type = bool + default = false + description = "Set to true if you are deploying in gov Falcon" +} + +variable "is_gov_commercial" { + type = bool + default = false + description = "Set to true if this is a commercial account in gov-cloud" +} + +variable "falcon_client_id" { + type = string + sensitive = true + description = "Falcon API Client ID" +} + +variable "falcon_client_secret" { + type = string + sensitive = true + description = "Falcon API Client Secret" +} + +variable "eventbus_arn" { + type = string + description = "EventBus ARN(s) to send events to - single ARN for commercial, comma-separated for gov multi-region" +} + +variable "resource_prefix" { + description = "The prefix to be added to all resource names" + default = "" + type = string +} + +variable "resource_suffix" { + description = "The suffix to be added to all resource names" + default = "" + type = string +} + +variable "tags" { + description = "A map of tags to add to all resources that support tagging" + type = map(string) + default = {} +} + +# S3 Log Ingestion Variables +variable "log_ingestion_method" { + type = string + default = "eventbridge" + description = "Choose the method for ingesting CloudTrail logs - EventBridge (default) or S3" +} + +variable "log_ingestion_s3_bucket_name" { + type = string + default = "" + description = "S3 bucket name containing CloudTrail logs (required when log_ingestion_method=s3)" +} + +variable "log_ingestion_sns_topic_arn" { + type = string + default = "" + description = "SNS topic ARN that publishes S3 object creation events (required when log_ingestion_method=s3)" +} + +variable "log_ingestion_s3_bucket_prefix" { + type = string + default = "" + description = "Optional S3 bucket prefix/path for CloudTrail logs (when log_ingestion_method=s3)" +} + +variable "log_ingestion_kms_key_arn" { + type = string + default = "" + description = "Optional KMS key ARN for decrypting S3 objects (when log_ingestion_method=s3)" +} + +variable "external_id" { + type = string + default = "" + description = "External ID for secure cross-account role assumption" +} + + +variable "intermediate_role_arn" { + type = string + default = "" + description = "CrowdStrike Role ARN for cross-account access" +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/versions.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/versions.tf new file mode 100644 index 0000000..dfcaa60 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/realtime-visibility/versions.tf @@ -0,0 +1,13 @@ +terraform { + required_version = ">= 1.5.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.0.0" + } + random = { + source = "hashicorp/random" + version = ">= 3.7.1" + } + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/main.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/main.tf new file mode 100644 index 0000000..d342cea --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/main.tf @@ -0,0 +1,45 @@ +# Region-specific prefixes and bucket IDs for constructing regional +# cloudconnect-templates S3 bucket names. Must stay in sync with +# cs_aws_region_map.yaml.tmpl in the CSPM/configs repository. +locals { + region_bucket_map = { + "us-east-1" = { prefix = "use1", bucket_region_id = "4721cdb0" } + "us-east-2" = { prefix = "use2", bucket_region_id = "0c19f3dd" } + "us-west-1" = { prefix = "usw1", bucket_region_id = "810f8878" } + "us-west-2" = { prefix = "usw2", bucket_region_id = "bce32e5c" } + "af-south-1" = { prefix = "afs1", bucket_region_id = "ef8595a0" } + "ap-east-1" = { prefix = "ape1", bucket_region_id = "70bb0ea3" } + "ap-northeast-1" = { prefix = "apne1", bucket_region_id = "145f171b" } + "ap-northeast-2" = { prefix = "apne2", bucket_region_id = "68bbfe3e" } + "ap-northeast-3" = { prefix = "apne3", bucket_region_id = "d4160e46" } + "ap-southeast-1" = { prefix = "apse1", bucket_region_id = "db65e1e6" } + "ap-south-1" = { prefix = "aps1", bucket_region_id = "d41357ff" } + "ca-central-1" = { prefix = "cac1", bucket_region_id = "315e8647" } + "eu-central-1" = { prefix = "euc1", bucket_region_id = "edd048dc" } + "eu-north-1" = { prefix = "eun1", bucket_region_id = "ae865f0d" } + "eu-south-1" = { prefix = "eus1", bucket_region_id = "e006fd77" } + "eu-west-1" = { prefix = "euw1", bucket_region_id = "25924530" } + "eu-west-2" = { prefix = "euw2", bucket_region_id = "5e56e088" } + "eu-west-3" = { prefix = "euw3", bucket_region_id = "f154c304" } + "me-south-1" = { prefix = "mes1", bucket_region_id = "9f7d433b" } + "sa-east-1" = { prefix = "sae1", bucket_region_id = "589dbb5f" } + "ap-southeast-2" = { prefix = "apse2", bucket_region_id = "804dcf46" } + "ap-southeast-3" = { prefix = "apse3", bucket_region_id = "2353cfc8" } + "me-central-1" = { prefix = "mec1", bucket_region_id = "7b30ccf6" } + "eu-central-2" = { prefix = "euc2", bucket_region_id = "6b50b33b" } + "eu-south-2" = { prefix = "eus2", bucket_region_id = "b5ff3cb9" } + "ap-south-2" = { prefix = "aps2", bucket_region_id = "ab74afb6" } + "ap-southeast-4" = { prefix = "apse4", bucket_region_id = "d5e19596" } + "ca-west-1" = { prefix = "caw1", bucket_region_id = "b1fef251" } + "il-central-1" = { prefix = "ilc1", bucket_region_id = "a02bc6ec" } + "mx-central-1" = { prefix = "mxc1", bucket_region_id = "8db1e6e1" } + "ap-southeast-5" = { prefix = "apse5", bucket_region_id = "0ab89571" } + "ap-southeast-7" = { prefix = "apse7", bucket_region_id = "25b2cfcf" } + } + + # Look up the current region's info. + region_info = lookup(local.region_bucket_map, var.aws_region, null) + + # Construct the regional Lambda S3 bucket name. + lambda_s3_bucket = local.region_info != null ? "cs-prod-cloudconnect-templates-${local.region_info.prefix}-${local.region_info.bucket_region_id}" : "" +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/outputs.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/outputs.tf new file mode 100644 index 0000000..0483d9a --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/outputs.tf @@ -0,0 +1,9 @@ +output "lambda_s3_bucket" { + description = "The S3 bucket name for Lambda ZIP packages in this region." + value = local.lambda_s3_bucket + + precondition { + condition = local.region_info != null + error_message = "Unsupported AWS region \"${var.aws_region}\". Check the region_bucket_map in the region-map module for supported regions." + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/variables.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/variables.tf new file mode 100644 index 0000000..5b48e7c --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/variables.tf @@ -0,0 +1,4 @@ +variable "aws_region" { + description = "The AWS region to look up in the region map." + type = string +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/versions.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/versions.tf new file mode 100644 index 0000000..fd126d1 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/region-map/versions.tf @@ -0,0 +1,3 @@ +terraform { + required_version = ">= 1.5.0" +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/main.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/main.tf new file mode 100644 index 0000000..0e2e2d0 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/main.tf @@ -0,0 +1,178 @@ +data "aws_caller_identity" "current" {} +data "aws_region" "current" {} +data "aws_partition" "current" {} + +locals { + account_id = data.aws_caller_identity.current.account_id + aws_region = data.aws_region.current.id + aws_partition = data.aws_partition.current.partition + is_gov_account = var.account_type == "gov" + lambda_s3_bucket = local.is_gov_account ? "cs-horizon-sensormgmt-lambda-${local.aws_region}" : module.region_map[0].lambda_s3_bucket + lambda_s3_key = local.is_gov_account ? "aws/horizon-sensor-installation-orchestrator.zip" : "aws/lambda/horizon-sensor-installation-orchestrator.zip" +} + +module "region_map" { + count = local.is_gov_account ? 0 : 1 + source = "../region-map/" + aws_region = local.aws_region +} + + +# Data resource to be used as the assume role policy below. +data "aws_iam_policy_document" "management" { + statement { + effect = "Allow" + actions = ["sts:AssumeRole"] + principals { + type = "AWS" + identifiers = [var.intermediate_role_arn] + } + condition { + test = "StringEquals" + values = [var.external_id] + variable = "sts:ExternalId" + } + } +} + +resource "aws_iam_role" "management" { + name = "${var.resource_prefix}SensorManagement${var.resource_suffix}" + assume_role_policy = data.aws_iam_policy_document.management.json + permissions_boundary = var.permissions_boundary != "" ? "arn:${local.aws_partition}:iam::${local.account_id}:policy/${var.permissions_boundary}" : null + tags = var.tags +} + +resource "aws_iam_role_policy" "invoke_lambda" { + name = "sensor-management-invoke-orchestrator-lambda" + role = aws_iam_role.management.id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Action = [ + "lambda:InvokeFunction", + "lambda:InvokeAsync" + ] + Effect = "Allow" + Resource = "arn:${local.aws_partition}:lambda:*:${local.account_id}:function:${var.resource_prefix}cs-*" + Sid = "InvokeLambda" + }, + { + Action = [ + "ssm:GetDocument", + "ssm:GetCommandInvocation", + "ssm:ListCommands", + "ssm:ListCommandInvocations" + ] + Effect = "Allow" + Resource = "*" + } + ] + }) +} + +data "aws_iam_policy_document" "orchestrator" { + statement { + effect = "Allow" + actions = ["sts:AssumeRole"] + principals { + type = "Service" + identifiers = ["lambda.amazonaws.com"] + } + } +} + +resource "aws_iam_role" "orchestrator" { + name = "${var.resource_prefix}SensorManagementOrchestrator${var.resource_suffix}" + assume_role_policy = data.aws_iam_policy_document.orchestrator.json + permissions_boundary = var.permissions_boundary != "" ? "arn:${local.aws_partition}:iam::${local.account_id}:policy/${var.permissions_boundary}" : null + tags = var.tags +} + +resource "aws_iam_role_policy" "orchestrator" { + name = "sensor-management-orchestrator-lambda-ssm-send-command" + role = aws_iam_role.orchestrator.id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Action = [ + "ssm:SendCommand" + ] + Effect = "Allow" + Resource = [ + "arn:${local.aws_partition}:ssm:*:*:document/*", + "arn:${local.aws_partition}:ec2:*:*:instance/*" + ] + }, + { + Action = [ + "logs:PutLogEvents", + "logs:CreateLogStream" + ] + Effect = "Allow" + Resource = [ + "arn:${local.aws_partition}:logs:*:*:log-group:/aws/lambda/${var.resource_prefix}cs-*", + "arn:${local.aws_partition}:logs:*:*:log-group:/aws/lambda/${var.resource_prefix}cs-*:log-stream:*" + ] + Sid = "Logging" + }, + { + Action = [ + "secretsmanager:GetSecretValue" + ] + Effect = "Allow" + Resource = "arn:${local.aws_partition}:secretsmanager:${local.aws_region}:${local.account_id}:secret:/CrowdStrike/CSPM/SensorManagement/FalconAPICredentials-??????" + Sid = "GetFalconCredentials" + } + ] + }) +} + +resource "aws_cloudwatch_log_group" "crowdstrike_sensor_management" { + name = "/aws/lambda/${var.resource_prefix}cs-horizon-sensor-installation-orchestrator${var.resource_suffix}" + retention_in_days = 1 +} + +resource "aws_secretsmanager_secret" "this" { + name = "/CrowdStrike/CSPM/SensorManagement/FalconAPICredentials" + description = "Falcon API credentials. Used by the 1-Click sensor management orchestrator" + recovery_window_in_days = 0 +} + +resource "aws_secretsmanager_secret_version" "this" { + secret_id = aws_secretsmanager_secret.this.id + secret_string = jsonencode({ + ClientSecret = var.falcon_client_secret + }) +} + +resource "aws_lambda_function" "this" { + function_name = "${var.resource_prefix}cs-horizon-sensor-installation-orchestrator${var.resource_suffix}" + role = aws_iam_role.orchestrator.arn + handler = "bootstrap" + runtime = "provided.al2023" + architectures = ["x86_64"] + memory_size = 128 + timeout = 900 + package_type = "Zip" + + s3_bucket = local.lambda_s3_bucket + s3_key = local.lambda_s3_key + + environment { + variables = merge( + { + CS_CLIENT_ID = var.falcon_client_id + CS_API_CREDENTIALS_AWS_SECRET = aws_secretsmanager_secret.this.name + CS_MODE = "force_auth" + }, + var.is_gov ? { + CS_GOV_CLOUD = "true" + CS_ADDRESS = var.cs_address + } : {} + ) + } + + depends_on = [aws_cloudwatch_log_group.crowdstrike_sensor_management] +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/outputs.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/outputs.tf new file mode 100644 index 0000000..e69de29 diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/variables.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/variables.tf new file mode 100644 index 0000000..82e607b --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/variables.tf @@ -0,0 +1,67 @@ +variable "external_id" { + type = string + description = "Unique identifier provided by CrowdStrike for secure cross-account access" +} + +variable "intermediate_role_arn" { + type = string + description = "ARN of CrowdStrike's intermediate role" +} + +variable "falcon_client_id" { + type = string + sensitive = true + description = "Falcon API Client ID" +} + +variable "falcon_client_secret" { + type = string + sensitive = true + description = "Falcon API Client Secret" +} + +variable "permissions_boundary" { + type = string + default = "" + description = "The name of the policy used to set the permissions boundary for IAM roles" +} + +variable "resource_prefix" { + description = "The prefix to be added to all resource names" + default = "" + type = string +} + +variable "resource_suffix" { + description = "The suffix to be added to all resource names" + default = "" + type = string +} + +variable "tags" { + description = "A map of tags to add to all resources that support tagging" + type = map(string) + default = {} +} + +variable "account_type" { + type = string + default = "commercial" + description = "Account type can be either 'commercial' or 'gov'" + validation { + condition = var.account_type == "commercial" || var.account_type == "gov" + error_message = "must be either 'commercial' or 'gov'" + } +} + +variable "is_gov" { + type = bool + default = false + description = "Set to true if deploying in a gov Falcon environment (eagle, merlin)" +} + +variable "cs_address" { + type = string + default = "" + description = "CrowdStrike Falcon address for the Lambda to authenticate against (e.g. az.laggar.gcw.crowdstrike.com:443)" +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/versions.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/versions.tf new file mode 100644 index 0000000..5c472aa --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/modules/sensor-management/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.5.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.0.0" + } + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/outputs.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/outputs.tf new file mode 100644 index 0000000..98f9c3d --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/outputs.tf @@ -0,0 +1,9 @@ +output "integration_role_unique_id" { + description = "The unique ID of the DSPM integration role" + value = try(module.agentless_scanning_roles[0].integration_role_unique_id, "") +} + +output "scanner_role_unique_id" { + description = "The unique ID of the DSPM scanner role" + value = try(module.agentless_scanning_roles[0].scanner_role_unique_id, "") +} \ No newline at end of file diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/variables.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/variables.tf new file mode 100644 index 0000000..1b370b8 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/variables.tf @@ -0,0 +1,479 @@ +variable "falcon_client_id" { + type = string + sensitive = true + description = "Falcon API Client ID" +} + +variable "falcon_client_secret" { + type = string + sensitive = true + description = "Falcon API Client Secret" +} + +variable "is_gov" { + type = bool + default = false + description = "Set to true if you are deploying in gov Falcon" +} + +variable "cs_address" { + type = string + default = "" + description = "CrowdStrike Falcon address for sensor management Lambda (e.g. az.laggar.gcw.crowdstrike.com:443). Required when is_gov = true." +} + +variable "primary_region" { + description = "Region for deploying global AWS resources (IAM roles, policies, etc.) that are account-wide and only need to be created once. Distinct from agentless_scanning_regions which controls region-specific resource deployment." + type = string +} + +variable "account_id" { + type = string + default = "" + description = "The AWS 12 digit account ID" + validation { + condition = length(var.account_id) == 0 || can(regex("^[0-9]{12}$", var.account_id)) + error_message = "account_id must be either empty or the 12-digit AWS account ID" + } +} + +variable "organization_id" { + type = string + default = "" + description = "The AWS Organization ID. Leave blank if when onboarding single account" +} + +variable "account_type" { + type = string + default = "commercial" + description = "Account type can be either 'commercial' or 'gov'" + validation { + condition = var.account_type == "commercial" || var.account_type == "gov" + error_message = "must be either 'commercial' or 'gov'" + } +} + +variable "permissions_boundary" { + type = string + default = "" + description = "The name of the policy used to set the permissions boundary for IAM roles" +} + +variable "enable_sensor_management" { + type = bool + description = "Set to true to install 1Click Sensor Management resources" +} + +variable "enable_realtime_visibility" { + type = bool + default = false + description = "Set to true to install realtime visibility resources" +} + +variable "use_existing_cloudtrail" { + type = bool + default = true + description = "DEPRECATED: This variable is no longer used. CrowdStrike no longer provisions CloudTrail resources. All deployments now behave as if use_existing_cloudtrail=true." +} + +check "use_existing_cloudtrail_deprecation" { + assert { + condition = var.use_existing_cloudtrail == true + error_message = "DEPRECATION WARNING: 'use_existing_cloudtrail' is deprecated and must remain true. CrowdStrike no longer provisions CloudTrail resources." + } +} + +variable "create_rtvd_rules" { + type = bool + default = true + description = "Set to false if you don't want to enable monitoring in this region" +} + +variable "eventbridge_role_name" { + type = string + default = "CrowdStrikeCSPMEventBridge" + description = "The eventbridge role name" +} + +variable "enable_idp" { + type = bool + default = false + description = "Set to true to install Identity Protection resources" +} + +variable "external_id" { + type = string + default = "" + description = "The external ID used to assume the AWS reader role" +} + +variable "intermediate_role_arn" { + type = string + default = "" + description = "The intermediate role that is allowed to assume the reader role" +} + +variable "iam_role_name" { + type = string + default = "" + description = "The name of the reader role" +} + +variable "use_existing_iam_reader_role" { + type = bool + default = false + description = "Set to true if you want to use an existing IAM role for asset inventory" +} + +variable "eventbus_arn" { + type = string + default = "" + description = "Eventbus ARN to send events to" +} + +variable "cloudtrail_bucket_name" { + type = string + default = "" + description = "DEPRECATED: This variable is no longer used. CrowdStrike no longer provisions or references a CloudTrail S3 bucket." +} + +check "cloudtrail_bucket_name_deprecation" { + assert { + condition = var.cloudtrail_bucket_name == "" + error_message = "DEPRECATION WARNING: 'cloudtrail_bucket_name' is deprecated. CrowdStrike no longer provisions or references a CloudTrail S3 bucket." + } +} + +variable "enable_dspm" { + type = bool + default = false + description = "Set to true to enable Data Security Posture Managment" +} + +variable "enable_vulnerability_scanning" { + type = bool + default = false + description = "Set to true to enable Vulnerability Scanning" +} + +variable "dspm_role_name" { + description = "DEPRECATED: Use agentless_scanning_role_name instead. The unique name of the IAM role that DSPM will be assuming" + type = string + default = "" +} + +check "dspm_role_name_deprecation" { + assert { + condition = var.dspm_role_name == "" + error_message = "DEPRECATION WARNING: 'dspm_role_name' is deprecated. Please use 'agentless_scanning_role_name' instead." + } +} + +variable "dspm_scanner_role_name" { + description = "DEPRECATED: Use agentless_scanning_scanner_role_name instead. The unique name of the IAM role that CrowdStrike Scanner will be assuming" + type = string + default = "" +} + +check "dspm_scanner_role_name_deprecation" { + assert { + condition = var.dspm_scanner_role_name == "" + error_message = "DEPRECATION WARNING: 'dspm_scanner_role_name' is deprecated. Please use 'agentless_scanning_scanner_role_name' instead." + } +} + +variable "dspm_regions" { + description = "DEPRECATED: Use agentless_scanning_regions instead. List of regions where DSPM scanning will be deployed" + type = list(string) + default = [] + + validation { + condition = length(var.dspm_regions) == 0 || alltrue([ + for region in var.dspm_regions : + (can(regex("^(?:us|eu|ap|sa|ca|af|me|il)-(?:north|south|east|west|central|northeast|southeast|southwest|northwest)-[1-4]$", region)) || + can(regex("^us-gov-(?:east|west)-1$", region))) + ]) + error_message = "Each element in the dspm_regions list must be a valid AWS region (e.g., 'us-east-1', 'eu-west-2', 'us-gov-east-1', 'us-gov-west-1') that is supported by DSPM." + } +} + +check "dspm_regions_deprecation" { + assert { + condition = length(var.dspm_regions) == 0 + error_message = "DEPRECATION WARNING: 'dspm_regions' is deprecated. Please use 'agentless_scanning_regions' instead." + } +} + + +variable "dspm_create_nat_gateway" { + description = "DEPRECATED: Use agentless_scanning_create_nat_gateway instead. Set to true to create a NAT Gateway for DSPM scanning environments" + type = bool + default = true +} + +check "dspm_create_nat_gateway_deprecation" { + assert { + condition = var.dspm_create_nat_gateway == true + error_message = "DEPRECATION WARNING: 'dspm_create_nat_gateway' is deprecated. Please use 'agentless_scanning_create_nat_gateway' instead." + } +} + +variable "dspm_s3_access" { + description = "Apply permissions for DSPM S3 bucket scanning" + type = bool + default = true +} + +variable "dspm_dynamodb_access" { + description = "Apply permissions for DSPM DynamoDB table scanning" + type = bool + default = true +} + +variable "dspm_rds_access" { + description = "Apply permissions for DSPM RDS instance scanning" + type = bool + default = true +} + +variable "dspm_redshift_access" { + description = "Apply permissions for DSPM Redshift cluster scanning" + type = bool + default = true +} + +variable "dspm_ebs_access" { + description = "Apply permissions for DSPM VM scanning" + type = bool + default = true +} + +variable "dspm_integration_role_unique_id" { + description = "DEPRECATED: Use agentless_scanning_integration_role_unique_id instead. The unique ID of the DSPM integration role" + default = "" + type = string +} + +check "dspm_integration_role_unique_id_deprecation" { + assert { + condition = var.dspm_integration_role_unique_id == "" + error_message = "DEPRECATION WARNING: 'dspm_integration_role_unique_id' is deprecated. Please use 'agentless_scanning_integration_role_unique_id' instead." + } +} + +variable "dspm_scanner_role_unique_id" { + description = "DEPRECATED: Use agentless_scanning_scanner_role_unique_id instead. The unique ID of the DSPM scanner role" + default = "" + type = string +} + +check "dspm_scanner_role_unique_id_deprecation" { + assert { + condition = var.dspm_scanner_role_unique_id == "" + error_message = "DEPRECATION WARNING: 'dspm_scanner_role_unique_id' is deprecated. Please use 'agentless_scanning_scanner_role_unique_id' instead." + } +} + +variable "resource_prefix" { + description = "The prefix to be added to all resource names" + default = "CrowdStrike" + type = string +} + +variable "resource_suffix" { + description = "The suffix to be added to all resource names" + default = "" + type = string +} + +variable "tags" { + description = "A map of tags to add to all resources that support tagging" + type = map(string) + default = {} +} + +variable "vpc_cidr_block" { + description = "VPC CIDR block" + type = string + default = "10.0.0.0/16" +} + + +variable "agentless_scanning_use_custom_vpc" { + description = "Use existing custom VPC resources for ALL deployment regions (requires agentless_scanning_custom_vpc_resources_map with all regions)" + type = bool + default = false +} + +variable "agentless_scanning_custom_vpc_resources_map" { + description = <<-EOT + Map of regions to custom VPC resources for Agentless Scanning deployment. + Each region can specify existing VPC resources to use instead of creating new ones. + + Example: + { + "us-east-1" = { + vpc = "vpc-0123456789abcdef0" + scanner_subnet = "subnet-0123456789abcdef0" + scanner_sg = "sg-0123456789abcdef0" + db_subnet_a = "subnet-1123456789abcdef0" + db_subnet_b = "subnet-2123456789abcdef0" + db_sg = "sg-1123456789abcdef0" + } + } + + All resource IDs must exist in the specified region. + EOT + + type = map(object({ + vpc = string + scanner_subnet = string + scanner_sg = string + db_subnet_a = string + db_subnet_b = string + db_sg = string + })) + default = {} +} + +variable "agentless_scanning_host_account_id" { + type = string + default = "" + description = "The AWS account ID where agentless scanning host resources are deployed" + + validation { + condition = var.agentless_scanning_host_account_id == "" || can(regex("^\\d{12}$", var.agentless_scanning_host_account_id)) + error_message = "Agentless scanning host account ID must be empty or 12 digits." + } +} + +variable "agentless_scanning_host_role_name" { + type = string + default = "CrowdStrikeAgentlessScanningIntegrationRole" + description = "Name of agentless scanning integration role in host account" + + validation { + condition = can(regex("^$|^[a-zA-Z0-9+=,.@_-]{1,64}$", var.agentless_scanning_host_role_name)) + error_message = "Role name must be empty or use only alphanumeric and '+=,.@-_' characters, maximum 64 characters." + } +} + +variable "agentless_scanning_host_scanner_role_name" { + type = string + default = "CrowdStrikeAgentlessScanningScannerRole" + description = "Name of agentless scanning scanner role in host account" + + validation { + condition = can(regex("^$|^[a-zA-Z0-9+=,.@_-]{1,64}$", var.agentless_scanning_host_scanner_role_name)) + error_message = "Role name must be empty or use only alphanumeric and '+=,.@-_' characters, maximum 64 characters." + } +} + +# S3 Log Ingestion Variables +variable "log_ingestion_method" { + type = string + default = "eventbridge" + description = "Choose the method for ingesting CloudTrail logs - eventbridge (default) or s3. If s3 is selected, be sure to deploy to the region associated with the SNS topic connected to your CloudTrail instance." + validation { + condition = contains(["eventbridge", "s3"], var.log_ingestion_method) + error_message = "log_ingestion_method must be either 'eventbridge' or 's3'" + } +} + +variable "log_ingestion_s3_bucket_name" { + type = string + default = "" + description = "S3 bucket name containing CloudTrail logs (required when log_ingestion_method=s3)" +} + +variable "log_ingestion_sns_topic_arn" { + type = string + default = "" + description = "SNS topic ARN that publishes S3 object creation events (required when log_ingestion_method=s3)" +} + +variable "log_ingestion_s3_bucket_prefix" { + type = string + default = "" + description = "Optional S3 bucket prefix/path for CloudTrail logs (when log_ingestion_method=s3)" +} + +variable "log_ingestion_kms_key_arn" { + type = string + default = "" + description = "Optional KMS key ARN for decrypting S3 objects (when log_ingestion_method=s3)" +} + +variable "agentless_scanning_role_name" { + description = "The unique name of the IAM role that Agentless scanning will be assuming" + type = string + default = "CrowdStrikeAgentlessScanningIntegrationRole" +} + +variable "agentless_scanning_scanner_role_name" { + description = "The unique name of the IAM role that Agentless scanning scanner will be assuming" + type = string + default = "CrowdStrikeAgentlessScanningScannerRole" +} + +variable "agentless_scanning_regions" { + description = "List of regions where agentless scanning will be deployed" + type = list(string) + default = ["us-east-1"] + + validation { + condition = length(var.agentless_scanning_regions) > 0 + error_message = "At least one agentless scanning region must be specified." + } + + validation { + condition = alltrue([ + for region in var.agentless_scanning_regions : + (can(regex("^(?:us|eu|ap|sa|ca|af|me|il)-(?:north|south|east|west|central|northeast|southeast|southwest|northwest)-[1-4]$", region)) || + can(regex("^us-gov-(?:east|west)-1$", region))) + ]) + error_message = "Each element in the agentless_scanning_regions list must be a valid AWS region (e.g., 'us-east-1', 'eu-west-2', 'us-gov-east-1', 'us-gov-west-1')." + } +} + +variable "agentless_scanning_create_nat_gateway" { + description = "Set to true to create a NAT Gateway for agentless scanning environments" + type = bool + default = true +} + +variable "agentless_scanning_scanner_role_unique_id" { + description = "The unique ID of the Agentless scanning scanner role" + type = string + default = "" +} + + +variable "agentless_scanning_integration_role_unique_id" { + description = "The unique ID of the Agentless scanning integration role" + type = string + default = "" +} + +variable "region" { + description = "The region this module instance deploys into. Set this explicitly when the module is called with depends_on, or in any topology where Terraform defers data source reads to apply time - otherwise the count expressions gated on region cannot be resolved at plan time. When null, the region is read from data.aws_region.current." + type = string + default = null +} + +variable "is_primary_region" { + description = "Explicit override for primary-region detection. Prefer setting 'region' instead, which lets the module derive this. Provided for callers that want to gate global resources directly. When null, derived by comparing the region against primary_region." + type = bool + default = null +} + +variable "current_account_id" { + description = "The AWS 12 digit account ID this module instance is deploying into. Distinct from 'account_id', which selects the Falcon registration to look up and is intentionally empty for organization registrations. Set this when the module is called with depends_on, or in any topology where Terraform defers data source reads to apply time - otherwise the count expressions gated on the account ID cannot be resolved at plan time. When null, falls back to 'account_id' and then to data.aws_caller_identity.current." + type = string + default = null + + validation { + condition = var.current_account_id == null || can(regex("^[0-9]{12}$", var.current_account_id)) + error_message = "current_account_id must be either null or the 12-digit AWS account ID" + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/version.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/version.tf new file mode 100644 index 0000000..bf456f1 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/input/version.tf @@ -0,0 +1,13 @@ +terraform { + required_version = ">= 1.5.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.0.0" + } + crowdstrike = { + source = "CrowdStrike/crowdstrike" + version = ">= 0.0.58" + } + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/LICENSE b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/LICENSE new file mode 100644 index 0000000..4f45e80 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 CrowdStrike + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/fixture.json b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/fixture.json new file mode 100644 index 0000000..f9e55c8 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/fixture.json @@ -0,0 +1,36 @@ +{ + "schema": 1, + "id": "registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/CrowdStrike/cloud-registration/aws/0.7.13", + "ref": "0.7.13", + "path": "modules/agentless-scanning-environments", + "archiveSha256": "9c33a02d03ae3fab7a6108b528c724ad9af5512fec975753745466bc1cd0419a", + "inputSha256": "79014811df2221636e54eaa156cb2529e7de2b2cd1469ab53e46300ab90b5cd1" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "depends_on", + "functions", + "interpolation", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/kms.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/kms.tf new file mode 100644 index 0000000..626825e --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/kms.tf @@ -0,0 +1,227 @@ +# Policy document for host account +data "aws_iam_policy_document" "policy_kms_key_host" { + #checkov:skip=CKV_AWS_356:Root user requires unrestricted KMS access according to AWS documentation https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html + #checkov:skip=CKV_AWS_109,CKV_AWS_111:DSPM roles require permissions to write and modify KMS resources + statement { + sid = "Enable IAM User Permissions" + effect = "Allow" + principals { + type = "AWS" + identifiers = [join("", ["arn:${local.aws_partition}:iam::", local.account_id, ":root"])] + } + actions = [ + "kms:*" + ] + resources = ["*"] + } + statement { + sid = "Allow administration of the key" + effect = "Allow" + principals { + type = "AWS" + identifiers = ["*"] + } + actions = [ + "kms:Create*", + "kms:Describe*", + "kms:Enable*", + "kms:List*", + "kms:Put*", + "kms:Update*", + "kms:Revoke*", + "kms:Disable*", + "kms:Get*", + "kms:Delete*", + "kms:ScheduleKeyDeletion", + "kms:CancelKeyDeletion" + ] + resources = ["*"] + condition { + test = "StringEquals" + variable = "aws:userId" + values = [ + var.integration_role_unique_id, + "${var.integration_role_unique_id}:*", + ] + } + } + statement { + sid = "Allow use of the key" + effect = "Allow" + principals { + type = "AWS" + identifiers = ["*"] + } + actions = [ + "kms:DescribeKey", + "kms:Encrypt", + "kms:Decrypt", + "kms:ReEncrypt*", + "kms:GenerateDataKey", + "kms:GenerateDataKeyWithoutPlaintext" + ] + resources = ["*"] + condition { + test = "StringLike" + variable = "aws:userId" + values = [ + var.integration_role_unique_id, + "${var.integration_role_unique_id}:*", + var.scanner_role_unique_id, + "${var.scanner_role_unique_id}:*" + ] + } + } +} + +# Policy document for target account +data "aws_iam_policy_document" "policy_kms_key_target" { + #checkov:skip=CKV_AWS_356:Root user requires unrestricted KMS access according to AWS documentation https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html + #checkov:skip=CKV_AWS_109,CKV_AWS_111:DSPM roles require permissions to write and modify KMS resources + statement { + sid = "Enable IAM User Permissions" + effect = "Allow" + principals { + type = "AWS" + identifiers = [join("", ["arn:${local.aws_partition}:iam::", local.account_id, ":root"])] + } + actions = [ + "kms:*" + ] + resources = ["*"] + } + + statement { + sid = "Allow administration of the key" + effect = "Allow" + principals { + type = "AWS" + identifiers = ["*"] + } + actions = [ + "kms:Create*", + "kms:Describe*", + "kms:Enable*", + "kms:List*", + "kms:Put*", + "kms:Update*", + "kms:Revoke*", + "kms:Disable*", + "kms:Get*", + "kms:Delete*", + "kms:ScheduleKeyDeletion", + "kms:CancelKeyDeletion" + ] + resources = ["*"] + condition { + test = "StringEquals" + variable = "aws:userId" + values = [ + var.integration_role_unique_id, + "${var.integration_role_unique_id}:*", + ] + } + } + + statement { + sid = "Allow use of the key to this account" + effect = "Allow" + principals { + type = "AWS" + identifiers = ["*"] + } + actions = [ + "kms:DescribeKey", + "kms:Encrypt", + "kms:Decrypt", + "kms:ReEncrypt*", + "kms:GenerateDataKey", + "kms:GenerateDataKeyWithoutPlaintext" + ] + resources = ["*"] + condition { + test = "StringLike" + variable = "aws:userId" + values = [ + var.integration_role_unique_id, + "${var.integration_role_unique_id}:*", + var.scanner_role_unique_id, + "${var.scanner_role_unique_id}:*" + ] + } + } + + statement { + sid = "Allow use of the key from host account" + effect = "Allow" + principals { + type = "AWS" + identifiers = [ + "arn:${local.aws_partition}:iam::${var.agentless_scanning_host_account_id}:root" + ] + } + actions = [ + "kms:DescribeKey", + "kms:Encrypt", + "kms:Decrypt", + "kms:ReEncrypt*", + "kms:GenerateDataKey", + "kms:GenerateDataKeyWithoutPlaintext" + ] + resources = ["*"] + condition { + test = "StringEquals" + variable = "aws:PrincipalArn" + values = ["arn:${local.aws_partition}:iam::${var.agentless_scanning_host_account_id}:role/${var.agentless_scanning_host_role_name}"] + } + } + + statement { + sid = "Allow attachment of persistent resources" + effect = "Allow" + principals { + type = "AWS" + identifiers = [ + "arn:${local.aws_partition}:iam::${var.agentless_scanning_host_account_id}:root" + ] + } + actions = [ + "kms:CreateGrant", + "kms:ListGrants", + "kms:RevokeGrant" + ] + resources = ["*"] + condition { + test = "StringEquals" + variable = "aws:PrincipalArn" + values = ["arn:${local.aws_partition}:iam::${var.agentless_scanning_host_account_id}:role/${var.agentless_scanning_host_role_name}"] + } + condition { + test = "Bool" + variable = "kms:GrantIsForAWSResource" + values = ["true"] + } + } +} + +resource "aws_kms_key" "crowdstrike_kms_key" { + description = "CrowdStrike Agentless Scanning KMS Key" + enable_key_rotation = true + deletion_window_in_days = 20 + customer_master_key_spec = "SYMMETRIC_DEFAULT" + key_usage = "ENCRYPT_DECRYPT" + policy = local.is_host_account ? data.aws_iam_policy_document.policy_kms_key_host.json : data.aws_iam_policy_document.policy_kms_key_target.json + + tags = merge( + var.tags, + { + (local.logical_tag_key) = local.logical_kms_key + (local.crowdstrike_tag_key) = (local.crowdstrike_tag_value) + } + ) +} + +resource "aws_kms_alias" "crowdstrike_key_alias" { + name = "alias/CrowdStrikeAgentlessScanningKey" + target_key_id = aws_kms_key.crowdstrike_kms_key.arn +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/locals.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/locals.tf new file mode 100644 index 0000000..8ef6f0e --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/locals.tf @@ -0,0 +1,21 @@ +locals { + crowdstrike_tag_key = "ProvisionedBy" + crowdstrike_tag_value = "CrowdStrike" + logical_tag_key = "CrowdStrikeLogicalId" + + logical_subnet_group = "DBSubnetGroup" + logical_redshift_subnet_group = "RedshiftSubnetGroup" + logical_private_subnet = "PrivateSubnet" + logical_elastic_ip = "ElasticIP" + logical_ec2_security_group = "EC2SecurityGroup" + logical_db_security_group = "DBSecurityGroup" + logical_kms_key = "KMSKey" + aws_region = data.aws_region.current.id + account_id = data.aws_caller_identity.current.account_id + aws_partition = data.aws_partition.current.partition + + # Condition to determine if this is the host account + is_host_account = var.agentless_scanning_host_account_id == var.account_id || var.agentless_scanning_host_account_id == "" + # Condition to determine whether scanning infrastructure should be created in this account + create_scanning_infrastructure = local.is_host_account && !var.use_custom_vpc +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/main.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/main.tf new file mode 100644 index 0000000..1f3a9ee --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/main.tf @@ -0,0 +1,555 @@ +data "aws_region" "current" {} +data "aws_caller_identity" "current" {} +data "aws_partition" "current" {} + +data "aws_availability_zones" "available" { + state = "available" +} + +# Data sources for custom VPC DB subnets (needed for subnet groups) +data "aws_subnet" "custom_db_subnet_a" { + count = var.use_custom_vpc ? 1 : 0 + id = var.region_vpc_config.db_subnet_a +} + +data "aws_subnet" "custom_db_subnet_b" { + count = var.use_custom_vpc ? 1 : 0 + id = var.region_vpc_config.db_subnet_b +} + +# Create new VPC resources only when create scanning infrastructure is true +resource "aws_vpc" "vpc" { + count = local.create_scanning_infrastructure ? 1 : 0 + cidr_block = var.vpc_cidr_block + enable_dns_support = true + enable_dns_hostnames = true + + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-VPC" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_internet_gateway" "internet_gateway" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-Gateway" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) + + depends_on = [aws_vpc.vpc[0]] +} + +resource "aws_subnet" "db_subnet_a" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + cidr_block = cidrsubnet(var.vpc_cidr_block, 8, 0) + availability_zone = data.aws_availability_zones.available.names[0] + + lifecycle { + ignore_changes = [availability_zone] + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-DB-A" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_subnet" "db_subnet_b" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + cidr_block = cidrsubnet(var.vpc_cidr_block, 8, 1) + availability_zone = data.aws_availability_zones.available.names[1] + + lifecycle { + ignore_changes = [availability_zone] + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-DB-B" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_db_subnet_group" "db_subnet_group" { + count = local.is_host_account ? 1 : 0 + name = "${var.deployment_name}-db-subnet-group-${var.use_custom_vpc ? var.region_vpc_config.vpc : aws_vpc.vpc[0].id}" + description = "CrowdStrike Security DB subnet group" + subnet_ids = var.use_custom_vpc ? [ + data.aws_subnet.custom_db_subnet_a[0].id, + data.aws_subnet.custom_db_subnet_b[0].id + ] : [ + aws_subnet.db_subnet_a[0].id, + aws_subnet.db_subnet_b[0].id + ] + + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-DBSubnetGroup" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = local.logical_subnet_group + } + ) +} + +resource "aws_redshift_subnet_group" "redshift_subnet_group" { + count = local.is_host_account ? 1 : 0 + name = "${var.deployment_name}-redshift-subnet-group-${var.use_custom_vpc ? var.region_vpc_config.vpc : aws_vpc.vpc[0].id}" + description = "CrowdStrike Security Redshift subnet group" + subnet_ids = var.use_custom_vpc ? [ + data.aws_subnet.custom_db_subnet_a[0].id, + data.aws_subnet.custom_db_subnet_b[0].id + ] : [ + aws_subnet.db_subnet_a[0].id, + aws_subnet.db_subnet_b[0].id + ] + + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-RedshiftSubnetGroup" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = local.logical_redshift_subnet_group + } + ) +} + +resource "aws_subnet" "public_subnet" { + count = var.agentless_scanning_create_nat_gateway && local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + cidr_block = cidrsubnet(var.vpc_cidr_block, 8, 2) + availability_zone = data.aws_availability_zones.available.names[0] + + lifecycle { + ignore_changes = [availability_zone] + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-Public" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_subnet" "private_subnet" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + cidr_block = cidrsubnet(var.vpc_cidr_block, 8, 3) + availability_zone = data.aws_availability_zones.available.names[0] + + lifecycle { + ignore_changes = [availability_zone] + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-Private" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = local.logical_private_subnet + } + ) +} + +resource "aws_route_table" "public_route_table" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + + # PublicRoute1 + route { + cidr_block = "0.0.0.0/0" + gateway_id = aws_internet_gateway.internet_gateway[0].id + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-Public" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) + + depends_on = [aws_internet_gateway.internet_gateway] +} + +resource "aws_eip" "elastic_ip_address" { + count = var.agentless_scanning_create_nat_gateway && local.create_scanning_infrastructure ? 1 : 0 + domain = "vpc" + tags = merge( + var.tags, + { + Name = "EIP-${var.deployment_name}" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = local.logical_elastic_ip + } + ) +} + +resource "aws_nat_gateway" "nat_gateway" { + count = var.agentless_scanning_create_nat_gateway && local.create_scanning_infrastructure ? 1 : 0 + allocation_id = aws_eip.elastic_ip_address[0].id + subnet_id = aws_subnet.public_subnet[0].id + + tags = merge( + var.tags, + { + Name = "NAT-${var.deployment_name}" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + + +resource "aws_route_table" "private_route_table" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + + # PrivateRoute - conditionally use NAT Gateway or Internet Gateway + route { + cidr_block = "0.0.0.0/0" + nat_gateway_id = var.agentless_scanning_create_nat_gateway ? aws_nat_gateway.nat_gateway[0].id : null + gateway_id = var.agentless_scanning_create_nat_gateway ? null : aws_internet_gateway.internet_gateway[0].id + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-Private" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_route_table_association" "public_subnet_route_table_association" { + count = var.agentless_scanning_create_nat_gateway && local.create_scanning_infrastructure ? 1 : 0 + subnet_id = aws_subnet.public_subnet[0].id + route_table_id = aws_route_table.public_route_table[0].id +} + +resource "aws_route_table_association" "private_subnet_route_table_association" { + count = local.create_scanning_infrastructure ? 1 : 0 + subnet_id = aws_subnet.private_subnet[0].id + route_table_id = aws_route_table.private_route_table[0].id +} + +resource "aws_network_acl" "network_acl" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-NACL" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_network_acl_rule" "inbound_a" { + count = local.create_scanning_infrastructure ? 1 : 0 + network_acl_id = aws_network_acl.network_acl[0].id + rule_number = 100 + protocol = "-1" + rule_action = "allow" + egress = false + cidr_block = "0.0.0.0/1" +} + +resource "aws_network_acl_rule" "inbound_b" { + count = local.create_scanning_infrastructure ? 1 : 0 + network_acl_id = aws_network_acl.network_acl[0].id + rule_number = 110 + protocol = "-1" + rule_action = "allow" + egress = false + cidr_block = "128.0.0.0/1" +} + +resource "aws_network_acl_rule" "outbound" { + count = local.create_scanning_infrastructure ? 1 : 0 + network_acl_id = aws_network_acl.network_acl[0].id + rule_number = 100 + protocol = "-1" + rule_action = "allow" + egress = true + cidr_block = "0.0.0.0/0" +} + +resource "aws_network_acl_association" "public_subnet_nacl_association" { + count = var.agentless_scanning_create_nat_gateway && local.create_scanning_infrastructure ? 1 : 0 + subnet_id = aws_subnet.public_subnet[0].id + network_acl_id = aws_network_acl.network_acl[0].id +} + +resource "aws_network_acl_association" "private_subnet_nacl_association" { + count = local.create_scanning_infrastructure ? 1 : 0 + subnet_id = aws_subnet.private_subnet[0].id + network_acl_id = aws_network_acl.network_acl[0].id +} + +resource "aws_network_acl_association" "db_subnet_a_nacl_association" { + count = local.create_scanning_infrastructure ? 1 : 0 + subnet_id = aws_subnet.db_subnet_a[0].id + network_acl_id = aws_network_acl.network_acl[0].id +} + +resource "aws_network_acl_association" "db_subnet_b_nacl_association" { + count = local.create_scanning_infrastructure ? 1 : 0 + subnet_id = aws_subnet.db_subnet_b[0].id + network_acl_id = aws_network_acl.network_acl[0].id +} + +resource "aws_security_group" "ec2_security_group" { + #checkov:skip=CKV_AWS_382:Data scanner must be allowed to access undetermined ports to support scanning new services + count = local.create_scanning_infrastructure ? 1 : 0 + name = "EC2SecurityGroup" + description = "Security group attached to CrowdStrike provisioned EC2 instances for running data scanners" + vpc_id = aws_vpc.vpc[0].id + + # General outbound traffic + egress { + description = "Security group attached to EC2" + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = ["0.0.0.0/0"] + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-EC2" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = local.logical_ec2_security_group + } + ) +} + +resource "aws_security_group" "db_security_group" { + count = local.create_scanning_infrastructure ? 1 : 0 + name = "DBSecurityGroup" + description = "Security group attached to RDS instance to allow EC2 instances with specific security groups attached to connect to the database" + vpc_id = aws_vpc.vpc[0].id + + # postgres + ingress { + description = "access for postgres port" + from_port = 5432 + to_port = 5432 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # mysql + ingress { + description = "access for mysql port" + from_port = 3306 + to_port = 3306 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # oracle + ingress { + description = "access for oracle db port" + from_port = 1521 + to_port = 1523 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # sql server + ingress { + description = "access for sql server port" + from_port = 1433 + to_port = 1433 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # mongo + ingress { + description = "access for mongodb port" + from_port = 27017 + to_port = 27017 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # redis + ingress { + description = "access for redis port" + from_port = 6379 + to_port = 6379 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # cassandra + ingress { + description = "access for cassandra port" + from_port = 9042 + to_port = 9042 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # open search + ingress { + description = "access for open search port" + from_port = 9200 + to_port = 9200 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + # redshift + ingress { + description = "access for redshift port" + from_port = 5439 + to_port = 5439 + protocol = "tcp" + security_groups = [aws_security_group.ec2_security_group[0].id] + } + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-DB" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = local.logical_db_security_group + } + ) +} + +resource "aws_vpc_endpoint" "s3_endpoint" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + service_name = "com.amazonaws.${local.aws_region}.s3" + vpc_endpoint_type = "Gateway" + route_table_ids = [aws_route_table.private_route_table[0].id] + + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Principal = "*" + Action = [ + "s3:Get*", + "s3:List*" + ] + Resource = "*" + Condition = { + ArnEquals = { + "aws:SourceVpcArn" = aws_vpc.vpc[0].arn + } + } + } + ] + }) + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-S3-Endpoint" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = "S3Endpoint" + } + ) +} + +resource "aws_vpc_endpoint" "dynamodb_endpoint" { + count = local.create_scanning_infrastructure ? 1 : 0 + vpc_id = aws_vpc.vpc[0].id + service_name = "com.amazonaws.${local.aws_region}.dynamodb" + vpc_endpoint_type = "Gateway" + route_table_ids = [aws_route_table.private_route_table[0].id] + + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Principal = "*" + Action = [ + "dynamodb:BatchGet*", + "dynamodb:Describe*", + "dynamodb:List*", + "dynamodb:Get*", + "dynamodb:Query", + "dynamodb:Scan", + "dynamodb:PartiQLSelect" + ] + Resource = "*" + Condition = { + ArnEquals = { + "aws:SourceVpcArn" = aws_vpc.vpc[0].arn + } + } + } + ] + }) + + tags = merge( + var.tags, + { + Name = "${var.deployment_name}-DynamoDB-Endpoint" + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = "DynamoDBEndpoint" + } + ) +} + +# Regional SSM parameter containing environment configuration +resource "aws_ssm_parameter" "scan_environment_parameter" { + name = "/CrowdStrike/AgentlessScanning/Environment" + type = "String" + tier = "Intelligent-Tiering" + value = jsonencode(merge( + { + KMSKey = aws_kms_key.crowdstrike_kms_key.arn + }, + local.is_host_account ? { + DBSubnetA = var.use_custom_vpc ? var.region_vpc_config.db_subnet_a : aws_subnet.db_subnet_a[0].id + DBSubnetB = var.use_custom_vpc ? var.region_vpc_config.db_subnet_b : aws_subnet.db_subnet_b[0].id + VpcId = var.use_custom_vpc ? var.region_vpc_config.vpc : aws_vpc.vpc[0].id + CreateVPC = var.use_custom_vpc ? "false" : "true" + CreateNatGW = var.agentless_scanning_create_nat_gateway ? "true" : "false" + PrivateSubnet = var.use_custom_vpc ? var.region_vpc_config.scanner_subnet : aws_subnet.private_subnet[0].id + ScannerSecurityGroup = var.use_custom_vpc ? var.region_vpc_config.scanner_sg : aws_security_group.ec2_security_group[0].id + DBSubnetGroup = aws_db_subnet_group.db_subnet_group[0].name + DBSecurityGroup = var.use_custom_vpc ? var.region_vpc_config.db_sg : aws_security_group.db_security_group[0].id + RedshiftSubnetGroup = aws_redshift_subnet_group.redshift_subnet_group[0].name + } : {} + )) + description = "Environment configuration for CrowdStrike Scanning" + tags = merge( + var.tags, + { + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = "ScanEnvironmentParameter" + } + ) +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/outputs.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/outputs.tf new file mode 100644 index 0000000..6ecf365 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/outputs.tf @@ -0,0 +1,4 @@ +output "crowdstrike_kms_key" { + description = "The arn of the KMS key that agentless scanning will use" + value = aws_kms_key.crowdstrike_kms_key.arn +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/variables.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/variables.tf new file mode 100644 index 0000000..b0924de --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/variables.tf @@ -0,0 +1,96 @@ +variable "deployment_name" { + description = "The deployment name will be used in environment installation" + type = string + default = "dspm-environment" +} + +variable "integration_role_unique_id" { + description = "The unique ID of the agentless scanning integration role" + type = string +} + +variable "scanner_role_unique_id" { + description = "The unique ID of the agentless scanning scanner role" + type = string +} + +variable "use_custom_vpc" { + description = "Whether to use existing custom VPC resources instead of creating new ones. When true, region_vpc_config must be provided." + type = bool + default = false +} + +variable "region_vpc_config" { + description = "VPC configuration for the current region" + type = object({ + vpc = string + scanner_subnet = string + scanner_sg = string + db_subnet_a = string + db_subnet_b = string + db_sg = string + }) + default = null + + validation { + condition = var.region_vpc_config == null || ( + can(regex("^vpc-[a-f0-9]{8}(?:[a-f0-9]{9})?$", var.region_vpc_config.vpc)) && + can(regex("^subnet-[a-f0-9]{8}(?:[a-f0-9]{9})?$", var.region_vpc_config.scanner_subnet)) && + can(regex("^sg-[a-f0-9]{8}(?:[a-f0-9]{9})?$", var.region_vpc_config.scanner_sg)) && + can(regex("^subnet-[a-f0-9]{8}(?:[a-f0-9]{9})?$", var.region_vpc_config.db_subnet_a)) && + can(regex("^subnet-[a-f0-9]{8}(?:[a-f0-9]{9})?$", var.region_vpc_config.db_subnet_b)) && + can(regex("^sg-[a-f0-9]{8}(?:[a-f0-9]{9})?$", var.region_vpc_config.db_sg)) + ) + error_message = "All AWS resource IDs must be valid format: VPC IDs must start with 'vpc-', subnet IDs must start with 'subnet-', and security group IDs must start with 'sg-', followed by 8 or 17 hexadecimal characters." + } +} + +variable "agentless_scanning_create_nat_gateway" { + description = "Set to true to create a NAT Gateway for agentless scanning environments" + type = bool + default = true +} + +variable "tags" { + description = "A map of tags to add to all resources that support tagging" + type = map(string) + default = {} +} + +variable "vpc_cidr_block" { + description = "VPC CIDR block" + type = string + default = "10.0.0.0/16" +} + +variable "agentless_scanning_host_account_id" { + type = string + default = "" + description = "The AWS account ID where agentless scanning host resources are deployed" + + validation { + condition = var.agentless_scanning_host_account_id == "" || can(regex("^\\d{12}$", var.agentless_scanning_host_account_id)) + error_message = "Agentless scanning host account ID must be empty or 12 digits." + } +} + +variable "agentless_scanning_host_role_name" { + type = string + default = "CrowdStrikeAgentlessScanningIntegrationRole" + description = "Name of agentless scanning integration role in host account" + + validation { + condition = can(regex("^$|^[a-zA-Z0-9+=,.@_-]{1,64}$", var.agentless_scanning_host_role_name)) + error_message = "Role name must be empty or use only alphanumeric and '+=,.@-_' characters, maximum 64 characters." + } +} + +variable "account_id" { + type = string + default = "" + description = "The AWS 12 digit account ID" + validation { + condition = length(var.account_id) == 0 || can(regex("^[0-9]{12}$", var.account_id)) + error_message = "account_id must be either empty or the 12-digit AWS account ID" + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/versions.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/versions.tf new file mode 100644 index 0000000..5c472aa --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-environments/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.5.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.0.0" + } + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/LICENSE b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/LICENSE new file mode 100644 index 0000000..4f45e80 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 CrowdStrike + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/fixture.json b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/fixture.json new file mode 100644 index 0000000..aa63ffd --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/CrowdStrike/cloud-registration/aws/0.7.13", + "ref": "0.7.13", + "path": "modules/agentless-scanning-roles", + "archiveSha256": "9c33a02d03ae3fab7a6108b528c724ad9af5512fec975753745466bc1cd0419a", + "inputSha256": "a1499c3570be3f5290498788ebd19f95c7c2485450752b356a379cbdd07611f7" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "for_expressions", + "functions", + "interpolation", + "locals", + "moved", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/client_secret.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/client_secret.tf new file mode 100644 index 0000000..1e0f96b --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/client_secret.tf @@ -0,0 +1,22 @@ +resource "aws_secretsmanager_secret" "client_secrets" { + #checkov:skip=CKV_AWS_149:The secret is encrypted using an AWS managed key + name = "CrowdStrikeDSPMClientSecret" + + tags = merge( + var.tags, + { + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + (local.logical_tag_key) = "ClientSecrets" + (local.deployment_regions_tag_key) = join("/", var.agentless_scanning_regions) + } + ) + recovery_window_in_days = 0 +} + +resource "aws_secretsmanager_secret_version" "client_secrets_version" { + secret_id = aws_secretsmanager_secret.client_secrets.id + secret_string = jsonencode({ + ClientId = var.falcon_client_id + ClientSecret = var.falcon_client_secret + }) +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/integration_role.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/integration_role.tf new file mode 100644 index 0000000..ed1bd0a --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/integration_role.tf @@ -0,0 +1,924 @@ +data "aws_caller_identity" "current" {} +data "aws_region" "current" {} +data "aws_partition" "current" {} + +data "aws_iam_policy_document" "assume_role" { + statement { + actions = ["sts:AssumeRole"] + + principals { + type = "AWS" + identifiers = [var.intermediate_role_arn] + } + + effect = "Allow" + + condition { + test = "StringEquals" + variable = "sts:ExternalId" + values = [var.external_id] + } + } +} + +resource "aws_iam_role" "crowdstrike_aws_agentless_scanning_integration_role" { + name = var.agentless_scanning_role_name + path = "/" + max_session_duration = 43200 + assume_role_policy = data.aws_iam_policy_document.assume_role.json + permissions_boundary = var.permissions_boundary != "" ? "arn:${local.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/${var.permissions_boundary}" : null + tags = merge( + var.tags, + { + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + RootRegion = data.aws_region.current.id + } + ) +} + +moved { + from = aws_iam_role.crowdstrike_aws_dspm_integration_role + to = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role +} + +resource "aws_iam_role_policy_attachment" "security_audit" { + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.name + policy_arn = "arn:${local.aws_partition}:iam::aws:policy/SecurityAudit" +} + +resource "aws_iam_role_policy" "crowdstrike_cloud_scan_supplemental" { + name = "CrowdStrikeCloudScanSupplemental" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_cloud_scan_supplemental_data.json +} + +data "aws_iam_policy_document" "crowdstrike_cloud_scan_supplemental_data" { + #checkov:skip=CKV_AWS_356:DSPM cloud scanning requires read access to various AWS resources + statement { + sid = "CloudScanSupplemental" + actions = [ + "ses:DescribeActiveReceiptRuleSet", + "athena:GetWorkGroup", + "logs:DescribeLogGroups", + "elastictranscoder:ListPipelines", + "elasticfilesystem:DescribeFileSystems", + "redshift:List*", + "redshift:Describe*", + "redshift:View*", + "redshift-serverless:List*", + "ec2:GetConsoleOutput", + "ec2:Describe*", + "sts:DecodeAuthorizationMessage", + "elb:DescribeLoadBalancers", + "cloudwatch:GetMetricData", + "cloudwatch:GetMetricStatistics", + "cloudwatch:ListMetrics", + "pricing:GetProducts" + ] + effect = "Allow" + resources = ["*"] + } +} + +resource "aws_iam_role_policy" "crowdstrike_run_data_scanner_restricted" { + count = local.is_host_account ? 1 : 0 + name = "RunDataScannerRestricted" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_run_data_scanner_restricted_data[0].json +} + +data "aws_iam_policy_document" "crowdstrike_run_data_scanner_restricted_data" { + count = local.is_host_account ? 1 : 0 + # Grants permission to start, terminate EC2 and attach, detach, delete volume + # on CrowdStrike EC2 instance + #checkov:skip=CKV_AWS_108:Running a DSPM data scanner requires ssm:GetParameters permissions + statement { + sid = "AllowInstanceOperationsWithRestrictions" + actions = [ + "ec2:StartInstances", + "ec2:TerminateInstances", + "ec2:RebootInstances" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:instance/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*" + ] + condition { + test = "StringEquals" + variable = "ec2:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to launch EC2 from public image + # Below resources are generic as they are not known during launch + statement { + sid = "AllowRunDistrosInstances" + actions = [ + "ec2:RunInstances" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*::image/*", + "arn:${local.aws_partition}:ec2:*::snapshot/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:network-interface/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:security-group/*" + ] + } + + # Grants permission to Launch EC2 and create volume for CrowdStrike EC2 instance + # The condition key aws:RequestTag is applicable to below resources + statement { + sid = "AllowRunInstancesWithRestrictions" + actions = [ + "ec2:RunInstances" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:instance/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to Launch EC2 for CrowdStrike EC2 instance + # The condition key ec2:ResourceTag is applicable to below resources + statement { + sid = "AllowRunInstances" + effect = "Allow" + + actions = [ + "ec2:RunInstances" + ] + + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:security-group/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:subnet/*" + ] + + condition { + test = "StringEquals" + variable = "ec2:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to create below resources with only Crowdstrike tag + # On CrowdStrike EC2 instance + statement { + sid = "AllowCreateTagsOnlyLaunching" + actions = [ + "ec2:CreateTags" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:instance/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + condition { + test = "StringEquals" + variable = "ec2:CreateAction" + values = ["RunInstances"] + } + } + + # Grant permissions to attach instance profile for EC2 service created by CrowdStrike. + statement { + sid = "passRoleToEc2Service" + actions = [ + "iam:PassRole" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:role/${var.agentless_scanning_scanner_role_name}" + ] + condition { + test = "StringEquals" + variable = "iam:PassedToService" + values = ["ec2.amazonaws.com"] + } + } + + statement { + sid = "ssmAmiAliasPermissions" + actions = [ + "ssm:GetParameters" + ] + effect = "Allow" + resources = ["arn:${local.aws_partition}:ssm:*:*:parameter/*"] + } +} + +resource "aws_iam_role_policy" "crowdstrike_rds_clone" { + count = (var.dspm_rds_access && var.enable_dspm) ? 1 : 0 + name = "CrowdStrikeRDSClone" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_rds_clone_base[0].json +} + +resource "aws_iam_role_policy" "crowdstrike_rds_clone_host" { + count = (var.dspm_rds_access && var.enable_dspm && local.is_host_account) ? 1 : 0 + name = "CrowdStrikeRDSCloneHost" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_rds_clone_host[0].json +} + +resource "aws_iam_role_policy" "crowdstrike_rds_clone_target" { + count = (var.dspm_rds_access && var.enable_dspm && !local.is_host_account) ? 1 : 0 + name = "CrowdStrikeRDSCloneTarget" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_rds_clone_target[0].json +} + +# Base RDS policy - common permissions for both host and target accounts +data "aws_iam_policy_document" "crowdstrike_rds_clone_base" { + count = local.create_rds_policy ? 1 : 0 + + # Grants permission to restore CMK encrypted instances + statement { + sid = "KMSPermissionsForRDSRestore" + actions = [ + "kms:Encrypt", + "kms:Decrypt", + "kms:ReEncrypt*", + "kms:GenerateDataKey*", + "kms:CreateGrant", + "kms:ListGrants", + "kms:DescribeKey" + ] + effect = "Allow" + resources = ["*"] + condition { + test = "StringLike" + variable = "kms:ViaService" + values = ["rds.*.amazonaws.com"] + } + } + + # Grants permission to create snapshot with a tag mentioned in the condition. + statement { + sid = "RDSLimitedPermissionForSnapshotCreate" + actions = [ + "rds:CreateDBSnapshot", + "rds:CreateDBClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:db:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:crowdstrike-*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:crowdstrike-*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } +} + +# Host account RDS policy - full permissions for scanning infrastructure +data "aws_iam_policy_document" "crowdstrike_rds_clone_host" { + count = (local.create_rds_policy && local.is_host_account) ? 1 : 0 + + # Grants permission to add only requested tag mentioned in condition to RDS instance and snapshot + statement { + sid = "RDSPermissionForTagging" + actions = [ + "rds:AddTagsToResource" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:db:crowdstrike-*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:crowdstrike-*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster:crowdstrike-*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:crowdstrike-*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to restore an instance/cluster from any snapshot + statement { + sid = "RDSPermissionForInstanceRestore" + actions = [ + "rds:RestoreDBInstanceFromDBSnapshot", + "rds:RestoreDBClusterFromSnapshot", + "kms:Decrypt" # Require to restore encrypted db snapshot using KMS keys + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:*", + "arn:${local.aws_partition}:kms:*:${data.aws_caller_identity.current.account_id}:key/*" + ] + } + + # Restricts permission to restore an instance/cluster to CrowdStrike VPC + statement { + sid = "RDSPermissionForInstanceRestoreCrowdStrikeVPC" + actions = [ + "rds:RestoreDBInstanceFromDBSnapshot", + "rds:RestoreDBClusterFromSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:subgrp:*" + ] + condition { + test = "StringEquals" + variable = "aws:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to restore instance/cluster with a tag mentioned in the condition + statement { + sid = "RDSLimitedPermissionForInstanceRestore" + actions = [ + "rds:RestoreDBInstanceFromDBSnapshot", + "rds:RestoreDBClusterFromSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:db:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster:*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:security-group/*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:og:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:pg:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-og:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-pg:*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to copy snapshot with a tag mentioned in the condition. + statement { + sid = "RDSLimitedPermissionForCopySnapshot" + actions = [ + "rds:CopyDBSnapshot", + "rds:CopyDBClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:*:snapshot:*", + "arn:${local.aws_partition}:rds:*:*:cluster-snapshot:*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to create db instance with a tag mentioned in the condition inside db cluster + statement { + sid = "RDSPermissionDBClusterCreateInstance" + actions = [ + "rds:CreateDBInstance" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:db:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Restricts create db instance permission to CrowdStrike VPC + statement { + sid = "RDSPermissionDBClusterCreateInstanceCrowdStrikeVPC" + actions = [ + "rds:CreateDBInstance" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:subgrp:*" + ] + condition { + test = "StringEquals" + variable = "aws:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to delete or modify RDS DB/cluster, which are tagged as mentioned in the condition + statement { + sid = "RDSPermissionDeleteRestorePermissions" + actions = [ + "rds:DeleteDBInstance", + "rds:DeleteDBSnapshot", + "rds:ModifyDBInstance", + "rds:DeleteDBCluster", + "rds:DeleteDBClusterSnapshot", + "rds:ModifyDBCluster", + "rds:RebootDBInstance" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:db:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:og:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:pg:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-og:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-pg:*" + ] + condition { + test = "StringEquals" + variable = "aws:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } +} + +# Target account RDS policy - limited permissions for sharing snapshots +data "aws_iam_policy_document" "crowdstrike_rds_clone_target" { + count = (local.create_rds_policy && !local.is_host_account) ? 1 : 0 + + # Grants permission to add only requested tag mentioned in condition to RDS instance and snapshot + statement { + sid = "RDSPermissionForTagging" + actions = [ + "rds:AddTagsToResource" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:crowdstrike-*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:crowdstrike-*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to delete or modify RDS DB/cluster, which are tagged as mentioned in the condition + statement { + sid = "RDSPermissionDeleteRestorePermissions" + actions = [ + "rds:DeleteDBSnapshot", + "rds:DeleteDBClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:*" + ] + condition { + test = "StringEquals" + variable = "aws:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to copy snapshot with a tag mentioned in the condition. + statement { + sid = "RDSLimitedPermissionForCopySnapshot" + actions = [ + "rds:CopyDBSnapshot", + "rds:CopyDBClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Grants permission to modify snapshot attributes for sharing + statement { + sid = "RDSLimitedPermissionForShareSnapshot" + actions = [ + "rds:ModifyDBSnapshotAttribute", + "rds:ModifyDBClusterSnapshotAttribute" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:snapshot:crowdstrike-*", + "arn:${local.aws_partition}:rds:*:${data.aws_caller_identity.current.account_id}:cluster-snapshot:crowdstrike-*" + ] + condition { + test = "StringEquals" + variable = "aws:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } +} + +resource "aws_iam_role_policy" "crowdstrike_redshift_clone_host" { + count = (var.dspm_redshift_access && var.enable_dspm && local.is_host_account) ? 1 : 0 + name = "CrowdStrikeRedshiftClone" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_redshift_clone_host[0].json +} + +resource "aws_iam_role_policy" "crowdstrike_redshift_clone_target" { + count = (var.dspm_redshift_access && var.enable_dspm && !local.is_host_account) ? 1 : 0 + name = "CrowdStrikeRedshiftCloneTarget" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_redshift_clone_target[0].json +} + +# Host account Redshift policy - full permissions for scanning infrastructure +data "aws_iam_policy_document" "crowdstrike_redshift_clone_host" { + count = (local.create_redshift_policy && local.is_host_account) ? 1 : 0 + + # Grants permission to create a cluster snapshot and restore cluster from snapshot + statement { + sid = "RedshiftPermissionsForRestoring" + actions = [ + "redshift:RestoreFromClusterSnapshot", + "redshift:CreateClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:cluster:*", + "arn:${local.aws_partition}:redshift:*:*:snapshot:*" + ] + } + + # Grants permission to create tags, modify and delete CrowdStrike's clusters and snapshots + statement { + sid = "RedshiftPermissionsForControllingClones" + actions = [ + "redshift:CreateTags", + "redshift:ModifyCluster*", + "redshift:DeleteCluster", + "redshift:DeleteClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:cluster:crowdstrike-*", + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:snapshot:*/crowdstrike-snapshot-*" + ] + } + + # Grants permission to secret manager to restore redshift's password managed by secret manager + statement { + sid = "RedshiftPermissionsForSecretsManager" + actions = [ + "secretsmanager:CreateSecret", + "secretsmanager:TagResource", + "secretsmanager:DescribeSecret" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:secretsmanager:*:${data.aws_caller_identity.current.account_id}:secret:*" + ] + } +} + +# Target account Redshift policy - limited permissions for sharing snapshots +data "aws_iam_policy_document" "crowdstrike_redshift_clone_target" { + count = (var.dspm_redshift_access && var.enable_dspm && !local.is_host_account) ? 1 : 0 + + # Grants permission to create a cluster snapshot + statement { + sid = "RedshiftPermissionsForRestoring" + actions = [ + "redshift:CreateClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:cluster:*", + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:snapshot:*" + ] + } + + # Grants permission to create tags and delete CrowdStrike's snapshots + statement { + sid = "RedshiftPermissionsForControllingClones" + actions = [ + "redshift:CreateTags", + "redshift:DeleteClusterSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:cluster:crowdstrike-*", + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:snapshot:*/crowdstrike-snapshot-*" + ] + } + + # Grants permission to authorize and revoke snapshot access + statement { + sid = "RDSAuthorizeSnapshotAccessPermissions" + actions = [ + "redshift:AuthorizeSnapshotAccess", + "redshift:RevokeSnapshotAccess" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:redshift:*:${data.aws_caller_identity.current.account_id}:snapshot:*" + ] + } +} + +resource "aws_iam_role_policy" "crowdstrike_ssm_reader" { + name = "CrowdStrikeSSMReader" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_ssm_reader_data.json +} + +data "aws_iam_policy_document" "crowdstrike_ssm_reader_data" { + statement { + actions = [ + "ssm:GetParameter" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ssm:*:${data.aws_caller_identity.current.account_id}:parameter/CrowdStrike/*" + ] + } +} + +# Custom VPC IAM policy +resource "aws_iam_role_policy" "run_data_scanner_custom_vpcs" { + count = var.agentless_scanning_use_custom_vpc && local.is_host_account && length(var.agentless_scanning_custom_vpc_resources_map) > 0 ? 1 : 0 + name = "RunDataScannerCustomVPCs" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.run_data_scanner_custom_vpcs_data[0].json +} + +data "aws_iam_policy_document" "run_data_scanner_custom_vpcs_data" { + count = var.agentless_scanning_use_custom_vpc && length(var.agentless_scanning_custom_vpc_resources_map) > 0 ? 1 : 0 + + # Grants permission to Launch EC2 for CrowdStrike EC2 instance in custom VPCs + # The condition key ec2:Vpc is applicable to custom VPC resources + statement { + sid = "AllowRunInstancesCustomVpc" + actions = [ + "ec2:RunInstances" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:security-group/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:subnet/*" + ] + condition { + test = "ForAnyValue:StringEquals" + variable = "ec2:Vpc" + values = local.custom_vpc_arns + } + } +} + +# EBS Scanning Base Policy - Common EBS and KMS permissions +resource "aws_iam_role_policy" "crowdstrike_ebs_clone" { + count = local.create_ebs_policy ? 1 : 0 + name = "CrowdStrikeEBSClone" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_ebs_clone[0].json +} + +data "aws_iam_policy_document" "crowdstrike_ebs_clone" { + count = local.create_ebs_policy ? 1 : 0 + + # EBS Volume Access for Snapshot Creation + statement { + sid = "EBSVolumeAccessForSnapshotCreation" + actions = [ + "ec2:CreateSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*" + ] + } + + # EBS snapshot delete and snapshot access for copy + statement { + sid = "EBSSnapshotDeleteAndCopyAccess" + actions = [ + "ec2:DeleteSnapshot", + "ec2:CopySnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*::snapshot/*" + ] + condition { + test = "StringEquals" + variable = "ec2:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # EBS snapshot create and copy + statement { + sid = "EBSSnapshotCreateAndCopy" + actions = [ + "ec2:CopySnapshot", + "ec2:CreateSnapshot" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*::snapshot/*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Tagging Operations + statement { + sid = "TaggingOperations" + actions = [ + "ec2:CreateTags" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*::snapshot/*" + ] + condition { + test = "ForAnyValue:StringEquals" + variable = "ec2:CreateAction" + values = ["CreateSnapshot", "CopySnapshot"] + } + } + + # KMS Permissions for EBS Operations + statement { + sid = "KMSPermissionsForEBSOps" + actions = [ + "kms:ReEncrypt*", + "kms:DescribeKey", + "kms:CreateGrant", + "kms:GenerateDataKey", + "kms:GenerateDataKeyWithoutPlaintext", + "kms:Decrypt" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:kms:*:*:key/*" + ] + condition { + test = "StringLike" + variable = "kms:ViaService" + values = ["ec2.*.amazonaws.com"] + } + } +} + +# EBS Scanning Host Account Policy - Volume operations in scanning environment +resource "aws_iam_role_policy" "crowdstrike_ebs_clone_host" { + count = (local.create_ebs_policy && local.is_host_account) ? 1 : 0 + name = "CrowdStrikeEBSCloneHost" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_ebs_clone_host[0].json +} + +data "aws_iam_policy_document" "crowdstrike_ebs_clone_host" { + count = (local.create_ebs_policy && local.is_host_account) ? 1 : 0 + + # EBS Snapshot Access for Volume Creation + statement { + sid = "EBSSnapshotAccessForVolumeCreation" + actions = [ + "ec2:CreateVolume" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*::snapshot/*" + ] + } + + # EBS Volume Operations Create + statement { + sid = "EBSVolumeOperationsCreate" + actions = [ + "ec2:CreateVolume" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*" + ] + condition { + test = "StringEquals" + variable = "aws:RequestTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # EBS Volume Operations Delete + statement { + sid = "EBSVolumeOperationsDelete" + actions = [ + "ec2:DeleteVolume" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*" + ] + condition { + test = "StringEquals" + variable = "ec2:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + } + + # Tagging Operations + statement { + sid = "TaggingOperations" + actions = [ + "ec2:CreateTags" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*" + ] + condition { + test = "ForAnyValue:StringEquals" + variable = "ec2:CreateAction" + values = ["CreateVolume"] + } + } +} + +# EBS Scanning Target Account Policy - Snapshot sharing with host account +resource "aws_iam_role_policy" "crowdstrike_ebs_clone_target" { + count = (local.create_ebs_policy && !local.is_host_account) ? 1 : 0 + name = "CrowdStrikeEBSCloneTarget" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.id + policy = data.aws_iam_policy_document.crowdstrike_ebs_clone_target[0].json +} + +data "aws_iam_policy_document" "crowdstrike_ebs_clone_target" { + count = (local.create_ebs_policy && !local.is_host_account) ? 1 : 0 + + # EBS Snapshot Share + statement { + sid = "EBSSnapshotShare" + actions = [ + "ec2:ModifySnapshotAttribute" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*::snapshot/*" + ] + condition { + test = "StringEquals" + variable = "ec2:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + condition { + test = "StringEquals" + variable = "ec2:Add/userId" + values = [var.agentless_scanning_host_account_id] + } + } + + # EBS Snapshot Unshare + statement { + sid = "EBSSnapshotUnshare" + actions = [ + "ec2:ModifySnapshotAttribute" + ] + effect = "Allow" + resources = [ + "arn:${local.aws_partition}:ec2:*::snapshot/*" + ] + condition { + test = "StringEquals" + variable = "ec2:ResourceTag/${local.crowdstrike_tag_key}" + values = [local.crowdstrike_tag_value] + } + condition { + test = "StringEquals" + variable = "ec2:Remove/userId" + values = [var.agentless_scanning_host_account_id] + } + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/locals.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/locals.tf new file mode 100644 index 0000000..3b83db8 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/locals.tf @@ -0,0 +1,24 @@ +locals { + crowdstrike_tag_key = "ProvisionedBy" + crowdstrike_tag_value = "CrowdStrike" + logical_tag_key = "CrowdStrikeLogicalId" + deployment_regions_tag_key = "CrowdStrikeDeploymentRegions" + + aws_partition = data.aws_partition.current.partition + + # Extract VPC ARNs from custom VPC resources map for IAM policy conditions + custom_vpc_arns = [ + for region, resources in var.agentless_scanning_custom_vpc_resources_map : + "arn:${local.aws_partition}:ec2:${region}:${data.aws_caller_identity.current.account_id}:vpc/${resources.vpc}" + ] + + # Condition to determine if this is the host account + is_host_account = var.agentless_scanning_host_account_id == var.account_id || var.agentless_scanning_host_account_id == "" + + # Agentless scanning policy conditions + create_s3_policy = var.enable_dspm && var.dspm_s3_access + create_rds_policy = var.enable_dspm && var.dspm_rds_access + create_dynamodb_policy = var.enable_dspm && var.dspm_dynamodb_access + create_redshift_policy = var.enable_dspm && var.dspm_redshift_access + create_ebs_policy = (var.enable_dspm && var.dspm_ebs_access) || var.enable_vulnerability_scanning +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/main.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/main.tf new file mode 100644 index 0000000..5b7eb53 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/main.tf @@ -0,0 +1,280 @@ +# Creates instance profile. Attached as IAM role to EC2 instance, used for data scan +resource "aws_iam_instance_profile" "instance_profile" { + count = local.is_host_account ? 1 : 0 + name = "CrowdStrikeScannerRoleProfile" + path = "/" + role = var.agentless_scanning_scanner_role_name + tags = merge( + var.tags, + { + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_ssm_parameter" "agentless_scanning_root_parameter" { + name = "/CrowdStrike/AgentlessScanning/Root" + type = "String" + tier = "Intelligent-Tiering" + value = jsonencode({ + version = "1.1.1+tf.0" + deployment_regions = var.agentless_scanning_regions + scan_products = { + dspm_scanning_enabled = var.enable_dspm + vulnerability_scanning_enabled = var.enable_vulnerability_scanning + } + scanner_role_arn = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.arn + instance_profile = local.is_host_account ? aws_iam_instance_profile.instance_profile[0].name : "" + host_account_id = local.is_host_account ? data.aws_caller_identity.current.account_id : var.agentless_scanning_host_account_id + permissions = { + s3_policy = local.create_s3_policy ? "${var.agentless_scanning_scanner_role_name}/CrowdStrikeBucketReader" : "" + rds_policy = local.create_rds_policy ? "${var.agentless_scanning_role_name}/CrowdStrikeRDSClone" : "" + dynamodb_policy = local.create_dynamodb_policy ? "${var.agentless_scanning_scanner_role_name}/CrowdStrikeDynamoDBReader" : "" + redshift_policy = local.create_redshift_policy ? "${var.agentless_scanning_role_name}/CrowdStrikeRedshiftClone" : "" + ebs_policy = local.create_ebs_policy ? "${var.agentless_scanning_role_name}/CrowdStrikeEBSClone" : "" + } + }) + description = "Tracks which datastore services are enabled for DSPM scanning via their policies" + tags = merge( + var.tags, + { + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +resource "aws_iam_role" "crowdstrike_aws_agentless_scanning_scanner_role" { + name = var.agentless_scanning_scanner_role_name + path = "/" + assume_role_policy = local.is_host_account ? jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Action = "sts:AssumeRole" + Effect = "Allow" + Principal = { + Service = "ec2.amazonaws.com" + } + Condition = { + StringEquals = { + "aws:ResourceTag/${local.crowdstrike_tag_key}" = local.crowdstrike_tag_value + } + } + } + ] + }) : jsonencode({ + Version = "2008-10-17" + Statement = [ + { + Effect = "Allow" + Principal = { + AWS = "arn:${local.aws_partition}:iam::${var.agentless_scanning_host_account_id}:root" + } + Action = "sts:AssumeRole" + Condition = { + StringEquals = { + "aws:PrincipalArn" = "arn:${local.aws_partition}:iam::${var.agentless_scanning_host_account_id}:role/${var.agentless_scanning_host_scanner_role_name}" + } + } + } + ] + }) + permissions_boundary = var.permissions_boundary != "" ? "arn:${local.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/${var.permissions_boundary}" : null + tags = merge( + var.tags, + { + (local.crowdstrike_tag_key) = local.crowdstrike_tag_value + } + ) +} + +moved { + from = aws_iam_role.crowdstrike_aws_dspm_scanner_role + to = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role +} + +resource "aws_iam_role_policy_attachment" "cloud_watch_logs_read_only_access" { + role = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.name + policy_arn = "arn:${local.aws_partition}:iam::aws:policy/CloudWatchLogsReadOnlyAccess" +} + + +resource "aws_iam_role_policy" "crowdstrike_bucket_reader" { + count = local.create_s3_policy ? 1 : 0 + #checkov:skip=CKV_AWS_288,CKV_AWS_355:DSPM data scanner requires read access to all scannable s3 assets + name = "CrowdStrikeBucketReader" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Sid = "AllowS3ReadObjects" + Action = [ + "s3:Get*", + "s3:List*" + ] + Effect = "Allow" + Resource = ["*"] + }, + { + Sid = "AllowS3DecryptObjects" + Action = "kms:Decrypt" + Effect = "Allow", + Resource = ["*"] + Condition = { + StringLike = { + "kms:ViaService" = "s3.*.amazonaws.com" + } + } + } + ] + }) +} + +resource "aws_iam_role_policy" "crowdstrike_dynamodb_reader" { + count = local.create_dynamodb_policy ? 1 : 0 + #checkov:skip=CKV_AWS_355:DSPM data scanner requires read access to all scannable dynamodb assets + name = "CrowdStrikeDynamoDBReader" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Action = [ + "dynamodb:BatchGetItem", + "dynamodb:Describe*", + "dynamodb:List*", + "dynamodb:Get*", + "dynamodb:Query", + "dynamodb:Scan", + "dynamodb:PartiQLSelect" + ] + Effect = "Allow" + Resource = ["*"] + } + ] + }) +} + +resource "aws_iam_role_policy" "crowdstrike_redshift_reader" { + count = (local.create_redshift_policy && local.is_host_account) ? 1 : 0 + #checkov:skip=CKV_AWS_355:DSPM data scanner requires read access to all scannable redshift assets + #checkov:skip=CKV_AWS_290,CKV_AWS_287:DSPM data scanner requires redshift:Get* permissions + name = "CrowdStrikeRedshiftReader" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Action = [ + "redshift:List*", + "redshift:Describe*", + "redshift:View*", + "redshift:Get*", + "redshift-serverless:List*", + "redshift-serverless:Get*" + ] + Effect = "Allow" + Resource = ["*"] + } + ] + }) +} + +resource "aws_iam_role_policy" "crowdstrike_secret_reader" { + count = local.is_host_account ? 1 : 0 + name = "CrowdStrikeSecretReader" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Sid = "SecretsManagerReadClientSecret" + Action = [ + "secretsmanager:GetSecretValue", + "secretsmanager:DescribeSecret", + ] + Effect = "Allow" + Resource = aws_secretsmanager_secret.client_secrets.arn + }, + { + Sid = "SecretsManagerListSecrets", + Action = "secretsmanager:ListSecrets", + Effect = "Allow", + Resource = "*" + } + ] + }) +} + +resource "aws_iam_role_policy" "crowdstrike_assume_target_scanner_role" { + count = local.is_host_account ? 1 : 0 + name = "CrowdStrikeAssumeTargetScannerRole" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Sid = "AssumeRole" + Effect = "Allow" + Action = [ + "sts:AssumeRole" + ] + Resource = "arn:${local.aws_partition}:iam::*:role/*" + } + ] + }) +} + +# EBS Volume Reader Policy for EBS Scanning +resource "aws_iam_role_policy" "crowdstrike_ebs_volume_reader" { + count = (local.create_ebs_policy && local.is_host_account) ? 1 : 0 + name = "CrowdStrikeEBSVolumeReader" + role = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Sid = "AttachEBSVolumes" + Effect = "Allow" + Action = [ + "ec2:AttachVolume", + "ec2:DetachVolume" + ] + Resource = [ + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:volume/*", + "arn:${local.aws_partition}:ec2:*:${data.aws_caller_identity.current.account_id}:instance/*" + ] + Condition = { + StringEquals = { + "ec2:ResourceTag/${local.crowdstrike_tag_key}" = local.crowdstrike_tag_value + } + } + }, + { + Sid = "AllowDescribeVolumesAndInstanceAttributes" + Effect = "Allow" + Action = [ + "ec2:DescribeVolumes", + "ec2:DescribeInstanceAttribute" + ] + Resource = "*" + }, + { + Sid = "AllowUseOfKMSKeyForEBS" + Effect = "Allow" + Action = [ + "kms:Decrypt", + "kms:CreateGrant" + ] + Resource = "arn:${local.aws_partition}:kms:*:${data.aws_caller_identity.current.account_id}:key/*" + Condition = { + StringLike = { + "kms:ViaService" = "ec2.*.amazonaws.com" + } + } + } + ] + }) +} + diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/outputs.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/outputs.tf new file mode 100644 index 0000000..f6aefb1 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/outputs.tf @@ -0,0 +1,19 @@ +output "integration_role_name" { + description = "The arn of the IAM role that CrowdStrike will be assuming" + value = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.name +} + +output "integration_role_unique_id" { + description = "The unique ID of the DSPM integration role" + value = aws_iam_role.crowdstrike_aws_agentless_scanning_integration_role.unique_id +} + +output "scanner_role_name" { + description = "The arn of the IAM role that CrowdStrike Scanner will be assuming" + value = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.name +} + +output "scanner_role_unique_id" { + description = "The unique ID of the DSPM scanner role" + value = aws_iam_role.crowdstrike_aws_agentless_scanning_scanner_role.unique_id +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/variables.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/variables.tf new file mode 100644 index 0000000..fa2c053 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/variables.tf @@ -0,0 +1,177 @@ +variable "agentless_scanning_role_name" { + description = "The unique name of the IAM role that Agentless scanning will be assuming" + type = string + default = "CrowdStrikeAgentlessScanningIntegrationRole" +} + +variable "agentless_scanning_scanner_role_name" { + description = "The unique name of the IAM role that Agentless scanning scanner will be assuming" + type = string + default = "CrowdStrikeAgentlessScanningScannerRole" +} + +variable "falcon_client_id" { + description = "CrowdStrike client ID" + type = string + nullable = false + validation { + condition = length(var.falcon_client_id) == 32 && can(regex("^[a-fA-F0-9]+$", var.falcon_client_id)) + error_message = "The client_id must be a valid v4 uuid (without dashes), containing only hexadecimal characters and exactly 32 characters long." + } +} + +variable "falcon_client_secret" { + description = "CrowdStrike client secret" + type = string + nullable = false +} + +variable "intermediate_role_arn" { + description = "ARN of the CrowdStrike assuming role" + type = string + nullable = false + + validation { + condition = can(regex("^arn:(aws|aws-us-gov):iam::[0-9]{12}:role/[a-zA-Z0-9+=,.@\\-_/]+$", var.intermediate_role_arn)) + error_message = "The provided value for cs_role_arn must be a valid AWS IAM role ARN." + } +} + +variable "external_id" { + description = "Unique ID for customer" + type = string + nullable = false + + validation { + condition = ( + length(var.external_id) >= 1 && + length(var.external_id) <= 256 && + can(regex("^[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+$", var.external_id)) + ) + error_message = "The provided value for the field external_id must be a valid AWS external ID." + } +} + +variable "agentless_scanning_regions" { + description = "List of regions where agentless scanning will be deployed" + type = list(string) + default = ["us-east-1"] + + validation { + condition = length(var.agentless_scanning_regions) > 0 + error_message = "At least one agentless scanning region must be specified." + } + + validation { + condition = alltrue([ + for region in var.agentless_scanning_regions : + (can(regex("^(?:us|eu|ap|sa|ca|af|me|il)-(?:north|south|east|west|central|northeast|southeast|southwest|northwest)-[1-4]$", region)) || + can(regex("^us-gov-(?:east|west)-1$", region)))]) + error_message = "Each element in the agentless_scanning_regions list must be a valid AWS region (e.g., 'us-east-1', 'eu-west-2', 'us-gov-east-1', 'us-gov-west-1')." + } +} + +variable "agentless_scanning_use_custom_vpc" { + description = "Whether to use existing custom VPC resources for ALL deployment regions (requires agentless_scanning_custom_vpc_resources_map with all regions)" + type = bool + default = false +} + +variable "agentless_scanning_custom_vpc_resources_map" { + description = "Map of region-specific VPC resources for existing VPC deployment. Keys are region names, values are objects containing VPC resource IDs." + type = map(object({ + vpc = string + scanner_subnet = string + scanner_sg = string + db_subnet_a = string + db_subnet_b = string + db_sg = string + })) + default = {} +} + +variable "dspm_s3_access" { + description = "Apply permissions for DSPM S3 bucket scanning" + type = bool + default = true +} + +variable "dspm_dynamodb_access" { + description = "Apply permissions for DSPM DynamoDB table scanning" + type = bool + default = true +} + +variable "dspm_rds_access" { + description = "Apply permissions for DSPM RDS instance scanning" + type = bool + default = true +} + +variable "dspm_redshift_access" { + description = "Apply permissions for DSPM Redshift cluster scanning" + type = bool + default = true +} + +variable "dspm_ebs_access" { + description = "Apply permissions for DSPM VM scanning" + type = bool + default = true +} + +variable "enable_dspm" { + description = "Enable DSPM scanning resources and permissions" + type = bool + default = false +} + +variable "enable_vulnerability_scanning" { + description = "Enable vulnerability scanning resources and permissions" + type = bool + default = false +} + +variable "tags" { + description = "A map of tags to add to all resources that support tagging" + type = map(string) + default = {} +} + +variable "permissions_boundary" { + description = "The name of the policy used to set the permissions boundary for IAM roles" + type = string + default = "" +} + +variable "agentless_scanning_host_account_id" { + type = string + default = "" + description = "The AWS account ID where agentless scanning host resources are deployed" + + validation { + condition = var.agentless_scanning_host_account_id == "" || can(regex("^\\d{12}$", var.agentless_scanning_host_account_id)) + error_message = "Agentless scanning host account ID must be empty or 12 digits." + } +} + +variable "agentless_scanning_host_scanner_role_name" { + type = string + default = "CrowdStrikeAgentlessScanningScannerRole" + description = "Name of agentless scanning scanner role in host account" + + validation { + condition = can(regex("^$|^[a-zA-Z0-9+=,.@_-]{1,64}$", var.agentless_scanning_host_scanner_role_name)) + error_message = "Role name must be empty or use only alphanumeric and '+=,.@-_' characters, maximum 64 characters." + } +} + +variable "account_id" { + type = string + default = "" + description = "The AWS 12 digit account ID" + validation { + condition = length(var.account_id) == 0 || can(regex("^[0-9]{12}$", var.account_id)) + error_message = "account_id must be either empty or the 12-digit AWS account ID" + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/versions.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/versions.tf new file mode 100644 index 0000000..5c472aa --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/agentless-scanning-roles/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.5.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.0.0" + } + } +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/LICENSE b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/LICENSE new file mode 100644 index 0000000..4f45e80 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 CrowdStrike + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/fixture.json b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/fixture.json new file mode 100644 index 0000000..20476ad --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/CrowdStrike/cloud-registration/aws/0.7.13", + "ref": "0.7.13", + "path": "modules/asset-inventory", + "archiveSha256": "9c33a02d03ae3fab7a6108b528c724ad9af5512fec975753745466bc1cd0419a", + "inputSha256": "dcd9ec5c27da036b72368eb4b3cd82d434cc41090e1a9d86ffd56b4b0c285059" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "functions", + "interpolation", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/main.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/main.tf new file mode 100644 index 0000000..f57213c --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/main.tf @@ -0,0 +1,234 @@ +data "aws_caller_identity" "current" {} +data "aws_partition" "current" {} + +locals { + account_id = data.aws_caller_identity.current.account_id + aws_partition = data.aws_partition.current.partition +} + +# Data resource to be used as the assume role policy below. +data "aws_iam_policy_document" "this" { + statement { + effect = "Allow" + actions = ["sts:AssumeRole"] + principals { + type = "AWS" + identifiers = [var.intermediate_role_arn] + } + condition { + test = "StringEquals" + values = [var.external_id] + variable = "sts:ExternalId" + } + } +} + +# Create IAM role policy giving the CrowdStrike IAM role read access to AWS resources. +resource "aws_iam_role" "this" { + count = !var.use_existing_iam_reader_role ? 1 : 0 + name = var.role_name + assume_role_policy = data.aws_iam_policy_document.this.json + permissions_boundary = var.permissions_boundary != "" ? "arn:${local.aws_partition}:iam::${local.account_id}:policy/${var.permissions_boundary}" : null + tags = var.tags +} + +resource "aws_iam_role_policy" "this" { + name = "cspm_config" + count = !var.use_existing_iam_reader_role ? 1 : 0 + role = aws_iam_role.this[count.index].id + policy = jsonencode({ + Version = "2012-10-17" + Statement = [ + { + Effect = "Allow" + Resource = "*" + Action = [ + "account:GetContactInformation", + "aoss:BatchGetCollection", + "aoss:GetAccessPolicy", + "aoss:GetSecurityPolicy", + "aoss:ListAccessPolicies", + "aoss:ListCollections", + "aoss:ListSecurityPolicies", + "appsync:GetApiCache", + "appsync:GetGraphqlApi", + "appsync:GetGraphqlApiEnvironmentVariables", + "appsync:GetIntrospectionSchema", + "athena:GetDataCatalog", + "auditmanager:GetAssessment", + "auditmanager:GetControl", + "backup:DescribeBackupVault", + "backup:DescribeRecoveryPoint", + "backup:GetBackupPlan", + "backup:GetBackupSelection", + "backup:ListBackupPlans", + "backup:ListBackupSelections", + "backup:ListRecoveryPointsByBackupVault", + "batch:DescribeJobQueues", + "bedrock-agentcore:GetGatewayTarget", + "bedrock-agentcore:GetHarnessEndpoint", + "bedrock-agentcore:GetMemory", + "bedrock-agentcore:GetPolicy", + "bedrock-agentcore:GetPolicyEngine", + "bedrock-agentcore:GetWorkloadIdentity", + "bedrock-agentcore:ListAgentRuntimeVersions", + "bedrock-agentcore:ListGatewayTargets", + "bedrock-agentcore:ListHarnessEndpoints", + "bedrock-agentcore:ListMemories", + "bedrock-agentcore:ListPolicies", + "bedrock-agentcore:ListPolicyEngines", + "bedrock-agentcore:ListTagsForResource", + "bedrock-agentcore:ListWorkloadIdentities", + "bedrock:GetAgent", + "bedrock:GetAgentActionGroup", + "bedrock:GetAgentAlias", + "bedrock:GetAgentCollaborator", + "bedrock:GetAgentKnowledgeBase", + "bedrock:GetAgentMemory", + "bedrock:GetAgentVersion", + "bedrock:GetFoundationModel", + "bedrock:GetFoundationModelAvailability", + "bedrock:GetGuardrail", + "bedrock:GetKnowledgeBase", + "bedrock:GetKnowledgeBaseDocuments", + "bedrock:GetModelCustomizationJob", + "bedrock:GetProvisionedModelThroughput", + "bedrock:ListAgentActionGroups", + "bedrock:ListAgentAliases", + "bedrock:ListAgentCollaborators", + "bedrock:ListAgentKnowledgeBases", + "bedrock:ListAgentVersions", + "bedrock:ListAgents", + "bedrock:ListFoundationModelAgreementOffers", + "bedrock:ListFoundationModels", + "bedrock:ListGuardrails", + "bedrock:ListKnowledgeBaseDocuments", + "bedrock:ListKnowledgeBases", + "bedrock:ListModelCustomizationJobs", + "bedrock:ListProvisionedModelThroughputs", + "cassandra:Select", + "cloudformation:GetTemplateSummary", + "cloudformation:ListChangeSets", + "codeartifact:DescribeDomain", + "codeartifact:DescribeRepository", + "codeartifact:ListDomains", + "codeartifact:ListRepositoriesInDomain", + "codeartifact:ListTagsForResource", + "codeguru-profiler:DescribeProfilingGroup", + "codeguru-profiler:ListProfilingGroups", + "codepipeline:ListPipelineExecutions", + "codepipeline:ListRuleExecutions", + "codepipeline:ListTagsForResource", + "codepipeline:ListWebhooks", + "cognito-idp:GetGroup", + "cognito-idp:GetLogDeliveryConfiguration", + "connect:DescribeInstance", + "connect:ListTagsForResource", + "databrew:DescribeJob", + "databrew:ListTagsForResource", + "detective:ListDatasourcePackages", + "detective:ListTagsForResource", + "dynamodb:GetResourcePolicy", + "ecr:BatchGetImage", + "ecr:GetDownloadUrlForLayer", + "ecr:GetRegistryScanningConfiguration", + "eks:DescribeAddon", + "eks:ListAddons", + "elasticfilesystem:DescribeAccessPoints", + "fms:GetAdminAccount", + "fms:GetPolicy", + "fms:ListAdminAccountsForOrganization", + "glue:GetBlueprint", + "glue:GetConnection", + "glue:GetConnections", + "glue:GetCrawler", + "glue:GetDatabase", + "glue:GetDevEndpoint", + "glue:GetJob", + "glue:GetResourcePolicies", + "glue:GetSchema", + "glue:GetTrigger", + "glue:GetTriggers", + "glue:ListBlueprints", + "glue:ListSchemas", + "grafana:DescribeWorkspace", + "grafana:DescribeWorkspaceAuthentication", + "grafana:DescribeWorkspaceConfiguration", + "imagebuilder:GetComponent", + "imagebuilder:GetImagePipeline", + "imagebuilder:GetImageRecipe", + "imagebuilder:GetInfrastructureConfiguration", + "imagebuilder:ListComponents", + "imagebuilder:ListImagePipelines", + "imagebuilder:ListImageRecipes", + "imagebuilder:ListInfrastructureConfigurations", + "imagebuilder:ListTagsForResource", + "lambda:GetEventSourceMapping", + "lambda:GetFunction", + "lambda:GetFunctionCodeSigningConfig", + "lambda:GetFunctionUrlConfig", + "lambda:GetLayerVersion", + "lightsail:GetBucketAccessKeys", + "lightsail:GetContainerServiceDeployments", + "lightsail:GetContainerServiceMetricData", + "lightsail:GetDisk", + "lightsail:GetInstance", + "lightsail:GetInstanceAccessDetails", + "lightsail:GetInstancePortStates", + "lightsail:GetInstanceState", + "lightsail:GetKeyPair", + "lightsail:GetKeyPairs", + "lightsail:GetRelationalDatabase", + "lightsail:GetRelationalDatabases", + "macie2:DescribeClassificationJob", + "macie2:GetAutomatedDiscoveryConfiguration", + "macie2:GetMacieSession", + "macie2:ListClassificationJobs", + "macie2:ListTagsForResource", + "memorydb:DescribeACLs", + "memorydb:DescribeParameterGroups", + "memorydb:DescribeParameters", + "memorydb:DescribeSnapshots", + "memorydb:DescribeSubnetGroups", + "memorydb:DescribeUsers", + "memorydb:ListTags", + "redshift-serverless:ListNamespaces", + "sns:GetSubscriptionAttributes", + "ssm:GetParameter", + "ssm:GetParameters", + "states:DescribeActivity", + "states:DescribeStateMachineForExecution", + "states:ListActivities", + "states:ListStateMachineAliases", + "states:ListStateMachineVersions", + "states:ListTagsForResource", + "storagegateway:DescribeSMBFileShares", + "waf-regional:GetIPSet", + "waf-regional:GetRule", + "waf-regional:GetRuleGroup", + "waf-regional:ListActivatedRulesInRuleGroup", + "waf-regional:ListIPSets", + "waf-regional:ListRuleGroups", + "waf-regional:ListRules", + "wafv2:GetIPSet", + "wafv2:GetRuleGroup", + "wisdom:ListAssistants", + "wisdom:ListTagsForResource" + ] + }, + { + Effect = "Allow" + Resource = "arn:${data.aws_partition.current.partition}:apigateway:*::/restapis/*" + Action = [ + "apigateway:Get" + ] + } + ] + }) +} + +resource "aws_iam_role_policy_attachment" "this" { + count = !var.use_existing_iam_reader_role ? 1 : 0 + role = aws_iam_role.this[count.index].name + policy_arn = "arn:${data.aws_partition.current.partition}:iam::aws:policy/SecurityAudit" +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/outputs.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/outputs.tf new file mode 100644 index 0000000..3cf4c23 --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/outputs.tf @@ -0,0 +1,4 @@ +output "reader_role_arn" { + value = aws_iam_role.this[*].arn + description = "The reader role ARN used for asset inventory" +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/variables.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/variables.tf new file mode 100644 index 0000000..247746f --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/variables.tf @@ -0,0 +1,32 @@ +variable "external_id" { + type = string + description = "Unique identifier provided by CrowdStrike for secure cross-account access" +} + +variable "use_existing_iam_reader_role" { + type = bool + default = false + description = "Set to true if you intend to use an existing IAM role for asset inventory" +} + +variable "role_name" { + type = string + description = "Name of the asset inventory reader IAM role" +} + +variable "intermediate_role_arn" { + type = string + description = "ARN of CrowdStrike's intermediate role" +} + +variable "permissions_boundary" { + type = string + default = "" + description = "The name of the policy used to set the permissions boundary for IAM roles" +} + +variable "tags" { + description = "A map of tags to add to all resources that support tagging" + type = map(string) + default = {} +} diff --git a/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/versions.tf b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/versions.tf new file mode 100644 index 0000000..5c472aa --- /dev/null +++ b/conformance/fixtures/registry/CrowdStrike/cloud-registration/0.7.13/modules/asset-inventory/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.5.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.0.0" + } + } +} diff --git a/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/LICENSE b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/LICENSE new file mode 100644 index 0000000..8d3d4cf --- /dev/null +++ b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [2020] [Labyrinth Labs] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/fixture.json b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/fixture.json new file mode 100644 index 0000000..0e00366 --- /dev/null +++ b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/fixture.json @@ -0,0 +1,40 @@ +{ + "schema": 1, + "id": "registry/DNXLabs/eks-lb-controller/0.11.0", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/DNXLabs/eks-lb-controller/aws/0.11.0", + "ref": "0.11.0", + "path": ".", + "archiveSha256": "f6501e8c37dd9f475c23ec7ea5752a27bb514bb2f6d3b951c79eeb9419868dd4", + "inputSha256": "cf3d8cbaabe57ff267f053e0bc8f2c15f7fdf85dd72c5ba6bb3a5f8dd82d6968" + }, + "license": "Apache-2.0", + "providers": [ + "aws", + "helm", + "kubectl", + "kubernetes" + ], + "features": [ + "conditionals", + "count", + "data", + "depends_on", + "for_each", + "for_expressions", + "functions", + "interpolation", + "locals", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/_variables.tf b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/_variables.tf new file mode 100644 index 0000000..637d154 --- /dev/null +++ b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/_variables.tf @@ -0,0 +1,108 @@ +variable "enabled" { + type = bool + default = true + description = "Variable indicating whether deployment is enabled." +} + +variable "cluster_name" { + type = string + description = "The name of the cluster." +} + +variable "cluster_identity_oidc_issuer" { + type = string + description = "The OIDC Identity issuer for the cluster." +} + +variable "cluster_identity_oidc_issuer_arn" { + type = string + description = "The OIDC Identity issuer ARN for the cluster that can be used to associate IAM roles with a service account." +} + +variable "helm_chart_name" { + type = string + default = "aws-load-balancer-controller" + description = "AWS Load Balancer Controller Helm chart name." +} + +variable "helm_chart_release_name" { + type = string + default = "aws-load-balancer-controller" + description = "AWS Load Balancer Controller Helm chart release name." +} + +variable "helm_chart_repo" { + type = string + default = "https://aws.github.io/eks-charts" + description = "AWS Load Balancer Controller Helm repository name." +} + +variable "helm_chart_version" { + type = string + default = "1.10.1" + description = "AWS Load Balancer Controller Helm chart version." +} + +variable "create_namespace" { + type = bool + default = true + description = "Whether to create Kubernetes namespace with name defined by `namespace`." +} + +variable "namespace" { + type = string + default = "kube-system" + description = "AWS Load Balancer Controller Helm chart namespace which the service will be created." +} + +variable "service_account_name" { + type = string + default = "aws-alb-ingress-controller" + description = "The kubernetes service account name." +} + +variable "arn_format" { + type = string + default = "aws" + description = "ARNs identifier, usefull for GovCloud begin with `aws-us-gov-`." +} + +variable "mod_dependency" { + type = any + default = null + description = "Dependence variable binds all AWS resources allocated by this module, dependent modules reference this variable." +} + +variable "settings" { + type = any + default = {} + description = "Additional settings which will be passed to the Helm chart values, see https://github.com/aws/eks-charts/tree/master/stable/aws-load-balancer-controller#configuration." +} + +variable "permissions_boundary" { + description = "If provided, all IAM roles will be created with this permissions boundary attached." + type = string + default = null +} + +variable "roles" { + type = list(object({ + name = string + namespace = string + secrets = list(string) + })) + default = [] + description = "RBAC roles that give secret access in other namespaces to the lb controller" +} + +variable "role_name" { + type = string + default = null + description = "Optional Parameter to override the naming convention used '-alb-ingress' role name" +} + +variable "tags" { + type = map(string) + default = null + description = "Optional Parameter to add tags to the lb IAM role" +} diff --git a/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/helm.tf b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/helm.tf new file mode 100644 index 0000000..89b73f0 --- /dev/null +++ b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/helm.tf @@ -0,0 +1,38 @@ +resource "helm_release" "lb_controller" { + depends_on = [var.mod_dependency, kubernetes_namespace.lb_controller] + count = var.enabled ? 1 : 0 + name = var.helm_chart_name + chart = var.helm_chart_release_name + repository = var.helm_chart_repo + version = var.helm_chart_version + namespace = var.namespace + + set { + name = "clusterName" + value = var.cluster_name + } + + set { + name = "rbac.create" + value = "true" + } + + set { + name = "serviceAccount.create" + value = "true" + } + + set { + name = "serviceAccount.name" + value = var.service_account_name + } + + set { + name = "serviceAccount.annotations.eks\\.amazonaws\\.com/role-arn" + value = aws_iam_role.lb_controller[0].arn + } + + values = [ + yamlencode(var.settings) + ] +} \ No newline at end of file diff --git a/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/iam.tf b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/iam.tf new file mode 100644 index 0000000..47862ae --- /dev/null +++ b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/iam.tf @@ -0,0 +1,415 @@ +locals { + role_name = var.role_name == null ? "${var.cluster_name}-alb-ingress" : var.role_name +} + +# Policy +data "aws_iam_policy_document" "lb_controller" { + count = var.enabled ? 1 : 0 + + statement { + actions = [ + "iam:CreateServiceLinkedRole" + ] + + resources = [ + "*" + ] + + condition { + test = "StringEquals" + variable = "iam:AWSServiceName" + + values = [ + "elasticloadbalancing.amazonaws.com" + ] + } + + effect = "Allow" + } + + statement { + actions = [ + "ec2:DescribeAccountAttributes", + "ec2:DescribeAddresses", + "ec2:DescribeAvailabilityZones", + "ec2:DescribeInternetGateways", + "ec2:DescribeVpcs", + "ec2:DescribeVpcPeeringConnections", + "ec2:DescribeSubnets", + "ec2:DescribeSecurityGroups", + "ec2:DescribeInstances", + "ec2:DescribeNetworkInterfaces", + "ec2:DescribeTags", + "ec2:GetCoipPoolUsage", + "ec2:DescribeCoipPools", + "ec2:GetSecurityGroupsForVpc", + "ec2:DescribeIpamPools", + "ec2:DescribeRouteTables", + "elasticloadbalancing:DescribeLoadBalancers", + "elasticloadbalancing:DescribeLoadBalancerAttributes", + "elasticloadbalancing:DescribeListeners", + "elasticloadbalancing:DescribeListenerCertificates", + "elasticloadbalancing:DescribeSSLPolicies", + "elasticloadbalancing:DescribeRules", + "elasticloadbalancing:DescribeTargetGroups", + "elasticloadbalancing:DescribeTargetGroupAttributes", + "elasticloadbalancing:DescribeTargetHealth", + "elasticloadbalancing:DescribeTags", + "elasticloadbalancing:DescribeTrustStores", + "elasticloadbalancing:DescribeListenerAttributes", + "elasticloadbalancing:DescribeCapacityReservation" + ] + resources = [ + "*", + ] + effect = "Allow" + } + + statement { + actions = [ + "cognito-idp:DescribeUserPoolClient", + "acm:ListCertificates", + "acm:DescribeCertificate", + "iam:ListServerCertificates", + "iam:GetServerCertificate", + "waf-regional:GetWebACL", + "waf-regional:GetWebACLForResource", + "waf-regional:AssociateWebACL", + "waf-regional:DisassociateWebACL", + "wafv2:GetWebACL", + "wafv2:GetWebACLForResource", + "wafv2:AssociateWebACL", + "wafv2:DisassociateWebACL", + "shield:GetSubscriptionState", + "shield:DescribeProtection", + "shield:CreateProtection", + "shield:DeleteProtection" + ] + resources = [ + "*", + ] + effect = "Allow" + } + + statement { + actions = [ + "ec2:AuthorizeSecurityGroupIngress", + "ec2:RevokeSecurityGroupIngress" + ] + resources = [ + "*", + ] + effect = "Allow" + } + + statement { + actions = [ + "ec2:CreateSecurityGroup" + ] + resources = [ + "*", + ] + effect = "Allow" + } + + statement { + actions = [ + "ec2:CreateTags" + ] + + resources = [ + "arn:${var.arn_format}:ec2:*:*:security-group/*" + ] + + condition { + test = "StringEquals" + variable = "ec2:CreateAction" + + values = [ + "CreateSecurityGroup" + ] + } + + condition { + test = "Null" + variable = "aws:RequestTag/elbv2.k8s.aws/cluster" + + values = [ + "false" + ] + } + + effect = "Allow" + } + + statement { + actions = [ + "ec2:CreateTags", + "ec2:DeleteTags" + ] + + resources = [ + "arn:${var.arn_format}:ec2:*:*:security-group/*" + ] + + condition { + test = "Null" + variable = "aws:RequestTag/elbv2.k8s.aws/cluster" + + values = [ + "true" + ] + } + + condition { + test = "Null" + variable = "aws:ResourceTag/elbv2.k8s.aws/cluster" + + values = [ + "false" + ] + } + + effect = "Allow" + } + + statement { + actions = [ + "ec2:AuthorizeSecurityGroupIngress", + "ec2:RevokeSecurityGroupIngress", + "ec2:DeleteSecurityGroup" + ] + + resources = [ + "*" + ] + + condition { + test = "Null" + variable = "aws:ResourceTag/elbv2.k8s.aws/cluster" + + values = [ + "false" + ] + } + + effect = "Allow" + } + + statement { + actions = [ + "elasticloadbalancing:CreateLoadBalancer", + "elasticloadbalancing:CreateTargetGroup" + ] + + resources = [ + "*" + ] + + condition { + test = "Null" + variable = "aws:RequestTag/elbv2.k8s.aws/cluster" + + values = [ + "false" + ] + } + + effect = "Allow" + } + + statement { + actions = [ + "elasticloadbalancing:CreateListener", + "elasticloadbalancing:DeleteListener", + "elasticloadbalancing:CreateRule", + "elasticloadbalancing:DeleteRule" + ] + resources = [ + "*", + ] + effect = "Allow" + } + + statement { + actions = [ + "elasticloadbalancing:AddTags", + "elasticloadbalancing:RemoveTags" + ] + + resources = [ + "arn:${var.arn_format}:elasticloadbalancing:*:*:targetgroup/*/*", + "arn:${var.arn_format}:elasticloadbalancing:*:*:loadbalancer/net/*/*", + "arn:${var.arn_format}:elasticloadbalancing:*:*:loadbalancer/app/*/*" + ] + + condition { + test = "Null" + variable = "aws:RequestTag/elbv2.k8s.aws/cluster" + + values = [ + "true" + ] + } + + condition { + test = "Null" + variable = "aws:ResourceTag/elbv2.k8s.aws/cluster" + + values = [ + "false" + ] + } + + effect = "Allow" + } + + statement { + actions = [ + "elasticloadbalancing:AddTags", + "elasticloadbalancing:RemoveTags" + ] + resources = [ + "arn:${var.arn_format}:elasticloadbalancing:*:*:listener/net/*/*/*", + "arn:${var.arn_format}:elasticloadbalancing:*:*:listener/app/*/*/*", + "arn:${var.arn_format}:elasticloadbalancing:*:*:listener-rule/net/*/*/*", + "arn:${var.arn_format}:elasticloadbalancing:*:*:listener-rule/app/*/*/*" + ] + effect = "Allow" + } + + statement { + actions = [ + "elasticloadbalancing:ModifyLoadBalancerAttributes", + "elasticloadbalancing:SetIpAddressType", + "elasticloadbalancing:SetSecurityGroups", + "elasticloadbalancing:SetSubnets", + "elasticloadbalancing:DeleteLoadBalancer", + "elasticloadbalancing:ModifyTargetGroup", + "elasticloadbalancing:ModifyTargetGroupAttributes", + "elasticloadbalancing:DeleteTargetGroup", + "elasticloadbalancing:ModifyListenerAttributes", + "elasticloadbalancing:ModifyCapacityReservation", + "elasticloadbalancing:ModifyIpPools" + ] + resources = ["*"] + condition { + test = "Null" + variable = "aws:ResourceTag/elbv2.k8s.aws/cluster" + + values = [ + "false" + ] + } + } + + statement { + actions = [ + "elasticloadbalancing:AddTags" + ] + + resources = [ + "arn:${var.arn_format}:elasticloadbalancing:*:*:targetgroup/*/*", + "arn:${var.arn_format}:elasticloadbalancing:*:*:loadbalancer/net/*/*", + "arn:${var.arn_format}:elasticloadbalancing:*:*:loadbalancer/app/*/*" + ] + + condition { + test = "StringEquals" + variable = "elasticloadbalancing:CreateAction" + + values = [ + "CreateTargetGroup", + "CreateLoadBalancer" + ] + } + + condition { + test = "Null" + variable = "aws:RequestTag/elbv2.k8s.aws/cluster" + + values = [ + "false" + ] + } + + effect = "Allow" + } + + statement { + actions = [ + "elasticloadbalancing:RegisterTargets", + "elasticloadbalancing:DeregisterTargets" + ] + resources = [ + "arn:${var.arn_format}:elasticloadbalancing:*:*:targetgroup/*/*" + ] + effect = "Allow" + } + + statement { + actions = [ + "elasticloadbalancing:SetWebAcl", + "elasticloadbalancing:ModifyListener", + "elasticloadbalancing:AddListenerCertificates", + "elasticloadbalancing:RemoveListenerCertificates", + "elasticloadbalancing:ModifyRule", + "elasticloadbalancing:SetRulePriorities" + ] + resources = [ + "*" + ] + effect = "Allow" + } + +} + +resource "aws_iam_policy" "lb_controller" { + depends_on = [var.mod_dependency] + count = var.enabled ? 1 : 0 + name = local.role_name + path = "/" + description = "Policy for alb-ingress service" + + policy = data.aws_iam_policy_document.lb_controller[0].json + tags = var.tags +} + +# Role +data "aws_iam_policy_document" "lb_controller_assume" { + count = var.enabled ? 1 : 0 + + statement { + actions = ["sts:AssumeRoleWithWebIdentity"] + + principals { + type = "Federated" + identifiers = [var.cluster_identity_oidc_issuer_arn] + } + + condition { + test = "StringEquals" + variable = "${replace(var.cluster_identity_oidc_issuer, "https://", "")}:sub" + + values = [ + "system:serviceaccount:${var.namespace}:${var.service_account_name}", + ] + } + + effect = "Allow" + } +} + +resource "aws_iam_role" "lb_controller" { + count = var.enabled ? 1 : 0 + name = local.role_name + assume_role_policy = data.aws_iam_policy_document.lb_controller_assume[0].json + permissions_boundary = var.permissions_boundary + tags = var.tags +} + +resource "aws_iam_role_policy_attachment" "lb_controller" { + count = var.enabled ? 1 : 0 + role = aws_iam_role.lb_controller[0].name + policy_arn = aws_iam_policy.lb_controller[0].arn +} diff --git a/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/namespace.tf b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/namespace.tf new file mode 100644 index 0000000..5a60a75 --- /dev/null +++ b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/namespace.tf @@ -0,0 +1,8 @@ +resource "kubernetes_namespace" "lb_controller" { + depends_on = [var.mod_dependency] + count = (var.enabled && var.create_namespace && var.namespace != "kube-system") ? 1 : 0 + + metadata { + name = var.namespace + } +} \ No newline at end of file diff --git a/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/role.tf b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/role.tf new file mode 100644 index 0000000..b957817 --- /dev/null +++ b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/role.tf @@ -0,0 +1,20 @@ +resource "kubectl_manifest" "cluster_role" { + for_each = { for role in try(var.roles, []) : role.name => role } + yaml_body = templatefile("${path.module}/role.tpl.yaml", { + name = each.value.name + namespace = each.value.namespace + resourcenames = each.value.secrets + }) +} + +resource "kubectl_manifest" "cluster_role_binding" { + for_each = { for role in try(var.roles, []) : role.name => role } + yaml_body = templatefile("${path.module}/role_binding.tpl.yaml", { + name = each.value.name + namespace = each.value.namespace + resourcenames = each.value.secrets + }) + depends_on = [ + kubectl_manifest.cluster_role + ] +} diff --git a/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/versions.tf b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/versions.tf new file mode 100644 index 0000000..5fb7bac --- /dev/null +++ b/conformance/fixtures/registry/DNXLabs/eks-lb-controller/0.11.0/input/versions.tf @@ -0,0 +1,22 @@ +terraform { + required_version = ">= 0.13" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 3.35" + } + helm = { + source = "hashicorp/helm" + version = ">= 1.0, < 3.0" + } + kubernetes = { + source = "hashicorp/kubernetes" + version = ">= 1.10.0, < 3.0.0" + } + kubectl = { + source = "gavinbunney/kubectl" + version = ">= 1.9.4" + } + } +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/LICENSE b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/LICENSE new file mode 100644 index 0000000..1dfdc0b --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/LICENSE @@ -0,0 +1,200 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2025-present Datadog, Inc. + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/NOTICE b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/NOTICE new file mode 100644 index 0000000..d24b082 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/NOTICE @@ -0,0 +1,4 @@ +Datadog terraform-aws-ecs-datadog +Copyright 2025 Datadog, Inc. + +This product includes software developed at Datadog (https://www.datadoghq.com/). \ No newline at end of file diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/fixture.json b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/fixture.json new file mode 100644 index 0000000..b560e1e --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/fixture.json @@ -0,0 +1,28 @@ +{ + "schema": 1, + "id": "registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate", + "tier": "modules", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/DataDog/ecs-datadog/aws/1.2.2", + "ref": "1.2.2", + "path": "examples/ecs_fargate", + "archiveSha256": "e71fa690237d3918ba3992708a68db5879ddb27b5f778c99a3a5f43403751a6e", + "inputSha256": "94ac4bd3efecea3006babbc1fe82059a4ca1abf4b6c84cb46da9a30df33bc532" + }, + "license": "Apache-2.0", + "providers": [], + "features": [ + "functions", + "modules", + "outputs", + "required_providers", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/main.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/main.tf new file mode 100644 index 0000000..420ac59 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/main.tf @@ -0,0 +1,84 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +################################################################################ +# Task Definition: Datadog Agent Example +################################################################################ + +module "datadog_ecs_fargate_task" { + source = "DataDog/ecs-datadog/aws//modules/ecs_fargate" + + # Configure Datadog + dd_api_key = var.dd_api_key + dd_site = var.dd_site + dd_tags = "team:cont-p, owner:container-monitoring" + dd_essential = true + dd_is_datadog_dependency_enabled = true + + dd_service = var.dd_service + dd_env = var.dd_env + dd_version = var.dd_version + + dd_environment = [ + { + name = "DD_CUSTOM_FEATURE", + value = "true", + }, + ] + + dd_dogstatsd = { + enabled = true + dogstatsd_cardinality = "high", + origin_detection_enabled = true, + } + + dd_apm = { + enabled = true, + profiling = true, + } + + dd_log_collection = { + enabled = true, + } + + dd_cws = { + enabled = true, + } + + # Configure Task Definition + family = var.task_family_name + container_definitions = jsonencode([ + { + name = "dummy-dogstatsd-app", + image = "ghcr.io/datadog/apps-dogstatsd:main", + essential = false, + }, + { + name = "dummy-apm-app", + image = "ghcr.io/datadog/apps-tracegen:main", + essential = true, + }, + { + name = "dummy-cws-app", + image = "public.ecr.aws/ubuntu/ubuntu:22.04_stable", + essential = false, + entryPoint = [ + "/usr/bin/bash", + "-c", + "cp /usr/bin/bash /tmp/malware; chmod u+s /tmp/malware; apt update;apt install -y curl wget; /tmp/malware -c 'while true; do wget https://google.com; sleep 60; done'" + ], + } + ]) + volumes = [ + { + name = "app-volume" + } + ] + runtime_platform = { + cpu_architecture = "ARM64" + operating_system_family = "LINUX" + } + requires_compatibilities = ["FARGATE"] +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/outputs.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/outputs.tf new file mode 100644 index 0000000..18fede2 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/outputs.tf @@ -0,0 +1,8 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +output "example_module" { + value = module.datadog_ecs_fargate_task.arn +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/variables.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/variables.tf new file mode 100644 index 0000000..a2ab372 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/variables.tf @@ -0,0 +1,46 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +variable "dd_api_key" { + description = "Datadog API Key" + type = string + default = null +} + +variable "dd_api_key_secret_arn" { + description = "Datadog API Key Secret ARN" + type = string + default = null +} + +variable "dd_service" { + description = "The service name for resource filtering and UST tagging in Datadog" + type = string + default = null +} + +variable "dd_env" { + description = "The environment for resource filtering and UST tagging in Datadog" + type = string + default = null +} + +variable "dd_version" { + description = "The version for resource filtering and UST tagging in Datadog" + type = string + default = null +} + +variable "dd_site" { + description = "Datadog Site" + type = string + default = "datadoghq.com" +} + +variable "task_family_name" { + description = "The ECS task family name" + type = string + default = "dummy-terraform-app" +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/versions.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/versions.tf new file mode 100644 index 0000000..0360c39 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/examples/ecs_fargate/input/versions.tf @@ -0,0 +1,15 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +terraform { + required_version = ">= 1.5.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.85.0" + } + } +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/LICENSE b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/LICENSE new file mode 100644 index 0000000..1dfdc0b --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/LICENSE @@ -0,0 +1,200 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2025-present Datadog, Inc. + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/NOTICE b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/NOTICE new file mode 100644 index 0000000..d24b082 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/NOTICE @@ -0,0 +1,4 @@ +Datadog terraform-aws-ecs-datadog +Copyright 2025 Datadog, Inc. + +This product includes software developed at Datadog (https://www.datadoghq.com/). \ No newline at end of file diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/fixture.json b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/fixture.json new file mode 100644 index 0000000..41aab63 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/fixture.json @@ -0,0 +1,40 @@ +{ + "schema": 1, + "id": "registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/DataDog/ecs-datadog/aws/1.2.2", + "ref": "1.2.2", + "path": "modules/ecs_ec2", + "archiveSha256": "e71fa690237d3918ba3992708a68db5879ddb27b5f778c99a3a5f43403751a6e", + "inputSha256": "8b9f671ba6cf09c44ca00533a8975d1652800578bef95891d0f276b7e7ae81ce" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "depends_on", + "dynamic", + "for_each", + "for_expressions", + "functions", + "interpolation", + "locals", + "outputs", + "required_providers", + "resources", + "sensitive", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/datadog.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/datadog.tf new file mode 100644 index 0000000..0660c2c --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/datadog.tf @@ -0,0 +1,308 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +# OS Detection +locals { + is_linux = var.runtime_platform == null || try(var.runtime_platform.operating_system_family == null, true) || try(var.runtime_platform.operating_system_family == "LINUX", true) +} + +# UDS (Unix Domain Socket) Configuration +locals { + is_apm_socket_mount = var.dd_apm.enabled && var.dd_apm.socket_enabled && local.is_linux + is_dsd_socket_mount = var.dd_dogstatsd.enabled && var.dd_dogstatsd.socket_enabled && local.is_linux + is_apm_dsd_volume = local.is_apm_socket_mount || local.is_dsd_socket_mount + + # Volume for shared UDS sockets between agent and app containers + apm_dsd_volume = local.is_apm_dsd_volume ? [ + { + name = "dd-sockets" + host_path = "/var/run/datadog" + } + ] : [] + + # Mount point for the UDS socket volume (used by both agent and app containers) + apm_dsd_mount = local.is_apm_dsd_volume ? [ + { + sourceVolume = "dd-sockets" + containerPath = "/var/run/datadog" + readOnly = false + } + ] : [] +} + +# Version and Install Info +locals { + # Datadog ECS task tags + version = "1.1.1" + + install_info_tool = "terraform" + install_info_tool_version = "terraform-aws-ecs-datadog/ecs-ec2" + install_info_installer_version = local.version + + # AWS Resource Tags + tags = { + dd_ecs_terraform_module = local.version + } +} + +################################################################################ +# Host Volume Configuration (EC2-specific) +################################################################################ + +locals { + # Host volumes for Docker monitoring on EC2 + dd_host_volumes = [ + { + name = "docker_sock" + host_path = var.dd_docker_socket_path + }, + { + name = "proc" + host_path = var.dd_proc_path + }, + { + name = "cgroup" + host_path = var.dd_cgroup_path + } + ] + + # Additional volumes required for log collection + dd_log_volumes = var.dd_log_collection.enabled ? [ + { + name = "pointdir" + host_path = "/opt/datadog-agent/run" + }, + { + name = "containers_root" + host_path = "/var/lib/docker/containers/" + } + ] : [] + + # Container mount points for host volumes + dd_agent_mount = [ + { + sourceVolume = "docker_sock" + containerPath = "/var/run/docker.sock" + readOnly = true + }, + { + sourceVolume = "proc" + containerPath = "/host/proc" + readOnly = true + }, + { + sourceVolume = "cgroup" + containerPath = "/host/sys/fs/cgroup" + readOnly = true + } + ] + + # Additional mount points for log collection + dd_log_mounts = var.dd_log_collection.enabled ? [ + { + sourceVolume = "pointdir" + containerPath = "/opt/datadog-agent/run" + readOnly = false + }, + { + sourceVolume = "containers_root" + containerPath = "/var/lib/docker/containers" + readOnly = true + } + ] : [] + + # Merge user-provided volumes with Datadog host volumes + all_volumes = concat( + local.dd_host_volumes, + local.dd_log_volumes, + local.apm_dsd_volume, + var.volumes + ) +} + +################################################################################ +# Datadog Agent Environment Variables +################################################################################ + +locals { + # Base environment variables (always set) + base_env = [ + { + name = "DD_ECS_TASK_COLLECTION_ENABLED" + value = var.dd_orchestrator_explorer.enabled ? "true" : "false" + }, + { + name = "DD_INSTALL_INFO_TOOL" + value = local.install_info_tool + }, + { + name = "DD_INSTALL_INFO_TOOL_VERSION" + value = local.install_info_tool_version + }, + { + name = "DD_INSTALL_INFO_INSTALLER_VERSION" + value = local.install_info_installer_version + }, + { + name = "DD_LOG_FILE" + value = "/opt/datadog-agent/run/logs" + } + ] + + # Dynamic environment variables (only set if provided) + dynamic_env = [ + for pair in [ + { key = "DD_API_KEY", value = var.dd_api_key }, + { key = "DD_SITE", value = var.dd_site }, + { key = "DD_CHECKS_TAG_CARDINALITY", value = var.dd_checks_cardinality }, + { key = "DD_DOGSTATSD_TAG_CARDINALITY", value = var.dd_dogstatsd.dogstatsd_cardinality }, + { key = "DD_TAGS", value = var.dd_tags }, + { key = "DD_ORCHESTRATOR_EXPLORER_ORCHESTRATOR_DD_URL", value = var.dd_orchestrator_explorer.url }, + { key = "DD_LOG_LEVEL", value = var.dd_log_level }, + ] : { name = pair.key, value = pair.value } if pair.value != null + ] + + # EC2-specific environment variables (allow non-local traffic) + ec2_env = [ + { + name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" + value = var.dd_dogstatsd.enabled ? "true" : "false" + }, + { + name = "DD_APM_NON_LOCAL_TRAFFIC" + value = var.dd_apm.enabled ? "true" : "false" + } + ] + + # DogStatsD origin detection variables + origin_detection_vars = var.dd_dogstatsd.enabled && var.dd_dogstatsd.origin_detection_enabled ? [ + { + name = "DD_DOGSTATSD_ORIGIN_DETECTION" + value = "true" + }, + { + name = "DD_DOGSTATSD_ORIGIN_DETECTION_CLIENT" + value = "true" + } + ] : [] + + # APM configuration variables (agent-side only) + apm_vars = var.dd_apm.enabled ? [ + { + name = "DD_APM_ENABLED" + value = "true" + } + ] : [] + + # Process collection configuration variables + process_vars = var.dd_process_collection.enabled ? [ + { + name = "DD_PROCESS_AGENT_ENABLED" + value = "true" + } + ] : [] + + # Log collection configuration variables + logs_vars = var.dd_log_collection.enabled ? concat( + [ + { + name = "DD_LOGS_ENABLED" + value = "true" + }, + { + name = "DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL" + value = tostring(var.dd_log_collection.container_collect_all) + } + ], + length(var.dd_log_collection.container_include) > 0 ? [ + { + name = "DD_CONTAINER_INCLUDE_LOGS" + value = join(" ", var.dd_log_collection.container_include) + } + ] : [], + length(var.dd_log_collection.container_exclude) > 0 ? [ + { + name = "DD_CONTAINER_EXCLUDE_LOGS" + value = join(" ", var.dd_log_collection.container_exclude) + } + ] : [] + ) : [] + + # User-provided environment variables (highest precedence) + dd_environment = var.dd_environment != null ? var.dd_environment : [] + + # Combine all environment variables + dd_agent_env = concat( + local.base_env, + local.dynamic_env, + local.ec2_env, + local.origin_detection_vars, + local.apm_vars, + local.process_vars, + local.logs_vars, + local.dd_environment, + ) +} + +################################################################################ +# Datadog Agent Container Definition +################################################################################ + +locals { + # Conditional port mappings based on transport configuration + dd_port_mappings = concat( + var.dd_dogstatsd.enabled && var.dd_dogstatsd.tcp_enabled ? [ + { + containerPort = 8125 + hostPort = 8125 + protocol = "udp" + } + ] : [], + var.dd_apm.enabled && var.dd_apm.tcp_enabled ? [ + { + containerPort = 8126 + hostPort = 8126 + protocol = "tcp" + } + ] : [] + ) + + # Datadog Agent container + dd_agent_container = [ + merge( + { + name = "datadog-agent" + image = "${var.dd_registry}:${var.dd_image_version}" + essential = var.dd_essential + environment = local.dd_agent_env + dockerLabels = var.dd_docker_labels + cpu = var.dd_cpu + memory = var.dd_memory_limit_mib + + secrets = var.dd_api_key_secret != null ? [ + { + name = "DD_API_KEY" + valueFrom = var.dd_api_key_secret.arn + } + ] : [] + + portMappings = local.dd_port_mappings + + mountPoints = concat(local.dd_agent_mount, local.dd_log_mounts, local.apm_dsd_mount) + systemControls = [] + volumesFrom = [] + }, + try(var.dd_health_check.command == null, true) ? {} : { + healthCheck = { + command = var.dd_health_check.command + interval = var.dd_health_check.interval + timeout = var.dd_health_check.timeout + retries = var.dd_health_check.retries + startPeriod = var.dd_health_check.start_period + } + } + ) + ] +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/iam.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/iam.tf new file mode 100644 index 0000000..2b6d7fd --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/iam.tf @@ -0,0 +1,172 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +# ============================== +# Task Execution Role +# ============================== + +# Will create or edit the *task execution role* +# only if the user provides a Datadog API key secret ARN +# in order to provide permissions to access the secret + +locals { + create_dd_secret_perms = var.dd_api_key_secret != null && try(var.execution_role.add_dd_ecs_permissions, true) + edit_execution_role = var.execution_role != null && local.create_dd_secret_perms + create_execution_role = var.execution_role == null && local.create_dd_secret_perms + parsed_exec_role_name = var.execution_role == null ? null : split("/", var.execution_role.arn)[length(split("/", var.execution_role.arn)) - 1] +} + +# ============================== +# Datadog API Key Secret Policy (Optional) +# ============================== +data "aws_iam_policy_document" "dd_secret_access" { + count = local.create_dd_secret_perms ? 1 : 0 + + statement { + effect = "Allow" + actions = ["secretsmanager:GetSecretValue"] + resources = [var.dd_api_key_secret.arn] + } +} + +resource "aws_iam_policy" "dd_secret_access" { + count = local.create_dd_secret_perms ? 1 : 0 + name = "${var.family}-dd-secret-access" + policy = data.aws_iam_policy_document.dd_secret_access[0].json +} + +# ============================== +# Case 1: User provides existing Task Execution Role +# ============================== +resource "aws_iam_role_policy_attachment" "existing_role_dd_secret" { + count = local.edit_execution_role ? 1 : 0 + role = local.parsed_exec_role_name + policy_arn = aws_iam_policy.dd_secret_access[0].arn +} + +# ============================== +# Case 2: Create a Task Execution Role +# ============================== +resource "aws_iam_role" "new_ecs_task_execution_role" { + count = local.create_execution_role ? 1 : 0 + name = "${var.family}-ecs-task-exec-role" + + assume_role_policy = jsonencode({ + Version = "2012-10-17" + Statement = [{ + Effect = "Allow" + Principal = { + Service = "ecs-tasks.amazonaws.com" + } + Action = "sts:AssumeRole" + }] + }) +} + +locals { + new_execution_role_policy_map = merge( + { "AmazonECSTaskExecutionRolePolicy" = "arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy" }, + local.create_dd_secret_perms ? { "DDSecretAccess" = aws_iam_policy.dd_secret_access[0].arn } : {} + ) +} + +resource "aws_iam_role_policy_attachment" "new_ecs_task_execution_role_policy" { + for_each = local.create_execution_role ? local.new_execution_role_policy_map : {} + role = aws_iam_role.new_ecs_task_execution_role[0].name + policy_arn = each.value +} + +# ============================== +# Task Role +# ============================== + +# Will create or edit the *task role* always +# in order to add permissions for ECS and EC2 metadata collection + +locals { + edit_task_role = var.task_role != null && try(var.task_role.add_dd_ecs_permissions, true) + create_task_role = var.task_role == null + parsed_task_role_name = var.task_role == null ? null : split("/", var.task_role.arn)[length(split("/", var.task_role.arn)) - 1] +} + +# ============================== +# ECS and EC2 Task Permissions Policy +# ============================== +data "aws_iam_policy_document" "dd_ecs_task_permissions" { + count = local.create_task_role || local.edit_task_role ? 1 : 0 + + # ECS metadata collection permissions + statement { + effect = "Allow" + actions = [ + "ecs:ListClusters", + "ecs:ListContainerInstances", + "ecs:DescribeContainerInstances", + "ecs:DescribeTasks", + "ecs:ListTasks" + ] + resources = ["*"] + } + + # EC2 instance metadata collection permissions + statement { + effect = "Allow" + actions = [ + "ec2:DescribeInstances", + "ec2:DescribeTags" + ] + resources = ["*"] + } +} + +resource "aws_iam_policy" "dd_ecs_task_permissions" { + count = local.create_task_role || local.edit_task_role ? 1 : 0 + name = "${var.family}-dd-ecs-task-policy" + policy = data.aws_iam_policy_document.dd_ecs_task_permissions[0].json +} + +# ============================== +# Case 1: User provides existing Task Role +# ============================== +# Always attach `dd_ecs_task_permissions` +resource "aws_iam_role_policy_attachment" "existing_role_ecs_task_permissions" { + count = local.edit_task_role ? 1 : 0 + role = local.parsed_task_role_name + policy_arn = aws_iam_policy.dd_ecs_task_permissions[0].arn +} + + +# ============================== +# Case 2: Create a Task Role +# ============================== + +resource "aws_iam_role" "new_ecs_task_role" { + count = local.create_task_role ? 1 : 0 + name = "${var.family}-ecs-task-role" + + assume_role_policy = jsonencode({ + Version = "2012-10-17" + Statement = [{ + Effect = "Allow" + Principal = { + Service = "ecs-tasks.amazonaws.com" + } + Action = "sts:AssumeRole" + }] + }) +} + +# Always attach `dd_ecs_task_permissions` +locals { + new_task_role_policy_map = { + "DDECSTaskPermissions" = local.create_task_role ? aws_iam_policy.dd_ecs_task_permissions[0].arn : null + } +} + +resource "aws_iam_role_policy_attachment" "new_role_ecs_task_permissions" { + for_each = local.create_task_role ? local.new_task_role_policy_map : {} + role = aws_iam_role.new_ecs_task_role[0].name + policy_arn = each.value +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/main.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/main.tf new file mode 100644 index 0000000..b1c233b --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/main.tf @@ -0,0 +1,152 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +################################################################################ +# Task Definition +################################################################################ + +resource "aws_ecs_task_definition" "datadog_agent" { + family = var.family + + container_definitions = jsonencode(local.dd_agent_container) + + # EC2 launch type + requires_compatibilities = ["EC2"] + + # Network configuration + network_mode = var.network_mode + ipc_mode = var.ipc_mode + pid_mode = var.pid_mode + + # IAM roles - prioritize user-provided over module-created + execution_role_arn = try( + var.execution_role.arn, + aws_iam_role.new_ecs_task_execution_role[0].arn, + null + ) + + task_role_arn = try( + var.task_role.arn, + aws_iam_role.new_ecs_task_role[0].arn, + null + ) + + # Runtime platform + dynamic "runtime_platform" { + for_each = var.runtime_platform != null ? [var.runtime_platform] : [] + + content { + cpu_architecture = try(runtime_platform.value.cpu_architecture, null) + operating_system_family = try(runtime_platform.value.operating_system_family, null) + } + } + + # Placement constraints + dynamic "placement_constraints" { + for_each = var.placement_constraints != null ? var.placement_constraints : [] + + content { + expression = try(placement_constraints.value.expression, null) + type = placement_constraints.value.type + } + } + + # Proxy configuration + dynamic "proxy_configuration" { + for_each = var.proxy_configuration != null ? [var.proxy_configuration] : [] + + content { + container_name = proxy_configuration.value.container_name + properties = try(proxy_configuration.value.properties, null) + type = try(proxy_configuration.value.type, null) + } + } + + # Volumes - includes Datadog host volumes and user-provided volumes + dynamic "volume" { + for_each = local.all_volumes + + content { + name = volume.value.name + host_path = try(volume.value.host_path, null) + + dynamic "docker_volume_configuration" { + for_each = try(volume.value.docker_volume_configuration != null ? [volume.value.docker_volume_configuration] : [], []) + + content { + autoprovision = try(docker_volume_configuration.value.autoprovision, null) + driver = try(docker_volume_configuration.value.driver, null) + driver_opts = try(docker_volume_configuration.value.driver_opts, null) + labels = try(docker_volume_configuration.value.labels, null) + scope = try(docker_volume_configuration.value.scope, null) + } + } + + dynamic "efs_volume_configuration" { + for_each = try(volume.value.efs_volume_configuration != null ? [volume.value.efs_volume_configuration] : [], []) + + content { + dynamic "authorization_config" { + for_each = try(efs_volume_configuration.value.authorization_config != null ? [efs_volume_configuration.value.authorization_config] : [], []) + + content { + access_point_id = try(authorization_config.value.access_point_id, null) + iam = try(authorization_config.value.iam, null) + } + } + + file_system_id = efs_volume_configuration.value.file_system_id + root_directory = try(efs_volume_configuration.value.root_directory, null) + transit_encryption = try(efs_volume_configuration.value.transit_encryption, null) + transit_encryption_port = try(efs_volume_configuration.value.transit_encryption_port, null) + } + } + } + } + + skip_destroy = var.skip_destroy + track_latest = var.track_latest + tags = merge(var.tags, local.tags) + + # Ensure IAM roles are created before task definition + depends_on = [ + aws_iam_role.new_ecs_task_role, + aws_iam_role.new_ecs_task_execution_role, + ] + + lifecycle { + create_before_destroy = true + + # Must provide exactly one of the two Datadog API key options + precondition { + condition = (var.dd_api_key == null && var.dd_api_key_secret != null) || (var.dd_api_key != null && var.dd_api_key_secret == null) + error_message = "You must provide exactly one of the two Datadog API key options: 'dd_api_key' or 'dd_api_key_secret'." + } + + # Validate cluster_arn is provided when service creation is enabled + precondition { + condition = var.create_service == false || (var.create_service == true && var.cluster_arn != null) + error_message = "cluster_arn must be provided when create_service is true." + } + + # Windows is not yet fully supported + precondition { + condition = local.is_linux || (var.dd_log_collection.enabled == false) + error_message = "Log collection is not supported on Windows. Please set dd_log_collection.enabled to false." + } + + # DogStatsD must have at least one transport configured when enabled + precondition { + condition = !var.dd_dogstatsd.enabled || var.dd_dogstatsd.socket_enabled || var.dd_dogstatsd.tcp_enabled + error_message = "DogStatsD is enabled but neither UDS (socket_enabled) nor TCP (tcp_enabled) transport is configured. Set at least one to true." + } + + # APM must have at least one transport configured when enabled + precondition { + condition = !var.dd_apm.enabled || var.dd_apm.socket_enabled || var.dd_apm.tcp_enabled + error_message = "APM is enabled but neither UDS (socket_enabled) nor TCP (tcp_enabled) transport is configured. Set at least one to true." + } + } +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/outputs.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/outputs.tf new file mode 100644 index 0000000..205796d --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/outputs.tf @@ -0,0 +1,188 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +################################################################################ +# Task Definition Outputs +################################################################################ + +output "container_definitions" { + description = "A list of valid container definitions provided as a single valid JSON document." + value = aws_ecs_task_definition.datadog_agent.container_definitions +} + +output "execution_role_arn" { + description = "ARN of the task execution role." + value = aws_ecs_task_definition.datadog_agent.execution_role_arn +} + +output "family" { + description = "A unique name for your task definition." + value = aws_ecs_task_definition.datadog_agent.family +} + +output "ipc_mode" { + description = "IPC resource namespace to be used for the containers." + value = aws_ecs_task_definition.datadog_agent.ipc_mode +} + +output "network_mode" { + description = "Docker networking mode to use for the containers." + value = aws_ecs_task_definition.datadog_agent.network_mode +} + +output "pid_mode" { + description = "Process namespace to use for the containers." + value = aws_ecs_task_definition.datadog_agent.pid_mode +} + +output "placement_constraints" { + description = "Rules that are taken into consideration during task placement." + value = aws_ecs_task_definition.datadog_agent.placement_constraints +} + +output "proxy_configuration" { + description = "Configuration block for the App Mesh proxy." + value = aws_ecs_task_definition.datadog_agent.proxy_configuration +} + +output "requires_compatibilities" { + description = "Set of launch types required by the task." + value = aws_ecs_task_definition.datadog_agent.requires_compatibilities +} + +output "skip_destroy" { + description = "Whether to retain the old revision when the resource is destroyed or replacement is necessary." + value = aws_ecs_task_definition.datadog_agent.skip_destroy +} + +output "tags" { + description = "Key-value map of resource tags." + value = aws_ecs_task_definition.datadog_agent.tags +} + +output "task_role_arn" { + description = "ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services." + value = aws_ecs_task_definition.datadog_agent.task_role_arn +} + +output "track_latest" { + description = "Whether should track latest ACTIVE task definition on AWS or the one created with the resource stored in state." + value = aws_ecs_task_definition.datadog_agent.track_latest +} + +output "volume" { + description = "Configuration block for volumes that containers in your task may use." + value = aws_ecs_task_definition.datadog_agent.volume +} + +# Attribute reference outputs + +output "arn" { + description = "Full ARN of the Task Definition (including both family and revision)." + value = aws_ecs_task_definition.datadog_agent.arn +} + +output "arn_without_revision" { + description = "ARN of the Task Definition with the trailing revision removed." + value = aws_ecs_task_definition.datadog_agent.arn_without_revision +} + +output "revision" { + description = "Revision of the task in a particular family." + value = aws_ecs_task_definition.datadog_agent.revision +} + +output "tags_all" { + description = "Map of tags assigned to the resource, including inherited tags." + value = aws_ecs_task_definition.datadog_agent.tags_all +} + +################################################################################ +# Service Outputs (Conditional) +################################################################################ + +output "service_id" { + description = "ARN that identifies the service. Only available if create_service = true." + value = try(aws_ecs_service.datadog_agent[0].id, null) +} + +output "service_name" { + description = "Name of the service. Only available if create_service = true." + value = try(aws_ecs_service.datadog_agent[0].name, null) +} + +output "service_cluster" { + description = "ARN of cluster which the service runs on. Only available if create_service = true." + value = try(aws_ecs_service.datadog_agent[0].cluster, null) +} + +output "service_desired_count" { + description = "Number of instances of the task definition. Only available if create_service = true." + value = try(aws_ecs_service.datadog_agent[0].desired_count, null) +} + +################################################################################ +# Helper Outputs for User Tasks +################################################################################ + +output "dogstatsd_env_vars" { + description = "Environment variables for DogStatsD in user application containers. When UDS is enabled (socket_enabled = true), provides DD_DOGSTATSD_URL pointing to the Unix socket. When UDS is disabled, returns an empty list — you must set DD_AGENT_HOST dynamically at container startup via IMDSv2 (http://169.254.169.254/latest/meta-data/local-ipv4) or the ECS container metadata file ($ECS_CONTAINER_METADATA_FILE → .HostPrivateIPv4Address)." + value = local.is_dsd_socket_mount ? [ + { + name = "DD_DOGSTATSD_URL" + value = "unix:///var/run/datadog/dsd.socket" + } + ] : [] +} + +output "apm_env_vars" { + description = "Environment variables for APM in user application containers. When UDS is enabled (socket_enabled = true), provides DD_TRACE_AGENT_URL pointing to the Unix socket. When UDS is disabled, returns an empty list — you must set DD_AGENT_HOST dynamically at container startup via IMDSv2 (http://169.254.169.254/latest/meta-data/local-ipv4) or the ECS container metadata file ($ECS_CONTAINER_METADATA_FILE → .HostPrivateIPv4Address)." + value = local.is_apm_socket_mount ? [ + { + name = "DD_TRACE_AGENT_URL" + value = "unix:///var/run/datadog/apm.socket" + } + ] : [] +} + +output "app_dd_sockets_mount" { + description = "Mount point for the shared UDS socket volume. Add this to your application container's mountPoints to enable communication with the Datadog Agent over Unix Domain Sockets." + value = local.apm_dsd_mount +} + +output "app_dd_sockets_volume" { + description = "Volume definition for the shared UDS socket volume. Add this to your application task definition's volumes to enable UDS communication with the Datadog Agent." + value = local.apm_dsd_volume +} + +output "profiling_env_vars" { + description = "Environment variables for profiling configuration in user application containers. Only includes values when enabled." + value = var.dd_apm.profiling ? [ + { + name = "DD_PROFILING_ENABLED" + value = "true" + } + ] : [] +} + +output "trace_inferred_proxy_env_vars" { + description = "Environment variables for trace inferred proxy services in user application containers. Only includes values when enabled." + value = var.dd_apm.trace_inferred_proxy_services ? [ + { + name = "DD_TRACE_INFERRED_PROXY_SERVICES_ENABLED" + value = "true" + } + ] : [] +} + +output "data_streams_env_vars" { + description = "Environment variables for Data Streams Monitoring in user application containers. Only includes values when enabled." + value = var.dd_apm.data_streams ? [ + { + name = "DD_DATA_STREAMS_ENABLED" + value = "true" + } + ] : [] +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/service.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/service.tf new file mode 100644 index 0000000..17b8744 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/service.tf @@ -0,0 +1,59 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +################################################################################ +# ECS Daemon Service +################################################################################ + +locals { + # Service name defaults to -datadog-agent if not provided + service_name = var.service_name != null ? var.service_name : "${var.family}-datadog-agent" +} + +resource "aws_ecs_service" "datadog_agent" { + count = var.create_service ? 1 : 0 + + name = local.service_name + cluster = var.cluster_arn + + # Use latest task definition revision + task_definition = aws_ecs_task_definition.datadog_agent.arn + + # Daemon scheduling strategy - one agent per EC2 instance + launch_type = "EC2" + scheduling_strategy = "DAEMON" + + # Placement constraints + dynamic "placement_constraints" { + for_each = var.service_placement_constraints + + content { + type = placement_constraints.value.type + expression = try(placement_constraints.value.expression, null) + } + } + + # Service discovery + dynamic "service_registries" { + for_each = var.service_registries != null ? [var.service_registries] : [] + + content { + registry_arn = service_registries.value.registry_arn + container_name = try(service_registries.value.container_name, "datadog-agent") + container_port = try(service_registries.value.container_port, null) + } + } + + # ECS managed tags and propagation + enable_ecs_managed_tags = var.enable_ecs_managed_tags + propagate_tags = var.propagate_tags + + tags = merge(var.tags, local.tags) + + # Ensure task definition is created before service + depends_on = [ + aws_ecs_task_definition.datadog_agent + ] +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/variables.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/variables.tf new file mode 100644 index 0000000..45fd325 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/variables.tf @@ -0,0 +1,432 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +################################################################################ +# Datadog ECS EC2 Configuration +################################################################################ + +variable "runtime_platform" { + description = "Configuration for the runtime platform of the ECS task. Used to determine OS-specific agent configuration. Currently only Linux is fully supported; Windows support is planned (EXP-242)." + type = object({ + operating_system_family = optional(string, "LINUX") + cpu_architecture = optional(string, "X86_64") + }) + default = null +} + +variable "dd_api_key" { + description = "Datadog API Key" + type = string + default = null + sensitive = true +} + +variable "dd_api_key_secret" { + description = "Datadog API Key Secret ARN" + type = object({ + arn = string + }) + default = null + validation { + condition = var.dd_api_key_secret == null || try(var.dd_api_key_secret.arn != null, false) + error_message = "If 'dd_api_key_secret' is set, 'arn' must be a non-null string." + } +} + +variable "dd_registry" { + description = "Datadog Agent image registry" + type = string + default = "public.ecr.aws/datadog/agent" + nullable = false +} + +variable "dd_image_version" { + description = "Datadog Agent image version" + type = string + default = "latest" + nullable = false +} + +variable "dd_cpu" { + description = "Datadog Agent container CPU units" + type = number + default = 256 + nullable = false +} + +variable "dd_memory_limit_mib" { + description = "Datadog Agent container memory limit in MiB" + type = number + default = 512 + nullable = false +} + +variable "dd_essential" { + description = "Whether the Datadog Agent container is essential" + type = bool + default = true + nullable = false +} + +variable "dd_health_check" { + description = "Datadog Agent health check configuration" + type = object({ + command = optional(list(string)) + interval = optional(number) + retries = optional(number) + start_period = optional(number) + timeout = optional(number) + }) + default = { + command = ["CMD-SHELL", "/probe.sh"] + interval = 15 + retries = 3 + start_period = 60 + timeout = 5 + } +} + +variable "dd_site" { + description = "Datadog Site" + type = string + default = "datadoghq.com" +} + +variable "dd_environment" { + description = "Datadog Agent container environment variables. Highest precedence and overwrites other environment variables defined by the module. For example, `dd_environment = [ { name = 'DD_VAR', value = 'DD_VAL' } ]`" + type = list(map(string)) + default = [{}] + nullable = false +} + +variable "dd_docker_labels" { + description = "Datadog Agent container docker labels" + type = map(string) + default = {} +} + +variable "dd_tags" { + description = "Datadog Agent global tags (eg. `key1:value1, key2:value2`)" + type = string + default = null +} + +variable "dd_checks_cardinality" { + description = "Datadog Agent checks cardinality" + type = string + default = null + validation { + condition = var.dd_checks_cardinality == null || can(contains(["low", "orchestrator", "high"], var.dd_checks_cardinality)) + error_message = "The Datadog Agent checks cardinality must be one of 'low', 'orchestrator', 'high', or null." + } +} + +variable "dd_dogstatsd" { + description = "Configuration for Datadog DogStatsD" + type = object({ + enabled = optional(bool, true) + origin_detection_enabled = optional(bool, true) + dogstatsd_cardinality = optional(string, "orchestrator") + socket_enabled = optional(bool, true) + tcp_enabled = optional(bool, true) + }) + default = { + enabled = true + origin_detection_enabled = true + dogstatsd_cardinality = "orchestrator" + socket_enabled = true + tcp_enabled = true + } + validation { + condition = var.dd_dogstatsd != null + error_message = "The Datadog Dogstatsd configuration must be defined." + } + validation { + condition = try(var.dd_dogstatsd.dogstatsd_cardinality == null, false) || can(contains(["low", "orchestrator", "high"], var.dd_dogstatsd.dogstatsd_cardinality)) + error_message = "The Datadog Dogstatsd cardinality must be one of 'low', 'orchestrator', 'high', or null." + } +} + +variable "dd_apm" { + description = "Configuration for Datadog APM" + type = object({ + enabled = optional(bool, true) + socket_enabled = optional(bool, true) + tcp_enabled = optional(bool, true) + profiling = optional(bool, false) + trace_inferred_proxy_services = optional(bool, false) + data_streams = optional(bool, false) + }) + default = { + enabled = true + socket_enabled = true + tcp_enabled = true + profiling = false + trace_inferred_proxy_services = false + data_streams = false + } + validation { + condition = var.dd_apm != null + error_message = "The Datadog APM configuration must be defined." + } +} + +variable "dd_log_collection" { + description = "Configuration for Datadog Log Collection via the agent" + type = object({ + enabled = optional(bool, false) + container_collect_all = optional(bool, true) + container_include = optional(list(string), []) + container_exclude = optional(list(string), []) + }) + default = { + enabled = false + } + validation { + condition = var.dd_log_collection != null + error_message = "The Datadog Log Collection configuration must be defined." + } +} + +variable "dd_orchestrator_explorer" { + description = "Configuration for Datadog Orchestrator Explorer" + type = object({ + enabled = optional(bool, true) + url = optional(string) + }) + default = { + enabled = true + } + validation { + condition = var.dd_orchestrator_explorer != null + error_message = "The Datadog Orchestrator Explorer configuration must be defined." + } +} + +variable "dd_process_collection" { + description = "Configuration for Datadog Live Process collection" + type = object({ + enabled = optional(bool, false) + }) + default = { + enabled = false + } + validation { + condition = var.dd_process_collection != null + error_message = "The Datadog Process Collection configuration must be defined." + } +} + +variable "dd_log_level" { + description = "Set logging verbosity for Datadog agent. Valid values: trace, debug, info, warn, error, critical, off" + type = string + default = "info" + validation { + condition = contains(["trace", "debug", "info", "warn", "error", "critical", "off"], var.dd_log_level) + error_message = "dd_log_level must be one of: trace, debug, info, warn, error, critical, off" + } +} + +variable "dd_docker_socket_path" { + description = "Path to Docker socket on the host. Defaults to /var/run/docker.sock" + type = string + default = "/var/run/docker.sock" + nullable = false +} + +variable "dd_proc_path" { + description = "Path to /proc directory on the host. Defaults to /proc/" + type = string + default = "/proc/" + nullable = false +} + +variable "dd_cgroup_path" { + description = "Path to cgroup directory on the host. Defaults to /sys/fs/cgroup/. Use /cgroup/ for Amazon Linux 1 instances." + type = string + default = "/sys/fs/cgroup/" + nullable = false +} + +################################################################################ +# ECS Service Configuration (Daemon) +################################################################################ + +variable "create_service" { + description = "Whether to create the ECS daemon service. If false, only the task definition is created." + type = bool + default = true + nullable = false +} + +variable "cluster_arn" { + description = "ARN of the ECS cluster where the Datadog agent daemon service will run. Required if create_service = true." + type = string + default = null +} + +variable "service_name" { + description = "Name of the ECS daemon service. Defaults to '-datadog-agent'" + type = string + default = null +} + +variable "service_placement_constraints" { + description = "Placement constraints for the daemon service (e.g., instance type, availability zone)" + type = list(object({ + type = string + expression = optional(string) + })) + default = [] +} + +variable "service_registries" { + description = "Service discovery registries for the daemon service" + type = object({ + registry_arn = string + container_name = optional(string) + container_port = optional(number) + }) + default = null +} + +variable "enable_ecs_managed_tags" { + description = "Enable ECS managed tags for the daemon service" + type = bool + default = true + nullable = false +} + +variable "propagate_tags" { + description = "Propagate tags from task definition or service to tasks. Valid values: TASK_DEFINITION, SERVICE, NONE" + type = string + default = "SERVICE" + validation { + condition = contains(["TASK_DEFINITION", "SERVICE", "NONE"], var.propagate_tags) + error_message = "propagate_tags must be one of: TASK_DEFINITION, SERVICE, NONE" + } +} + +################################################################################ +# Task Definition +################################################################################ + +variable "family" { + description = "A unique name for your task definition" + type = string +} + +variable "network_mode" { + description = "Docker networking mode to use for the containers in the task. Valid values are `bridge` and `host`" + type = string + default = "bridge" + validation { + condition = contains(["bridge", "host"], var.network_mode) + error_message = "network_mode must be 'bridge' or 'host' for EC2 launch type" + } +} + +variable "ipc_mode" { + description = "IPC resource namespace to be used for the containers in the task The valid values are `host`, `task`, and `none`" + type = string + default = null +} + +variable "pid_mode" { + description = "Process namespace to use for the containers in the task. The valid values are `host` and `task`" + type = string + default = null +} + +variable "placement_constraints" { + description = "Configuration list for rules that are taken into consideration during task placement (up to max of 10)" + type = list(object({ + type = string + expression = string + })) + default = [] +} + +variable "proxy_configuration" { + description = "Configuration for the App Mesh proxy" + type = object({ + container_name = string + properties = map(any) + type = optional(string, "APPMESH") + }) + default = null +} + +variable "skip_destroy" { + description = "Whether to retain the old revision when the resource is destroyed or replacement is necessary" + type = bool + default = false +} + +variable "tags" { + description = "A map of additional tags to add to the task definition/service created" + type = map(string) + default = null +} + +variable "execution_role" { + description = "ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume. Contains:\n - `arn` (string): The ARN of the IAM role.\n - `add_dd_ecs_permissions` (bool): Whether to automatically add Datadog ECS permissions to the role to fetch container and cluster metadata." + type = object({ + arn = string + add_dd_ecs_permissions = optional(bool, true) + }) + default = null + validation { + condition = var.execution_role == null || try(var.execution_role.arn != null, false) + error_message = "If 'execution_role' is set, 'arn' must be a non-null string." + } +} + +variable "task_role" { + description = "The ARN of the IAM role that allows your Amazon ECS container task to make calls to other AWS services. Contains:\n - `arn` (string): The ARN of the IAM role.\n - `add_dd_ecs_permissions` (bool): Whether to automatically add Datadog ECS permissions to the role to fetch a provided Datadog API key secret." + type = object({ + arn = string + add_dd_ecs_permissions = optional(bool, true) + }) + default = null + validation { + condition = var.task_role == null || try(var.task_role.arn != null, false) + error_message = "If 'task_role' is set, 'arn' must be a non-null string." + } +} + +variable "track_latest" { + description = "Whether should track latest ACTIVE task definition on AWS or the one created with the resource stored in state" + type = bool + default = false +} + +variable "volumes" { + description = "A list of volume definitions that containers in your task may use" + type = list(object({ + name = string + host_path = optional(string) + + docker_volume_configuration = optional(object({ + autoprovision = optional(bool) + driver = optional(string) + driver_opts = optional(map(any)) + labels = optional(map(any)) + scope = optional(string) + })) + + efs_volume_configuration = optional(object({ + file_system_id = string + root_directory = optional(string) + transit_encryption = optional(string) + transit_encryption_port = optional(number) + authorization_config = optional(object({ + access_point_id = optional(string) + iam = optional(string) + })) + })) + })) + default = [] +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/versions.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/versions.tf new file mode 100644 index 0000000..0360c39 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_ec2/input/versions.tf @@ -0,0 +1,15 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +terraform { + required_version = ">= 1.5.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.85.0" + } + } +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/LICENSE b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/LICENSE new file mode 100644 index 0000000..1dfdc0b --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/LICENSE @@ -0,0 +1,200 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2025-present Datadog, Inc. + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/NOTICE b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/NOTICE new file mode 100644 index 0000000..d24b082 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/NOTICE @@ -0,0 +1,4 @@ +Datadog terraform-aws-ecs-datadog +Copyright 2025 Datadog, Inc. + +This product includes software developed at Datadog (https://www.datadoghq.com/). \ No newline at end of file diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/fixture.json b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/fixture.json new file mode 100644 index 0000000..dad9984 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/fixture.json @@ -0,0 +1,39 @@ +{ + "schema": 1, + "id": "registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/DataDog/ecs-datadog/aws/1.2.2", + "ref": "1.2.2", + "path": "modules/ecs_fargate", + "archiveSha256": "e71fa690237d3918ba3992708a68db5879ddb27b5f778c99a3a5f43403751a6e", + "inputSha256": "d0353ae9d51ce643eda8b1ece7f8e15f5f2770e8622931e20fb57bedc253df42" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "depends_on", + "dynamic", + "for_each", + "for_expressions", + "functions", + "interpolation", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/datadog.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/datadog.tf new file mode 100644 index 0000000..8b10b2f --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/datadog.tf @@ -0,0 +1,497 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +# Version and Install Info +locals { + # Datadog ECS task tags + version = "1.1.1" + + install_info_tool = "terraform" + install_info_tool_version = "terraform-aws-ecs-datadog/ecs-fargate" + install_info_installer_version = local.version + + # AWS Resource Tags + tags = { + dd_ecs_terraform_module = local.version + } +} + +locals { + + is_linux = var.runtime_platform == null || try(var.runtime_platform.operating_system_family == null, true) || try(var.runtime_platform.operating_system_family == "LINUX", true) + is_fluentbit_supported = var.dd_log_collection.enabled && local.is_linux + + # Datadog Firelens log configuration + dd_firelens_log_configuration = local.is_fluentbit_supported ? merge( + { + logDriver = "awsfirelens" + options = merge( + { + provider = "ecs" + Name = "datadog" + Host = var.dd_log_collection.fluentbit_config.log_driver_configuration.host_endpoint + retry_limit = "2" + }, + var.dd_log_collection.fluentbit_config.log_driver_configuration.tls == true ? { TLS = "on" } : {}, + var.dd_log_collection.fluentbit_config.log_driver_configuration.service_name != null ? { dd_service = var.dd_log_collection.fluentbit_config.log_driver_configuration.service_name } : {}, + var.dd_log_collection.fluentbit_config.log_driver_configuration.source_name != null ? { dd_source = var.dd_log_collection.fluentbit_config.log_driver_configuration.source_name } : {}, + var.dd_log_collection.fluentbit_config.log_driver_configuration.message_key != null ? { dd_message_key = var.dd_log_collection.fluentbit_config.log_driver_configuration.message_key } : {}, + var.dd_log_collection.fluentbit_config.log_driver_configuration.compress != null ? { compress = var.dd_log_collection.fluentbit_config.log_driver_configuration.compress } : {}, + var.dd_tags != null ? { dd_tags = var.dd_tags } : {}, + var.dd_api_key != null ? { apikey = var.dd_api_key } : {} + ) + }, + var.dd_api_key_secret != null ? { + secretOptions = [ + { + name = "apikey" + valueFrom = var.dd_api_key_secret.arn + } + ] + } : {} + ) : null + + # Application container modifications + is_apm_socket_mount = var.dd_apm.enabled && var.dd_apm.socket_enabled && local.is_linux + is_dsd_socket_mount = var.dd_dogstatsd.enabled && var.dd_dogstatsd.socket_enabled && local.is_linux + is_apm_dsd_volume = local.is_apm_socket_mount || local.is_dsd_socket_mount + + cws_entry_point_prefix = ["/cws-instrumentation-volume/cws-instrumentation", "trace", "--"] + is_cws_supported = local.is_linux && var.dd_cws.enabled + + cws_mount = local.is_cws_supported ? [ + { + sourceVolume = "cws-instrumentation-volume" + containerPath = "/cws-instrumentation-volume" + readOnly = false + } + ] : [] + + apm_dsd_mount = local.is_apm_dsd_volume ? [ + { + containerPath = "/var/run/datadog" + sourceVolume = "dd-sockets" + readOnly = false + } + ] : [] + + dd_agent_mount = concat( + local.apm_dsd_mount, + var.dd_readonly_root_filesystem ? [ + { + containerPath = "/etc/datadog-agent" + sourceVolume = "agent-config" + readOnly = false + }, + { + containerPath = "/tmp" + sourceVolume = "agent-tmp" + readOnly = false + }, + { + containerPath = "/opt/datadog-agent/run" + sourceVolume = "agent-run" + readOnly = false + } + ] : [] + ) + + apm_socket_var = local.is_apm_socket_mount ? [ + { + name = "DD_TRACE_AGENT_URL" + value = "unix:///var/run/datadog/apm.socket" + } + ] : [] + + dsd_socket_var = local.is_dsd_socket_mount ? [ + { + name = "DD_DOGSTATSD_URL" + value = "unix:///var/run/datadog/dsd.socket" + } + ] : [] + + dsd_port_var = !local.is_dsd_socket_mount && var.dd_dogstatsd.enabled ? [ + { + name = "DD_AGENT_HOST" + value = "127.0.0.1" + } + ] : [] + + ust_env_vars = concat( + var.dd_env != null ? [ + { + name = "DD_ENV" + value = var.dd_env + } + ] : [], + var.dd_service != null ? [ + { + name = "DD_SERVICE" + value = var.dd_service + } + ] : [], + var.dd_version != null ? [ + { + name = "DD_VERSION" + value = var.dd_version + } + ] : [], + ) + + ust_docker_labels = merge( + var.dd_env != null ? { + "com.datadoghq.tags.env" = var.dd_env + } : {}, + var.dd_service != null ? { + "com.datadoghq.tags.service" = var.dd_service + } : {}, + var.dd_version != null ? { + "com.datadoghq.tags.version" = var.dd_version + } : {}, + ) + + application_env_vars = concat( + var.dd_apm.profiling != null ? [ + { + name = "DD_PROFILING_ENABLED" + value = tostring(var.dd_apm.profiling) + } + ] : [], + var.dd_apm.trace_inferred_proxy_services != null ? [ + { + name = "DD_TRACE_INFERRED_PROXY_SERVICES_ENABLED" + value = tostring(var.dd_apm.trace_inferred_proxy_services) + } + ] : [], + var.dd_apm.data_streams != null ? [ + { + name = "DD_DATA_STREAMS_ENABLED" + value = tostring(var.dd_apm.data_streams) + } + ] : [], + ) + + agent_dependency = var.dd_is_datadog_dependency_enabled && try(var.dd_health_check.command != null, false) ? [ + { + containerName = "datadog-agent" + condition = "HEALTHY" + } + ] : [] + + log_router_dependency = try(var.dd_log_collection.fluentbit_config.is_log_router_dependency_enabled, false) && try(var.dd_log_collection.fluentbit_config.log_router_health_check.command != null, false) && local.dd_firelens_log_configuration != null ? [ + { + containerName = "datadog-log-router" + condition = "HEALTHY" + } + ] : [] + + cws_dependency = local.is_cws_supported ? [ + { + containerName = "cws-instrumentation-init" + condition = "SUCCESS" + } + ] : [] + + modified_container_definitions = [ + for container in jsondecode(var.container_definitions) : merge( + container, + # Note: only configure CWS on container if entryPoint is set + { + # Append new environment variables to any existing ones. + environment = concat( + lookup(container, "environment", []), + local.dsd_socket_var, + local.apm_socket_var, + local.dsd_port_var, + local.ust_env_vars, + local.application_env_vars, + ), + # Merge UST docker labels with any existing docker labels. + dockerLabels = merge( + lookup(container, "dockerLabels", {}), + local.ust_docker_labels, + ), + # Append new volume mounts to any existing mountPoints. + mountPoints = concat( + lookup(container, "mountPoints", []), + local.apm_dsd_mount, + local.is_cws_supported && lookup(container, "entryPoint", []) != [] ? local.cws_mount : [], + ) + dependsOn = concat( + lookup(container, "dependsOn", []), + local.agent_dependency, + local.log_router_dependency, + local.is_cws_supported && lookup(container, "entryPoint", []) != [] ? local.cws_dependency : [], + ) + }, + # Only override the log configuration if the Datadog firelens configuration exists + local.dd_firelens_log_configuration != null ? { + logConfiguration = local.dd_firelens_log_configuration + } : {}, + + # Only override CWS related configuration if the configuration is proper + local.is_cws_supported && lookup(container, "entryPoint", []) != [] ? { + entryPoint = concat(local.cws_entry_point_prefix, lookup(container, "entryPoint", [])) + } : {}, + + local.is_cws_supported && lookup(container, "entryPoint", []) != [] ? { + # Note: SYS_PTRACE is the only linux capability available on Fargate + linuxParameters = { + capabilities = { + add = [ + "SYS_PTRACE", + ] + drop = [] + } + } + } : {}, + ) + ] + + rofs_volumes = var.dd_readonly_root_filesystem ? [ + { + name = "agent-config" + }, + { + name = "agent-tmp" + }, + { + name = "agent-run" + } + ] : [] + + # Volume configuration for task + apm_dsd_volume = local.is_apm_dsd_volume ? [ + { + name = "dd-sockets" + } + ] : [] + + cws_volume = local.is_cws_supported ? [ + { + name = "cws-instrumentation-volume" + } + ] : [] + + modified_volumes = concat( + [for k, v in coalesce(var.volumes, []) : v], + local.rofs_volumes, + local.apm_dsd_volume, + local.cws_volume, + ) + + # Datadog Agent container environment variables + base_env = [ + { + name = "ECS_FARGATE" + value = "true" + }, + { + name = "DD_ECS_TASK_COLLECTION_ENABLED" + value = var.dd_orchestrator_explorer.enabled ? "true" : "false" + }, + { + name = "DD_INSTALL_INFO_TOOL" + value = local.install_info_tool + }, + { + name = "DD_INSTALL_INFO_TOOL_VERSION" + value = local.install_info_tool_version + }, + { + name = "DD_INSTALL_INFO_INSTALLER_VERSION" + value = local.install_info_installer_version + }, + { + name = "DD_LOG_FILE" + value = "/opt/datadog-agent/run/logs" + } + ] + + dynamic_env = [ + for pair in [ + { key = "DD_API_KEY", value = var.dd_api_key }, + { key = "DD_SITE", value = var.dd_site }, + { key = "DD_DOGSTATSD_TAG_CARDINALITY", value = var.dd_dogstatsd.dogstatsd_cardinality }, + { key = "DD_TAGS", value = var.dd_tags }, + { key = "DD_CLUSTER_NAME", value = var.dd_cluster_name }, + { key = "DD_ORCHESTRATOR_EXPLORER_ORCHESTRATOR_DD_URL", value = var.dd_orchestrator_explorer.url }, + ] : { name = pair.key, value = pair.value } if pair.value != null + ] + + origin_detection_vars = var.dd_dogstatsd.enabled && var.dd_dogstatsd.origin_detection_enabled ? [ + { + name = "DD_DOGSTATSD_ORIGIN_DETECTION" + value = "true" + }, + { + name = "DD_DOGSTATSD_ORIGIN_DETECTION_CLIENT" + value = "true" + } + ] : [] + + cws_vars = local.is_cws_supported ? [ + { + name = "DD_RUNTIME_SECURITY_CONFIG_ENABLED" + value = "true" + }, + { + name = "DD_RUNTIME_SECURITY_CONFIG_EBPFLESS_ENABLED" + value = "true" + } + ] : [] + + dd_environment = var.dd_environment != null ? var.dd_environment : [] + + dd_agent_env = concat( + local.base_env, + local.dynamic_env, + local.origin_detection_vars, + local.cws_vars, + local.dd_environment, + ) + + dd_agent_dependency = concat( + var.dd_readonly_root_filesystem ? [ + { + condition = "SUCCESS" + containerName = "init-volume" + } + ] : [], + try(var.dd_log_collection.fluentbit_config.is_log_router_dependency_enabled, false) && local.dd_firelens_log_configuration != null ? local.log_router_dependency : [], + ) + + # Datadog Agent container definition + dd_agent_container = concat( + var.dd_readonly_root_filesystem ? [ + { + cpu = 0 + memory = 128 + name = "init-volume" + image = "${var.dd_registry}:${var.dd_image_version}" + essential = false + readonlyRootFilesystem = true + command = ["/bin/sh", "-c", "cp -vnR /etc/datadog-agent/* /agent-config/ && exit 0"] + mountPoints = [ + { + sourceVolume = "agent-config" + containerPath = "/agent-config" + readOnly = false + } + ] + } + ] : [], + [ + merge( + { + name = "datadog-agent" + image = "${var.dd_registry}:${var.dd_image_version}" + essential = var.dd_essential + environment = local.dd_agent_env + dockerLabels = var.dd_docker_labels + cpu = var.dd_cpu + memory = var.dd_memory_limit_mib + + readonlyRootFilesystem = var.dd_readonly_root_filesystem + secrets = var.dd_api_key_secret != null ? [ + { + name = "DD_API_KEY" + valueFrom = var.dd_api_key_secret.arn + } + ] : [] + portMappings = [ + { + containerPort = 8125 + hostPort = 8125 + protocol = "udp" + }, + { + containerPort = 8126 + hostPort = 8126 + protocol = "tcp" + } + ], + + mountPoints = local.dd_agent_mount, + logConfiguration = local.dd_firelens_log_configuration, + dependsOn = local.dd_agent_dependency + systemControls = [] + volumesFrom = [] + }, + try(var.dd_health_check.command == null, true) ? {} : { + healthCheck = { + command = var.dd_health_check.command + interval = var.dd_health_check.interval + timeout = var.dd_health_check.timeout + retries = var.dd_health_check.retries + startPeriod = var.dd_health_check.start_period + } + } + ) + ] + ) + + dd_log_environment = var.dd_log_collection.fluentbit_config.environment != null ? var.dd_log_collection.fluentbit_config.environment : [] + + # Datadog log router container definition + dd_log_container = local.is_fluentbit_supported ? [ + merge( + { + name = "datadog-log-router" + image = "${var.dd_log_collection.fluentbit_config.registry}:${var.dd_log_collection.fluentbit_config.image_version}" + essential = var.dd_log_collection.fluentbit_config.is_log_router_essential + readonlyRootFilesystem = var.dd_readonly_root_filesystem + firelensConfiguration = { + type = "fluentbit" + options = merge( + { + enable-ecs-log-metadata = "true" + }, + try(var.dd_log_collection.fluentbit_config.firelens_options.config_file_type != null, false) ? { config-file-type = var.dd_log_collection.fluentbit_config.firelens_options.config_file_type } : {}, + try(var.dd_log_collection.fluentbit_config.firelens_options.config_file_value != null, false) ? { config-file-value = var.dd_log_collection.fluentbit_config.firelens_options.config_file_value } : {} + ) + } + cpu = var.dd_log_collection.fluentbit_config.cpu + memory_limit_mib = var.dd_log_collection.fluentbit_config.memory_limit_mib + user = "0" + mountPoints = var.dd_log_collection.fluentbit_config.mountPoints + environment = local.dd_log_environment + dockerLabels = var.dd_docker_labels + portMappings = [] + systemControls = [] + volumesFrom = [] + dependsOn = var.dd_log_collection.fluentbit_config.dependsOn + }, + var.dd_log_collection.fluentbit_config.log_router_health_check.command == null ? {} : { + healthCheck = { + command = var.dd_log_collection.fluentbit_config.log_router_health_check.command + interval = var.dd_log_collection.fluentbit_config.log_router_health_check.interval + timeout = var.dd_log_collection.fluentbit_config.log_router_health_check.timeout + retries = var.dd_log_collection.fluentbit_config.log_router_health_check.retries + startPeriod = var.dd_log_collection.fluentbit_config.log_router_health_check.start_period + } + } + ) + ] : [] + + # Datadog CWS tracer definition + dd_cws_container = local.is_cws_supported ? [ + { + name = "cws-instrumentation-init" + image = "datadog/cws-instrumentation:latest" + cpu = var.dd_cws.cpu + memory_limit_mib = var.dd_cws.memory_limit_mib + user = "0" + essential = false + entryPoint = [] + command = ["/cws-instrumentation", "setup", "--cws-volume-mount", "/cws-instrumentation-volume"] + mountPoints = local.cws_mount + dockerLabels = var.dd_docker_labels + portMappings = [] + systemControls = [] + volumesFrom = [] + } + ] : [] +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/iam.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/iam.tf new file mode 100644 index 0000000..f91592c --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/iam.tf @@ -0,0 +1,158 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +# ============================== +# Task Execution Role +# ============================== + +# Will create or edit the *task execution role* +# only if the user provides a Datadog API key secret ARN +# in order to provide permissions to access the secret + +locals { + create_dd_secret_perms = var.dd_api_key_secret != null && try(var.execution_role.add_dd_ecs_permissions, true) + edit_execution_role = var.execution_role != null && local.create_dd_secret_perms + create_execution_role = var.execution_role == null && local.create_dd_secret_perms + parsed_exec_role_name = var.execution_role == null ? null : split("/", var.execution_role.arn)[length(split("/", var.execution_role.arn)) - 1] +} + +# ============================== +# Datadog API Key Secret Policy (Optional) +# ============================== +data "aws_iam_policy_document" "dd_secret_access" { + count = local.create_dd_secret_perms ? 1 : 0 + + statement { + effect = "Allow" + actions = ["secretsmanager:GetSecretValue"] + resources = [var.dd_api_key_secret.arn] + } +} + +resource "aws_iam_policy" "dd_secret_access" { + count = local.create_dd_secret_perms ? 1 : 0 + name = "${var.family}-dd-secret-access" + policy = data.aws_iam_policy_document.dd_secret_access[0].json +} + +# ============================== +# Case 1: User provides existing Task Execution Role +# ============================== +resource "aws_iam_role_policy_attachment" "existing_role_dd_secret" { + count = local.edit_execution_role ? 1 : 0 + role = local.parsed_exec_role_name + policy_arn = aws_iam_policy.dd_secret_access[0].arn +} + +# ============================== +# Case 2: Create a Task Execution Role +# ============================== +resource "aws_iam_role" "new_ecs_task_execution_role" { + count = local.create_execution_role ? 1 : 0 + name = "${var.family}-ecs-task-exec-role" + + assume_role_policy = jsonencode({ + Version = "2012-10-17" + Statement = [{ + Effect = "Allow" + Principal = { + Service = "ecs-tasks.amazonaws.com" + } + Action = "sts:AssumeRole" + }] + }) +} + +locals { + new_execution_role_policy_map = merge( + { "AmazonECSTaskExecutionRolePolicy" = "arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy" }, + local.create_dd_secret_perms ? { "DDSecretAccess" = aws_iam_policy.dd_secret_access[0].arn } : {} + ) +} + +resource "aws_iam_role_policy_attachment" "new_ecs_task_execution_role_policy" { + for_each = local.create_execution_role ? local.new_execution_role_policy_map : {} + role = aws_iam_role.new_ecs_task_execution_role[0].name + policy_arn = each.value +} + +# ============================== +# Task Role +# ============================== + +# Will create or edit the *task role* always +# in order to add permissions for the ecs_fargate check + +locals { + edit_task_role = var.task_role != null && try(var.task_role.add_dd_ecs_permissions, true) + create_task_role = var.task_role == null + parsed_task_role_name = var.task_role == null ? null : split("/", var.task_role.arn)[length(split("/", var.task_role.arn)) - 1] +} + +# ============================== +# ECS Task Permissions Policy +# ============================== +data "aws_iam_policy_document" "dd_ecs_task_permissions" { + count = local.create_task_role || local.edit_task_role ? 1 : 0 + statement { + effect = "Allow" + actions = [ + "ecs:ListClusters", + "ecs:ListContainerInstances", + "ecs:DescribeContainerInstances" + ] + resources = ["*"] + } +} + +resource "aws_iam_policy" "dd_ecs_task_permissions" { + count = local.create_task_role || local.edit_task_role ? 1 : 0 + name = "${var.family}-dd-ecs-task-policy" + policy = data.aws_iam_policy_document.dd_ecs_task_permissions[0].json +} + +# ============================== +# Case 1: User provides existing Task Role +# ============================== +# Always attach `dd_ecs_task_permissions` +resource "aws_iam_role_policy_attachment" "existing_role_ecs_task_permissions" { + count = local.edit_task_role ? 1 : 0 + role = local.parsed_task_role_name + policy_arn = aws_iam_policy.dd_ecs_task_permissions[0].arn +} + + +# ============================== +# Case 2: Create a Task Role +# ============================== + +resource "aws_iam_role" "new_ecs_task_role" { + count = local.create_task_role ? 1 : 0 + name = "${var.family}-ecs-task-role" + + assume_role_policy = jsonencode({ + Version = "2012-10-17" + Statement = [{ + Effect = "Allow" + Principal = { + Service = "ecs-tasks.amazonaws.com" + } + Action = "sts:AssumeRole" + }] + }) +} + +# Always attach `dd_ecs_task_permissions` +locals { + new_task_role_policy_map = { + "DDECSTaskPermissions" = local.create_task_role ? aws_iam_policy.dd_ecs_task_permissions[0].arn : null + } +} + +resource "aws_iam_role_policy_attachment" "new_role_ecs_task_permissions" { + for_each = local.create_task_role ? local.new_task_role_policy_map : {} + role = aws_iam_role.new_ecs_task_role[0].name + policy_arn = each.value +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/main.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/main.tf new file mode 100644 index 0000000..16d189a --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/main.tf @@ -0,0 +1,190 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +################################################################################ +# Task Definition +################################################################################ + +resource "aws_ecs_task_definition" "this" { + + container_definitions = jsonencode( + concat( + local.dd_agent_container, + local.dd_log_container, + local.dd_cws_container, + [for k, v in local.modified_container_definitions : v], + ) + ) + + cpu = var.cpu + + dynamic "ephemeral_storage" { + for_each = var.ephemeral_storage != null ? [var.ephemeral_storage] : [] + + content { + size_in_gib = ephemeral_storage.value.size_in_gib + } + } + + enable_fault_injection = var.enable_fault_injection + + # Prioritize the user-provided task execution role over the one created by the module + execution_role_arn = try( + var.execution_role.arn, + aws_iam_role.new_ecs_task_execution_role[0].arn, + null + ) + + family = var.family + + # Fargate incompatible parameter on v6.0.0 + # dynamic "inference_accelerator" { + # for_each = var.inference_accelerator != null ? var.inference_accelerator : [] + + # content { + # device_name = inference_accelerator.value.device_name + # device_type = inference_accelerator.value.device_type + # } + # } + + # Fargate incompatible parameter + ipc_mode = var.ipc_mode + memory = var.memory + network_mode = var.network_mode + pid_mode = var.pid_mode + + dynamic "placement_constraints" { + for_each = var.placement_constraints != null ? var.placement_constraints : [] + + content { + expression = try(placement_constraints.value.expression, null) + type = placement_constraints.value.type + } + } + + dynamic "proxy_configuration" { + for_each = var.proxy_configuration != null ? [var.proxy_configuration] : [] + + content { + container_name = proxy_configuration.value.container_name + properties = try(proxy_configuration.value.properties, null) + type = try(proxy_configuration.value.type, null) + } + } + + requires_compatibilities = var.requires_compatibilities + + dynamic "runtime_platform" { + for_each = var.runtime_platform != null ? [var.runtime_platform] : [] + + content { + cpu_architecture = try(runtime_platform.value.cpu_architecture, null) + operating_system_family = try(runtime_platform.value.operating_system_family, null) + } + } + + skip_destroy = var.skip_destroy + # Prioritize the user-provided task role over the one created by the module + task_role_arn = try( + var.task_role.arn, + aws_iam_role.new_ecs_task_role[0].arn, + null + ) + + dynamic "volume" { + for_each = local.modified_volumes + + content { + dynamic "docker_volume_configuration" { + for_each = try(volume.value.docker_volume_configuration != null ? [volume.value.docker_volume_configuration] : [], []) + + content { + autoprovision = try(docker_volume_configuration.value.autoprovision, null) + driver = try(docker_volume_configuration.value.driver, null) + driver_opts = try(docker_volume_configuration.value.driver_opts, null) + labels = try(docker_volume_configuration.value.labels, null) + scope = try(docker_volume_configuration.value.scope, null) + } + } + + dynamic "efs_volume_configuration" { + for_each = try(volume.value.efs_volume_configuration != null ? [volume.value.efs_volume_configuration] : [], []) + + content { + dynamic "authorization_config" { + for_each = try(efs_volume_configuration.value.authorization_config != null ? [efs_volume_configuration.value.authorization_config] : [], []) + + content { + access_point_id = try(authorization_config.value.access_point_id, null) + iam = try(authorization_config.value.iam, null) + } + } + + file_system_id = efs_volume_configuration.value.file_system_id + root_directory = try(efs_volume_configuration.value.root_directory, null) + transit_encryption = try(efs_volume_configuration.value.transit_encryption, null) + transit_encryption_port = try(efs_volume_configuration.value.transit_encryption_port, null) + } + } + + dynamic "fsx_windows_file_server_volume_configuration" { + for_each = try(volume.value.fsx_windows_file_server_volume_configuration != null ? [volume.value.fsx_windows_file_server_volume_configuration] : [], []) + + content { + dynamic "authorization_config" { + for_each = try(fsx_windows_file_server_volume_configuration.value.authorization_config != null ? [fsx_windows_file_server_volume_configuration.value.authorization_config] : [], []) + + content { + credentials_parameter = authorization_config.value.credentials_parameter + domain = authorization_config.value.domain + } + } + + file_system_id = fsx_windows_file_server_volume_configuration.value.file_system_id + root_directory = fsx_windows_file_server_volume_configuration.value.root_directory + } + } + + host_path = try(volume.value.host_path, null) + configure_at_launch = try(volume.value.configure_at_launch, null) + name = try(volume.value.name, volume.key) + } + } + + tags = merge( + var.tags, + local.tags, + ) + + track_latest = var.track_latest + + depends_on = [ + aws_iam_role.new_ecs_task_role, + aws_iam_role.new_ecs_task_execution_role, + ] + + lifecycle { + create_before_destroy = true + + # Attach any complex Datadog configuration rules (multiple variables) + precondition { + condition = var.dd_cws.enabled == false || (var.dd_cws.enabled == true && var.dd_is_datadog_dependency_enabled == true) + error_message = "The Datadog Agent container dependency must be enabled for CWS to be stable. Please set `dd_is_datadog_dependency_enabled` to `true`." + } + precondition { + condition = var.dd_log_collection.enabled == false || (var.dd_log_collection.enabled == true && local.is_linux == true) + error_message = "Log collection is not supported on Windows. Please set `dd_log_collection.enabled` to `false`." + } + precondition { + condition = var.dd_readonly_root_filesystem == false || (var.dd_readonly_root_filesystem == true && local.is_linux == true) + error_message = "Readonly root filesystem is only supported on Linux. Please set `dd_readonly_root_filesystem` to `false`." + } + # Must provide only one of the two Datadog API key options + precondition { + condition = (var.dd_api_key == null && var.dd_api_key_secret != null) || (var.dd_api_key != null && var.dd_api_key_secret == null) + error_message = "You must provide only one of the two Datadog API key options: `dd_api_key` or `dd_api_key_secret`." + } + } +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/outputs.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/outputs.tf new file mode 100644 index 0000000..3534031 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/outputs.tf @@ -0,0 +1,126 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +output "container_definitions" { + description = "A list of valid container definitions provided as a single valid JSON document." + value = aws_ecs_task_definition.this.container_definitions +} + +output "cpu" { + description = "Number of cpu units used by the task." + value = aws_ecs_task_definition.this.cpu +} + +output "enable_fault_injection" { + description = "Enables fault injection and allows for fault injection requests to be accepted from the task's containers." + value = aws_ecs_task_definition.this.enable_fault_injection +} + +output "ephemeral_storage" { + description = "The amount of ephemeral storage to allocate for the task." + value = aws_ecs_task_definition.this.ephemeral_storage +} + +output "execution_role_arn" { + description = "ARN of the task execution role." + value = aws_ecs_task_definition.this.execution_role_arn +} + +output "family" { + description = "A unique name for your task definition." + value = aws_ecs_task_definition.this.family +} + +output "inference_accelerator" { + description = "Inference accelerator settings." + value = null +} + +output "ipc_mode" { + description = "IPC resource namespace to be used for the containers." + value = aws_ecs_task_definition.this.ipc_mode +} + +output "memory" { + description = "Amount (in MiB) of memory used by the task." + value = aws_ecs_task_definition.this.memory +} + +output "network_mode" { + description = "Docker networking mode to use for the containers." + value = aws_ecs_task_definition.this.network_mode +} + +output "pid_mode" { + description = "Process namespace to use for the containers." + value = aws_ecs_task_definition.this.pid_mode +} + +output "placement_constraints" { + description = "Rules that are taken into consideration during task placement." + value = aws_ecs_task_definition.this.placement_constraints +} + +output "proxy_configuration" { + description = "Configuration block for the App Mesh proxy." + value = aws_ecs_task_definition.this.proxy_configuration +} + +output "requires_compatibilities" { + description = "Set of launch types required by the task." + value = aws_ecs_task_definition.this.requires_compatibilities +} + +output "runtime_platform" { + description = "Runtime platform configuration for the task definition." + value = aws_ecs_task_definition.this.runtime_platform +} + +output "skip_destroy" { + description = "Whether to retain the old revision when the resource is destroyed or replacement is necessary." + value = aws_ecs_task_definition.this.skip_destroy +} + +output "tags" { + description = "Key-value map of resource tags." + value = aws_ecs_task_definition.this.tags +} + +output "task_role_arn" { + description = "ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services." + value = aws_ecs_task_definition.this.task_role_arn +} + +output "track_latest" { + description = "Whether should track latest ACTIVE task definition on AWS or the one created with the resource stored in state." + value = aws_ecs_task_definition.this.track_latest +} + +output "volume" { + description = "Configuration block for volumes that containers in your task may use." + value = aws_ecs_task_definition.this.volume +} + +# Attribute reference outputs + +output "arn" { + description = "Full ARN of the Task Definition (including both family and revision)." + value = aws_ecs_task_definition.this.arn +} + +output "arn_without_revision" { + description = "ARN of the Task Definition with the trailing revision removed." + value = aws_ecs_task_definition.this.arn_without_revision +} + +output "revision" { + description = "Revision of the task in a particular family." + value = aws_ecs_task_definition.this.revision +} + +output "tags_all" { + description = "Map of tags assigned to the resource, including inherited tags." + value = aws_ecs_task_definition.this.tags_all +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/variables.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/variables.tf new file mode 100644 index 0000000..3650b8f --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/variables.tf @@ -0,0 +1,528 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +################################################################################ +# Datadog ECS Fargate Configuration +################################################################################ + +variable "dd_api_key" { + description = "Datadog API Key" + type = string + default = null +} + +variable "dd_api_key_secret" { + description = "Datadog API Key Secret ARN" + type = object({ + arn = string + }) + default = null + validation { + condition = var.dd_api_key_secret == null || try(var.dd_api_key_secret.arn != null, false) + error_message = "If 'dd_api_key_secret' is set, 'arn' must be a non-null string." + } +} + +variable "dd_registry" { + description = "Datadog Agent image registry" + type = string + default = "public.ecr.aws/datadog/agent" + nullable = false +} + +variable "dd_image_version" { + description = "Datadog Agent image version" + type = string + default = "latest" + nullable = false +} + +variable "dd_cpu" { + description = "Datadog Agent container CPU units" + type = number + default = null +} + +variable "dd_memory_limit_mib" { + description = "Datadog Agent container memory limit in MiB" + type = number + default = null +} + +variable "dd_essential" { + description = "Whether the Datadog Agent container is essential" + type = bool + default = false + nullable = false +} + +variable "dd_is_datadog_dependency_enabled" { + description = "Whether the Datadog Agent container is a dependency for other containers" + type = bool + default = false + nullable = false +} + +variable "dd_readonly_root_filesystem" { + description = "Datadog Agent container runs with read-only root filesystem enabled" + type = bool + default = false + nullable = false +} + +variable "dd_health_check" { + description = "Datadog Agent health check configuration" + type = object({ + command = optional(list(string)) + interval = optional(number) + retries = optional(number) + start_period = optional(number) + timeout = optional(number) + }) + default = { + command = ["CMD-SHELL", "/probe.sh"] + interval = 15 + retries = 3 + start_period = 60 + timeout = 5 + } +} + +variable "dd_site" { + description = "Datadog Site" + type = string + default = "datadoghq.com" +} + +variable "dd_environment" { + description = "Datadog Agent container environment variables. Highest precedence and overwrites other environment variables defined by the module. For example, `dd_environment = [ { name = 'DD_VAR', value = 'DD_VAL' } ]`" + type = list(map(string)) + default = [{}] + nullable = false +} + +variable "dd_docker_labels" { + description = "Datadog Agent container docker labels" + type = map(string) + default = {} +} + +variable "dd_tags" { + description = "Datadog Agent global tags (eg. `key1:value1, key2:value2`)" + type = string + default = null +} + +variable "dd_cluster_name" { + description = "Datadog cluster name" + type = string + default = null +} + +variable "dd_service" { + description = "The task service name. Used for tagging (UST)" + type = string + default = null +} + +variable "dd_env" { + description = "The task environment name. Used for tagging (UST)" + type = string + default = null +} + +variable "dd_version" { + description = "The task version name. Used for tagging (UST)" + type = string + default = null +} + +variable "dd_checks_cardinality" { + description = "Datadog Agent checks cardinality" + type = string + default = null + validation { + condition = var.dd_checks_cardinality == null || can(contains(["low", "orchestrator", "high"], var.dd_checks_cardinality)) + error_message = "The Datadog Agent checks cardinality must be one of 'low', 'orchestrator', 'high', or null." + } +} + +variable "dd_dogstatsd" { + description = "Configuration for Datadog DogStatsD" + type = object({ + enabled = optional(bool, true) + origin_detection_enabled = optional(bool, true) + dogstatsd_cardinality = optional(string, "orchestrator") + socket_enabled = optional(bool, true) + }) + default = { + enabled = true + origin_detection_enabled = true + dogstatsd_cardinality = "orchestrator" + socket_enabled = true + } + validation { + condition = var.dd_dogstatsd != null + error_message = "The Datadog Dogstatsd configuration must be defined." + } + validation { + condition = try(var.dd_dogstatsd.dogstatsd_cardinality == null, false) || can(contains(["low", "orchestrator", "high"], var.dd_dogstatsd.dogstatsd_cardinality)) + error_message = "The Datadog Dogstatsd cardinality must be one of 'low', 'orchestrator', 'high', or null." + } +} + +variable "dd_apm" { + description = "Configuration for Datadog APM" + type = object({ + enabled = optional(bool, true) + socket_enabled = optional(bool, true) + profiling = optional(bool, false) + trace_inferred_proxy_services = optional(bool, false) + data_streams = optional(bool, false) + }) + default = { + enabled = true + socket_enabled = true + profiling = false + trace_inferred_proxy_services = false + data_streams_enabled = false + } + validation { + condition = var.dd_apm != null + error_message = "The Datadog APM configuration must be defined." + } +} + +variable "dd_log_collection" { + description = "Configuration for Datadog Log Collection" + type = object({ + enabled = optional(bool, false) + fluentbit_config = optional(object({ + registry = optional(string, "public.ecr.aws/aws-observability/aws-for-fluent-bit") + image_version = optional(string, "stable") + cpu = optional(number) + memory_limit_mib = optional(number) + is_log_router_essential = optional(bool, false) + is_log_router_dependency_enabled = optional(bool, false) + environment = optional(list(object({ + name = string + value = string + })), []) + log_router_health_check = optional(object({ + command = optional(list(string)) + interval = optional(number) + retries = optional(number) + start_period = optional(number) + timeout = optional(number) + }), + { + command = ["CMD-SHELL", "exit 0"] + interval = 5 + retries = 3 + start_period = 15 + timeout = 5 + } + ) + firelens_options = optional(object({ + config_file_type = optional(string) + config_file_value = optional(string) + })) + log_driver_configuration = optional(object({ + host_endpoint = optional(string, "http-intake.logs.datadoghq.com") + tls = optional(bool) + compress = optional(string) + service_name = optional(string) + source_name = optional(string) + message_key = optional(string) + }), + { + host_endpoint = "http-intake.logs.datadoghq.com" + } + ) + mountPoints = optional(list(object({ + sourceVolume : string, + containerPath : string, + readOnly : bool + })), []) + dependsOn = optional(list(object({ + containerName : string, + condition : string + })), []) + }), + { + fluentbit_config = { + registry = "public.ecr.aws/aws-observability/aws-for-fluent-bit" + image_version = "stable" + log_driver_configuration = { + host_endpoint = "http-intake.logs.datadoghq.com" + } + } + } + ) + }) + default = { + enabled = false + fluentbit_config = { + is_log_router_essential = false + log_driver_configuration = { + host_endpoint = "http-intake.logs.datadoghq.com" + } + } + } + validation { + condition = var.dd_log_collection != null + error_message = "The Datadog Log Collection configuration must be defined." + } + validation { + condition = try(var.dd_log_collection.enabled == false, false) || try(var.dd_log_collection.enabled == true && var.dd_log_collection.fluentbit_config != null, false) + error_message = "The Datadog Log Collection fluentbit configuration must be defined." + } + validation { + condition = try(var.dd_log_collection.enabled == false, false) || try(var.dd_log_collection.enabled == true && var.dd_log_collection.fluentbit_config.log_driver_configuration != null, false) + error_message = "The Datadog Log Collection log driver configuration must be defined." + } + validation { + condition = try(var.dd_log_collection.enabled == false, false) || try(var.dd_log_collection.enabled == true && var.dd_log_collection.fluentbit_config.log_driver_configuration.host_endpoint != null, false) + error_message = "The Datadog Log Collection log driver configuration host endpoint must be defined." + } +} + +variable "dd_cws" { + description = "Configuration for Datadog Cloud Workload Security (CWS)" + type = object({ + enabled = optional(bool, false) + cpu = optional(number) + memory_limit_mib = optional(number) + }) + default = { + enabled = false + } + validation { + condition = var.dd_cws != null + error_message = "The Datadog Cloud Workload Security (CWS) configuration must be defined." + } +} + +variable "dd_orchestrator_explorer" { + description = "Configuration for Datadog Orchestrator Explorer" + type = object({ + enabled = optional(bool, true) + url = optional(string) + }) + default = { + enabled = true + } + validation { + condition = var.dd_orchestrator_explorer != null + error_message = "The Datadog Orchestrator Explorer configuration must be defined." + } +} + +################################################################################ +# Task Definition +################################################################################ + +variable "container_definitions" { + description = "A list of valid [container definitions](http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html). Please note that you should only provide values that are part of the container definition document" + type = any +} + +variable "cpu" { + description = "Number of cpu units used by the task. If the `requires_compatibilities` is `FARGATE` this field is required" + type = number + default = 256 + validation { + condition = var.cpu != null + error_message = "Fargate requires that 'cpu' be defined at the task level." + } +} + +variable "enable_fault_injection" { + description = "Enables fault injection and allows for fault injection requests to be accepted from the task's containers" + type = bool + default = false +} + +variable "ephemeral_storage" { + description = "The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate" + type = object({ + size_in_gib = number + }) + default = null +} + +variable "execution_role" { + description = "ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume. Contains:\n - `arn` (string): The ARN of the IAM role.\n - `add_dd_ecs_permissions` (bool): Whether to automatically add Datadog ECS permissions to the role to fetch container and cluster metadata." + type = object({ + arn = string + add_dd_ecs_permissions = optional(bool, true) + }) + default = null + validation { + condition = var.execution_role == null || try(var.execution_role.arn != null, false) + error_message = "If 'execution_role' is set, 'arn' must be a non-null string." + } +} + +variable "family" { + description = "A unique name for your task definition" + type = string +} + +# Not Fargate Compatible +variable "inference_accelerator" { + description = "Configuration list with Inference Accelerators settings" + type = list(object({ + device_name = string + device_type = string + })) + default = [] +} + +# Not Fargate Compatible: must always be "task" +variable "ipc_mode" { + description = "IPC resource namespace to be used for the containers in the task The valid values are `host`, `task`, and `none`" + type = string + default = null +} + +variable "memory" { + description = "Amount (in MiB) of memory used by the task. If the `requires_compatibilities` is `FARGATE` this field is required" + type = number + default = 512 + validation { + condition = var.memory != null + error_message = "Fargate requires that 'memory' be defined at the task level." + } +} + +# Not Fargate Compatible: must always be "awsvpc" +variable "network_mode" { + description = "Docker networking mode to use for the containers in the task. Valid values are `none`, `bridge`, `awsvpc`, and `host`" + type = string + default = "awsvpc" + validation { + condition = var.network_mode == "awsvpc" + error_message = "Fargate requires that 'network_mode' be set to 'awsvpc'." + } +} + +# Not Fargate Compatible: must always be "task" +variable "pid_mode" { + description = "Process namespace to use for the containers in the task. The valid values are `host` and `task`" + type = string + default = "task" +} + +# Not Fargate Compatible +variable "placement_constraints" { + description = "Configuration list for rules that are taken into consideration during task placement (up to max of 10)" + type = list(object({ + type = string + expression = string + })) + default = [] +} + +variable "proxy_configuration" { + description = "Configuration for the App Mesh proxy" + type = object({ + container_name = string + properties = map(any) + type = optional(string, "APPMESH") + }) + default = null +} + +variable "requires_compatibilities" { + description = "Set of launch types required by the task. The valid values are `EC2` and `FARGATE`" + type = list(string) + default = ["FARGATE"] + validation { + condition = try(contains(var.requires_compatibilities, "FARGATE"), false) + error_message = "The `requires_compatibilities` must contain `FARGATE`." + } +} + +variable "runtime_platform" { + description = "Configuration for `runtime_platform` that containers in your task may use" + type = object({ + cpu_architecture = optional(string, "LINUX") + operating_system_family = optional(string, "X86_64") + }) + default = { + operating_system_family = "LINUX" + cpu_architecture = "X86_64" + } +} + +variable "skip_destroy" { + description = "Whether to retain the old revision when the resource is destroyed or replacement is necessary" + type = bool + default = false +} + +variable "tags" { + description = "A map of additional tags to add to the task definition/set created" + type = map(string) + default = null +} + +variable "task_role" { + description = "The ARN of the IAM role that allows your Amazon ECS container task to make calls to other AWS services. Contains:\n - `arn` (string): The ARN of the IAM role.\n - `add_dd_ecs_permissions` (bool): Whether to automatically add Datadog ECS permissions to the role to fetch a provided Datadog API key secret." + type = object({ + arn = string + add_dd_ecs_permissions = optional(bool, true) + }) + default = null + validation { + condition = var.task_role == null || try(var.task_role.arn != null, false) + error_message = "If 'task_role' is set, 'arn' must be a non-null string." + } +} + +variable "track_latest" { + description = "Whether should track latest ACTIVE task definition on AWS or the one created with the resource stored in state" + type = bool + default = false +} + +variable "volumes" { + description = "A list of volume definitions that containers in your task may use" + type = list(object({ + name = string + host_path = optional(string) + configure_at_launch = optional(bool) + + docker_volume_configuration = optional(object({ + autoprovision = optional(bool) + driver = optional(string) + driver_opts = optional(map(any)) + labels = optional(map(any)) + scope = optional(string) + })) + + efs_volume_configuration = optional(object({ + file_system_id = string + root_directory = optional(string) + transit_encryption = optional(string) + transit_encryption_port = optional(number) + authorization_config = optional(object({ + access_point_id = optional(string) + iam = optional(string) + })) + })) + + fsx_windows_file_server_volume_configuration = optional(object({ + file_system_id = string + root_directory = optional(string) + authorization_config = optional(object({ + credentials_parameter = string + domain = string + })) + })) + })) + default = [] +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/versions.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/versions.tf new file mode 100644 index 0000000..0360c39 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_fargate/input/versions.tf @@ -0,0 +1,15 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +terraform { + required_version = ">= 1.5.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.85.0" + } + } +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/LICENSE b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/LICENSE new file mode 100644 index 0000000..1dfdc0b --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/LICENSE @@ -0,0 +1,200 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2025-present Datadog, Inc. + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/NOTICE b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/NOTICE new file mode 100644 index 0000000..d24b082 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/NOTICE @@ -0,0 +1,4 @@ +Datadog terraform-aws-ecs-datadog +Copyright 2025 Datadog, Inc. + +This product includes software developed at Datadog (https://www.datadoghq.com/). \ No newline at end of file diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/fixture.json b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/fixture.json new file mode 100644 index 0000000..bc3b2a2 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/fixture.json @@ -0,0 +1,40 @@ +{ + "schema": 1, + "id": "registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/DataDog/ecs-datadog/aws/1.2.2", + "ref": "1.2.2", + "path": "modules/ecs_managed_instances", + "archiveSha256": "e71fa690237d3918ba3992708a68db5879ddb27b5f778c99a3a5f43403751a6e", + "inputSha256": "c909c9519d53cfbac2d6a4ccac86311e95f67e36315aadc7f941046900dc4e00" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "depends_on", + "dynamic", + "for_each", + "for_expressions", + "functions", + "interpolation", + "locals", + "outputs", + "required_providers", + "resources", + "sensitive", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/daemon.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/daemon.tf new file mode 100644 index 0000000..64dab75 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/daemon.tf @@ -0,0 +1,63 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +################################################################################ +# ECS Managed Daemon +################################################################################ +# ECS Managed Daemons only run on ECS Managed Instances capacity providers. +# This module does not create the cluster or capacity provider - both must be +# supplied by the caller, the same boundary ecs_ec2 uses for cluster_arn. + +locals { + # Daemon name defaults to -datadog-agent if not provided + daemon_name = var.daemon_name != null ? var.daemon_name : "${var.family}-datadog-agent" +} + +resource "aws_ecs_daemon" "datadog_agent" { + count = var.create_daemon ? 1 : 0 + + name = local.daemon_name + cluster_arn = var.cluster_arn + daemon_task_definition_arn = aws_ecs_daemon_task_definition.datadog_agent.arn + + # ECS Managed Daemons are only supported on ECS Managed Instances capacity providers + capacity_provider_arns = var.capacity_provider_arns + + # Write-only: the API does not return these values, so Terraform plans will + # always show a diff here. This is expected provider behavior, not a bug. + deployment_configuration { + drain_percent = var.deployment_configuration.drain_percent + bake_time_in_minutes = var.deployment_configuration.bake_time_in_minutes + + alarms { + alarm_names = var.deployment_configuration.alarms.alarm_names + enable = var.deployment_configuration.alarms.enable + } + } + + # Write-only and ignored by the provider on update - changing these after + # creation has no effect until the daemon is recreated. + enable_ecs_managed_tags = var.enable_ecs_managed_tags + enable_execute_command = var.enable_execute_command + propagate_tags = var.propagate_tags + + tags = merge(var.tags, local.tags) + + lifecycle { + precondition { + condition = var.create_daemon == false || var.cluster_arn != null + error_message = "cluster_arn must be provided when create_daemon is true." + } + + precondition { + condition = var.create_daemon == false || length(var.capacity_provider_arns) > 0 + error_message = "capacity_provider_arns must contain at least one ARN when create_daemon is true. ECS Managed Daemons only run on ECS Managed Instances capacity providers." + } + } + + depends_on = [ + aws_ecs_daemon_task_definition.datadog_agent + ] +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/daemon_task_definition.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/daemon_task_definition.tf new file mode 100644 index 0000000..1644024 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/daemon_task_definition.tf @@ -0,0 +1,168 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +################################################################################ +# Daemon Task Definition +################################################################################ +# aws_ecs_daemon_task_definition has a materially different schema from +# aws_ecs_task_definition: no network_mode/pid_mode/ipc_mode/runtime_platform/ +# placement_constraints/proxy_configuration/requires_compatibilities, container +# definitions are native HCL blocks rather than a jsonencode'd list, and every +# field forces full resource replacement (there is no update API for this +# resource at all). + +resource "aws_ecs_daemon_task_definition" "datadog_agent" { + family = var.family + cpu = var.cpu + memory = var.memory + + container_definition { + name = local.dd_agent_container_definition.name + image = local.dd_agent_container_definition.image + essential = local.dd_agent_container_definition.essential + cpu = local.dd_agent_container_definition.cpu + memory = local.dd_agent_container_definition.memory + + dynamic "environment" { + # tolist() coerces the for-expression's inferred tuple type to a + # homogeneous list - the environment block's Set-based schema rejects + # a bare tuple with "Cannot use a tuple value in for_each." + for_each = toset(local.dd_agent_container_definition.environment) + + content { + name = environment.value.name + value = environment.value.value + } + } + + dynamic "mount_point" { + for_each = local.dd_agent_container_definition.mount_point + + content { + source_volume = mount_point.value.source_volume + container_path = mount_point.value.container_path + read_only = mount_point.value.read_only + } + } + + dynamic "secret" { + for_each = try(local.dd_agent_container_definition.secret, []) + + content { + name = secret.value.name + value_from = secret.value.value_from + } + } + + dynamic "health_check" { + for_each = try(local.dd_agent_container_definition.health_check, null) != null ? [local.dd_agent_container_definition.health_check] : [] + + content { + command = health_check.value.command + interval = health_check.value.interval + retries = health_check.value.retries + start_period = health_check.value.start_period + timeout = health_check.value.timeout + } + } + + dynamic "linux_parameters" { + for_each = try(local.dd_agent_container_definition.linux_parameters, null) != null ? [local.dd_agent_container_definition.linux_parameters] : [] + + content { + capabilities { + add = linux_parameters.value.capabilities.add + drop = linux_parameters.value.capabilities.drop + } + } + } + + dynamic "log_configuration" { + for_each = try(local.dd_agent_container_definition.log_configuration, null) != null ? [local.dd_agent_container_definition.log_configuration] : [] + + content { + log_driver = log_configuration.value.log_driver + options = log_configuration.value.options + + dynamic "secret_option" { + for_each = coalesce(log_configuration.value.secret_option, []) + + content { + name = secret_option.value.name + value_from = secret_option.value.value_from + } + } + } + } + } + + # Volumes - includes Datadog host volumes (CRI socket, proc, cgroup, UDS + # sockets, network monitoring debug mount) and user-provided volumes + dynamic "volume" { + for_each = local.all_volumes + + content { + name = volume.value.name + + dynamic "host" { + for_each = try(volume.value.host_path, null) != null ? [volume.value.host_path] : [] + + content { + source_path = host.value + } + } + } + } + + # IAM roles - prioritize user-provided over module-created + execution_role_arn = try( + var.execution_role.arn, + aws_iam_role.new_ecs_task_execution_role[0].arn, + null + ) + + task_role_arn = try( + var.task_role.arn, + aws_iam_role.new_ecs_task_role[0].arn, + null + ) + + tags = merge(var.tags, local.tags) + + # Ensure IAM roles are created before the daemon task definition + depends_on = [ + aws_iam_role.new_ecs_task_role, + aws_iam_role.new_ecs_task_execution_role, + ] + + lifecycle { + create_before_destroy = true + + # Must provide exactly one of the two Datadog API key options + precondition { + condition = (var.dd_api_key == null && var.dd_api_key_secret != null) || (var.dd_api_key != null && var.dd_api_key_secret == null) + error_message = "You must provide exactly one of the two Datadog API key options: 'dd_api_key' or 'dd_api_key_secret'." + } + + # Container log collection through the agent is not supported in daemon + # mode on ECS Managed Instances. + precondition { + condition = var.dd_log_collection.enabled == false + error_message = "Container log collection through the Datadog Agent is not supported in daemon mode on ECS Managed Instances. Use the FireLens log driver or the 'awslogs' driver configured directly on your application task definition instead." + } + + # DogStatsD must have at least one transport configured when enabled + precondition { + condition = !var.dd_dogstatsd.enabled || var.dd_dogstatsd.socket_enabled || var.dd_dogstatsd.tcp_enabled + error_message = "DogStatsD is enabled but neither UDS (socket_enabled) nor TCP (tcp_enabled) transport is configured. Set at least one to true." + } + + # APM must have at least one transport configured when enabled + precondition { + condition = !var.dd_apm.enabled || var.dd_apm.socket_enabled || var.dd_apm.tcp_enabled + error_message = "APM is enabled but neither UDS (socket_enabled) nor TCP (tcp_enabled) transport is configured. Set at least one to true." + } + } +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/datadog.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/datadog.tf new file mode 100644 index 0000000..9efd8ba --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/datadog.tf @@ -0,0 +1,339 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +# Version and Install Info +locals { + # Datadog ECS task tags + version = "0.1.0" + + install_info_tool = "terraform" + install_info_tool_version = "terraform-aws-ecs-datadog/ecs-managed-instances" + install_info_installer_version = local.version + + # AWS Resource Tags + tags = { + dd_ecs_terraform_module = local.version + } +} + +################################################################################ +# CRI / Host Monitoring Volume Configuration +################################################################################ +# ECS Managed Instances run containerd (not Docker), so the agent collects +# container and host metrics via the containerd socket, /proc, and cgroup +# host mounts rather than the Docker socket used on ecs_ec2. + +locals { + cri_volumes = [ + { + name = "containerd_sock" + host_path = var.dd_cri_socket_path + }, + { + name = "proc" + host_path = var.dd_proc_path + }, + { + name = "cgroup" + host_path = var.dd_cgroup_path + } + ] + + cri_mounts = [ + { + source_volume = "containerd_sock" + container_path = "/var/run/containerd/containerd.sock" + read_only = true + }, + { + source_volume = "proc" + container_path = "/host/proc" + read_only = true + }, + { + source_volume = "cgroup" + container_path = "/host/sys/fs/cgroup" + read_only = true + } + ] +} + +################################################################################ +# UDS (Unix Domain Socket) Configuration +################################################################################ + +locals { + is_apm_socket_mount = var.dd_apm.enabled && var.dd_apm.socket_enabled + is_dsd_socket_mount = var.dd_dogstatsd.enabled && var.dd_dogstatsd.socket_enabled + is_apm_dsd_volume = local.is_apm_socket_mount || local.is_dsd_socket_mount + + # Host-mounted volume for shared UDS sockets between the daemon and application tasks. + # Managed daemons run in a shared network namespace, so the socket directory is + # bind-mounted from the host filesystem rather than an ephemeral task-local volume. + apm_dsd_volume = local.is_apm_dsd_volume ? [ + { + name = "dd-sockets" + host_path = "/var/run/datadog" + } + ] : [] + + apm_dsd_mount = local.is_apm_dsd_volume ? [ + { + source_volume = "dd-sockets" + container_path = "/var/run/datadog" + read_only = false + } + ] : [] +} + +################################################################################ +# Cloud Network Monitoring (Linux only) +################################################################################ + +locals { + network_monitoring_volume = var.dd_network_monitoring.enabled ? [ + { + name = "debug" + host_path = "/sys/kernel/debug" + } + ] : [] + + network_monitoring_mount = var.dd_network_monitoring.enabled ? [ + { + source_volume = "debug" + container_path = "/sys/kernel/debug" + read_only = false + } + ] : [] + + network_monitoring_env = var.dd_network_monitoring.enabled ? [ + { + name = "DD_SYSTEM_PROBE_NETWORK_ENABLED" + value = "true" + } + ] : [] + + # Datadog's documented capability set for Cloud Network Monitoring in daemon mode. + network_monitoring_capabilities = var.dd_network_monitoring.enabled ? [ + "SYS_ADMIN", + "SYS_RESOURCE", + "SYS_PTRACE", + "NET_ADMIN", + "NET_BROADCAST", + "NET_RAW", + "IPC_LOCK", + "CHOWN", + ] : [] +} + +################################################################################ +# Volume Aggregation +################################################################################ + +locals { + user_volumes = [for v in var.volumes : { name = v.name, host_path = v.host_path }] + + # Every user volume is mounted; container_path defaults to host_path. + user_mounts = [ + for v in var.volumes : { + source_volume = v.name + container_path = coalesce(v.container_path, v.host_path) + read_only = v.read_only + } + ] + + all_volumes = concat( + local.cri_volumes, + local.apm_dsd_volume, + local.network_monitoring_volume, + local.user_volumes, + ) + + dd_agent_mount = concat( + local.cri_mounts, + local.apm_dsd_mount, + local.network_monitoring_mount, + local.user_mounts, + ) +} + +################################################################################ +# Datadog Agent Environment Variables +################################################################################ + +locals { + # Base environment variables (always set) + base_env = [ + { + name = "ECS_MANAGED_INSTANCES" + value = "true" + }, + { + name = "DD_ECS_TASK_COLLECTION_ENABLED" + value = var.dd_orchestrator_explorer.enabled ? "true" : "false" + }, + { + # In-container path of the host socket mounted by cri_mounts, not the host path. + name = "DD_CRI_SOCKET_PATH" + value = "/var/run/containerd/containerd.sock" + }, + { + name = "DD_INSTALL_INFO_TOOL" + value = local.install_info_tool + }, + { + name = "DD_INSTALL_INFO_TOOL_VERSION" + value = local.install_info_tool_version + }, + { + name = "DD_INSTALL_INFO_INSTALLER_VERSION" + value = local.install_info_installer_version + } + ] + + # Dynamic environment variables (only set if provided) + dynamic_env = [ + for pair in [ + { key = "DD_API_KEY", value = var.dd_api_key }, + { key = "DD_SITE", value = var.dd_site }, + { key = "DD_CHECKS_TAG_CARDINALITY", value = var.dd_checks_cardinality }, + { key = "DD_DOGSTATSD_TAG_CARDINALITY", value = var.dd_dogstatsd.dogstatsd_cardinality }, + { key = "DD_TAGS", value = var.dd_tags }, + { key = "DD_ORCHESTRATOR_EXPLORER_ORCHESTRATOR_DD_URL", value = var.dd_orchestrator_explorer.url }, + { key = "DD_LOG_LEVEL", value = var.dd_log_level }, + ] : { name = pair.key, value = pair.value } if pair.value != null + ] + + # DogStatsD origin detection variables + origin_detection_vars = var.dd_dogstatsd.enabled && var.dd_dogstatsd.origin_detection_enabled ? [ + { + name = "DD_DOGSTATSD_ORIGIN_DETECTION" + value = "true" + }, + { + name = "DD_DOGSTATSD_ORIGIN_DETECTION_CLIENT" + value = "true" + } + ] : [] + + # APM configuration variables (agent-side only) + apm_vars = [ + { + name = "DD_APM_ENABLED" + value = tostring(var.dd_apm.enabled) + } + ] + + dogstatsd_vars = [ + { + name = "DD_USE_DOGSTATSD" + value = tostring(var.dd_dogstatsd.enabled) + } + ] + + process_vars = var.dd_process_collection.enabled ? [ + { + name = "DD_PROCESS_CONFIG_PROCESS_COLLECTION_ENABLED" + value = "true" + } + ] : [] + + # Static IPv4 address of the daemon bridge, shared by all daemons on an instance. + daemon_bridge_ipv4 = "169.254.172.2" + + # TCP fallback variables. Daemons share a single network namespace per instance + # (the "daemon bridge"), so non-local traffic must be allowed for TCP-based + # DogStatsD/APM communication. UDS is the default transport. + tcp_traffic_vars = concat( + var.dd_dogstatsd.enabled && var.dd_dogstatsd.tcp_enabled ? [ + { + name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" + value = "true" + } + ] : [], + var.dd_apm.enabled && var.dd_apm.tcp_enabled ? [ + { + name = "DD_APM_NON_LOCAL_TRAFFIC" + value = "true" + } + ] : [], + ) + + # User-provided environment variables (highest precedence) + dd_environment = var.dd_environment != null ? var.dd_environment : [] + + # Merge module-defined env with user overrides, deduping by name (user wins). + # `environment` is a Set block on aws_ecs_daemon_task_definition, so unlike the + # other submodules, simple list concatenation cannot express "later entry wins" - + # a duplicate name becomes two set members instead of an override. + merged_env_map = merge( + { for e in concat( + local.base_env, + local.dynamic_env, + local.origin_detection_vars, + local.apm_vars, + local.dogstatsd_vars, + local.process_vars, + local.network_monitoring_env, + local.tcp_traffic_vars, + ) : e.name => e.value }, + { for e in local.dd_environment : e.name => e.value if try(e.name, null) != null }, + ) + + dd_agent_env = [for name, value in local.merged_env_map : { name = name, value = value }] +} + +################################################################################ +# Datadog Agent Container Definition +################################################################################ + +locals { + dd_agent_container_definition = merge( + { + name = "datadog-agent" + image = "${var.dd_registry}:${var.dd_image_version}" + essential = var.dd_essential + cpu = var.dd_cpu + memory = var.dd_memory_limit_mib + environment = local.dd_agent_env + mount_point = local.dd_agent_mount + + secret = var.dd_api_key_secret != null ? [ + { + name = "DD_API_KEY" + value_from = var.dd_api_key_secret.arn + } + ] : [] + }, + try(var.dd_health_check.command == null, true) ? {} : { + health_check = { + command = var.dd_health_check.command + interval = var.dd_health_check.interval + retries = var.dd_health_check.retries + start_period = var.dd_health_check.start_period + timeout = var.dd_health_check.timeout + } + }, + var.dd_network_monitoring.enabled ? { + linux_parameters = { + capabilities = { + add = local.network_monitoring_capabilities + drop = [] + } + } + } : {}, + var.dd_agent_log_configuration != null ? { + log_configuration = { + log_driver = var.dd_agent_log_configuration.log_driver + options = try(var.dd_agent_log_configuration.options, null) + # try() only catches evaluation errors, not null - an omitted (optional, + # no-default) secret_options field evaluates to null without erroring, + # which would otherwise reach a `for_each` downstream and fail with + # "Cannot use a null value in for_each." + secret_option = coalesce(var.dd_agent_log_configuration.secret_options, []) + } + } : {}, + ) +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/iam.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/iam.tf new file mode 100644 index 0000000..9ef3e1a --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/iam.tf @@ -0,0 +1,176 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +# The task role uses the same permission set as the ecs_ec2 module: the agent +# queries ECS and EC2 metadata for host and container tagging the same way +# regardless of launch type. + +# ============================== +# Task Execution Role +# ============================== + +# Will create or edit the *task execution role* +# only if the user provides a Datadog API key secret ARN +# in order to provide permissions to access the secret + +locals { + create_dd_secret_perms = var.dd_api_key_secret != null && try(var.execution_role.add_dd_ecs_permissions, true) + edit_execution_role = var.execution_role != null && local.create_dd_secret_perms + create_execution_role = var.execution_role == null && local.create_dd_secret_perms + parsed_exec_role_name = var.execution_role == null ? null : split("/", var.execution_role.arn)[length(split("/", var.execution_role.arn)) - 1] +} + +# ============================== +# Datadog API Key Secret Policy (Optional) +# ============================== +data "aws_iam_policy_document" "dd_secret_access" { + count = local.create_dd_secret_perms ? 1 : 0 + + statement { + effect = "Allow" + actions = ["secretsmanager:GetSecretValue"] + resources = [var.dd_api_key_secret.arn] + } +} + +resource "aws_iam_policy" "dd_secret_access" { + count = local.create_dd_secret_perms ? 1 : 0 + name = "${var.family}-dd-secret-access" + policy = data.aws_iam_policy_document.dd_secret_access[0].json +} + +# ============================== +# Case 1: User provides existing Task Execution Role +# ============================== +resource "aws_iam_role_policy_attachment" "existing_role_dd_secret" { + count = local.edit_execution_role ? 1 : 0 + role = local.parsed_exec_role_name + policy_arn = aws_iam_policy.dd_secret_access[0].arn +} + +# ============================== +# Case 2: Create a Task Execution Role +# ============================== +resource "aws_iam_role" "new_ecs_task_execution_role" { + count = local.create_execution_role ? 1 : 0 + name = "${var.family}-ecs-task-exec-role" + + assume_role_policy = jsonencode({ + Version = "2012-10-17" + Statement = [{ + Effect = "Allow" + Principal = { + Service = "ecs-tasks.amazonaws.com" + } + Action = "sts:AssumeRole" + }] + }) +} + +locals { + new_execution_role_policy_map = merge( + { "AmazonECSTaskExecutionRolePolicy" = "arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy" }, + local.create_dd_secret_perms ? { "DDSecretAccess" = aws_iam_policy.dd_secret_access[0].arn } : {} + ) +} + +resource "aws_iam_role_policy_attachment" "new_ecs_task_execution_role_policy" { + for_each = local.create_execution_role ? local.new_execution_role_policy_map : {} + role = aws_iam_role.new_ecs_task_execution_role[0].name + policy_arn = each.value +} + +# ============================== +# Task Role +# ============================== + +# Will create or edit the *task role* always +# in order to add permissions for ECS and EC2 metadata collection + +locals { + edit_task_role = var.task_role != null && try(var.task_role.add_dd_ecs_permissions, true) + create_task_role = var.task_role == null + parsed_task_role_name = var.task_role == null ? null : split("/", var.task_role.arn)[length(split("/", var.task_role.arn)) - 1] +} + +# ============================== +# ECS and EC2 Task Permissions Policy +# ============================== +data "aws_iam_policy_document" "dd_ecs_task_permissions" { + count = local.create_task_role || local.edit_task_role ? 1 : 0 + + # ECS metadata collection permissions + statement { + effect = "Allow" + actions = [ + "ecs:ListClusters", + "ecs:ListContainerInstances", + "ecs:DescribeContainerInstances", + "ecs:DescribeTasks", + "ecs:ListTasks" + ] + resources = ["*"] + } + + # EC2 instance metadata collection permissions + statement { + effect = "Allow" + actions = [ + "ec2:DescribeInstances", + "ec2:DescribeTags" + ] + resources = ["*"] + } +} + +resource "aws_iam_policy" "dd_ecs_task_permissions" { + count = local.create_task_role || local.edit_task_role ? 1 : 0 + name = "${var.family}-dd-ecs-task-policy" + policy = data.aws_iam_policy_document.dd_ecs_task_permissions[0].json +} + +# ============================== +# Case 1: User provides existing Task Role +# ============================== +# Always attach `dd_ecs_task_permissions` +resource "aws_iam_role_policy_attachment" "existing_role_ecs_task_permissions" { + count = local.edit_task_role ? 1 : 0 + role = local.parsed_task_role_name + policy_arn = aws_iam_policy.dd_ecs_task_permissions[0].arn +} + + +# ============================== +# Case 2: Create a Task Role +# ============================== + +resource "aws_iam_role" "new_ecs_task_role" { + count = local.create_task_role ? 1 : 0 + name = "${var.family}-ecs-task-role" + + assume_role_policy = jsonencode({ + Version = "2012-10-17" + Statement = [{ + Effect = "Allow" + Principal = { + Service = "ecs-tasks.amazonaws.com" + } + Action = "sts:AssumeRole" + }] + }) +} + +# Always attach `dd_ecs_task_permissions` +locals { + new_task_role_policy_map = { + "DDECSTaskPermissions" = local.create_task_role ? aws_iam_policy.dd_ecs_task_permissions[0].arn : null + } +} + +resource "aws_iam_role_policy_attachment" "new_role_ecs_task_permissions" { + for_each = local.create_task_role ? local.new_task_role_policy_map : {} + role = aws_iam_role.new_ecs_task_role[0].name + policy_arn = each.value +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/outputs.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/outputs.tf new file mode 100644 index 0000000..57670a5 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/outputs.tf @@ -0,0 +1,155 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +################################################################################ +# Daemon Task Definition Outputs +################################################################################ + +output "arn" { + description = "Full ARN of the Daemon Task Definition (including both family and revision)." + value = aws_ecs_daemon_task_definition.datadog_agent.arn +} + +output "family" { + description = "A unique name for your daemon task definition." + value = aws_ecs_daemon_task_definition.datadog_agent.family +} + +output "revision" { + description = "Revision of the daemon task definition in a particular family." + value = aws_ecs_daemon_task_definition.datadog_agent.revision +} + +output "task_role_arn" { + description = "ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services." + value = aws_ecs_daemon_task_definition.datadog_agent.task_role_arn +} + +output "execution_role_arn" { + description = "ARN of the task execution role." + value = aws_ecs_daemon_task_definition.datadog_agent.execution_role_arn +} + +output "tags" { + description = "Key-value map of resource tags." + value = aws_ecs_daemon_task_definition.datadog_agent.tags +} + +output "tags_all" { + description = "Map of tags assigned to the resource, including inherited tags." + value = aws_ecs_daemon_task_definition.datadog_agent.tags_all +} + +output "container_definition" { + description = "JSON-encoded representation of the Datadog Agent container definition, provided for testing/inspection convenience since aws_ecs_daemon_task_definition has no native container_definitions JSON attribute." + value = jsonencode(local.dd_agent_container_definition) + # Transitively includes DD_API_KEY when var.dd_api_key (sensitive) is used, + # so Terraform requires this output itself to be marked sensitive. + sensitive = true +} + +################################################################################ +# Daemon Outputs (Conditional) +################################################################################ + +output "daemon_arn" { + description = "ARN of the daemon. Only available if create_daemon = true." + value = try(aws_ecs_daemon.datadog_agent[0].arn, null) +} + +output "daemon_deployment_arn" { + description = "ARN of the daemon's latest deployment. Only available if create_daemon = true." + value = try(aws_ecs_daemon.datadog_agent[0].deployment_arn, null) +} + +output "daemon_status" { + description = "Status of the daemon (ACTIVE or DELETE_IN_PROGRESS). Only available if create_daemon = true." + value = try(aws_ecs_daemon.datadog_agent[0].status, null) +} + +################################################################################ +# Helper Outputs for User Tasks +################################################################################ + +output "app_dd_sockets_volume" { + description = "Volume definition for the shared UDS socket directory. Add this to your application task definition's volumes to enable UDS communication with the Datadog Agent daemon." + value = { + name = "dd-sockets" + host_path = "/var/run/datadog" + } +} + +output "app_dd_sockets_mount" { + description = "Mount point for the shared UDS socket directory. Add this to your application container's mountPoints to enable communication with the Datadog Agent daemon over Unix Domain Sockets." + value = { + sourceVolume = "dd-sockets" + containerPath = "/var/run/datadog" + readOnly = true + } +} + +output "dogstatsd_env_vars" { + description = "Environment variables for DogStatsD in user application containers. When UDS is enabled (dd_dogstatsd.socket_enabled), provides DD_DOGSTATSD_URL pointing to the Unix socket. Otherwise, when TCP is enabled (dd_dogstatsd.tcp_enabled), provides DD_DOGSTATSD_URL pointing to the daemon bridge IP. Empty when DogStatsD is disabled." + value = !var.dd_dogstatsd.enabled ? [] : ( + var.dd_dogstatsd.socket_enabled ? [ + { + name = "DD_DOGSTATSD_URL" + value = "unix:///var/run/datadog/dsd.socket" + } + ] : var.dd_dogstatsd.tcp_enabled ? [ + { + name = "DD_DOGSTATSD_URL" + value = "udp://${local.daemon_bridge_ipv4}:8125" + } + ] : [] + ) +} + +output "apm_env_vars" { + description = "Environment variables for APM in user application containers. When UDS is enabled (dd_apm.socket_enabled), provides DD_TRACE_AGENT_URL pointing to the Unix socket. Otherwise, when TCP is enabled (dd_apm.tcp_enabled), provides DD_TRACE_AGENT_URL pointing to the daemon bridge IP. Empty when APM is disabled." + value = !var.dd_apm.enabled ? [] : ( + var.dd_apm.socket_enabled ? [ + { + name = "DD_TRACE_AGENT_URL" + value = "unix:///var/run/datadog/apm.socket" + } + ] : var.dd_apm.tcp_enabled ? [ + { + name = "DD_TRACE_AGENT_URL" + value = "http://${local.daemon_bridge_ipv4}:8126" + } + ] : [] + ) +} + +output "data_streams_env_vars" { + description = "Environment variables for Data Streams Monitoring in user application containers. Only includes values when enabled." + value = var.dd_apm.data_streams ? [ + { + name = "DD_DATA_STREAMS_ENABLED" + value = "true" + } + ] : [] +} + +output "profiling_env_vars" { + description = "Environment variables for continuous profiling in user application containers. Only includes values when enabled." + value = var.dd_apm.profiling ? [ + { + name = "DD_PROFILING_ENABLED" + value = "true" + } + ] : [] +} + +output "trace_inferred_proxy_env_vars" { + description = "Environment variables for trace inferred proxy services in user application containers. Only includes values when enabled." + value = var.dd_apm.trace_inferred_proxy_services ? [ + { + name = "DD_TRACE_INFERRED_PROXY_SERVICES_ENABLED" + value = "true" + } + ] : [] +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/variables.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/variables.tf new file mode 100644 index 0000000..9e99401 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/variables.tf @@ -0,0 +1,425 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +################################################################################ +# Datadog ECS Managed Instances Configuration +################################################################################ + +variable "dd_api_key" { + description = "Datadog API Key" + type = string + default = null + sensitive = true +} + +variable "dd_api_key_secret" { + description = "Datadog API Key Secret ARN" + type = object({ + arn = string + }) + default = null + validation { + condition = var.dd_api_key_secret == null || try(var.dd_api_key_secret.arn != null, false) + error_message = "If 'dd_api_key_secret' is set, 'arn' must be a non-null string." + } +} + +variable "dd_registry" { + description = "Datadog Agent image registry" + type = string + default = "public.ecr.aws/datadog/agent" + nullable = false +} + +variable "dd_image_version" { + description = "Datadog Agent image version. ECS Managed Instances daemon mode requires Datadog Agent >= 7.77.0." + type = string + default = "latest" + nullable = false +} + +variable "dd_cpu" { + description = "Datadog Agent container CPU units" + type = number + default = 256 + nullable = false +} + +variable "dd_memory_limit_mib" { + description = "Datadog Agent container memory limit in MiB" + type = number + default = 512 + nullable = false +} + +variable "dd_essential" { + description = "Whether the Datadog Agent container is essential" + type = bool + default = true + nullable = false +} + +variable "dd_health_check" { + description = "Datadog Agent health check configuration. Defaults to Datadog's documented health check command for ECS Managed Instances daemon mode (not the same default used by the ecs_ec2/ecs_fargate modules). aws_ecs_daemon defaults `critical = true` and the Terraform aws_ecs_daemon resource does not expose a way to set `critical = false`, so an unhealthy/flapping health check causes AWS to drain and replace the underlying EC2 instance. Using Datadog's own documented command minimizes that risk." + type = object({ + command = optional(list(string)) + interval = optional(number) + retries = optional(number) + start_period = optional(number) + timeout = optional(number) + }) + default = { + command = ["CMD-SHELL", "agent health"] + interval = 30 + retries = 3 + start_period = 15 + timeout = 5 + } +} + +variable "dd_site" { + description = "Datadog Site" + type = string + default = "datadoghq.com" +} + +variable "dd_environment" { + description = "Datadog Agent container environment variables. Highest precedence and overwrites other environment variables defined by the module. For example, `dd_environment = [ { name = 'DD_VAR', value = 'DD_VAL' } ]`. Defaults to `[]` (not `[{}]` as in the ecs_ec2/ecs_fargate modules) because the `environment` block on aws_ecs_daemon_task_definition is a Terraform Set rather than an ordered list: an empty map would produce an entry with null name/value that passes through into the Set, and precedence must instead be implemented via explicit dedupe-by-name." + type = list(map(string)) + default = [] + nullable = false +} + +variable "dd_tags" { + description = "Datadog Agent global tags (eg. `key1:value1, key2:value2`)" + type = string + default = null +} + +variable "dd_checks_cardinality" { + description = "Datadog Agent checks cardinality" + type = string + default = null + validation { + condition = var.dd_checks_cardinality == null || can(contains(["low", "orchestrator", "high"], var.dd_checks_cardinality)) + error_message = "The Datadog Agent checks cardinality must be one of 'low', 'orchestrator', 'high', or null." + } +} + +variable "dd_dogstatsd" { + description = "Configuration for Datadog DogStatsD. UDS (socket_enabled) is the default and is Datadog-documented for daemon mode on ECS Managed Instances. TCP (tcp_enabled) is also supported: daemons on an instance share a static bridge IP (169.254.172.2) reachable over the network. Origin detection over TCP requires a real DogStatsD client library, since the client embeds the container ID/inode directly in the packet - a hand-rolled socket sender will produce untagged metrics." + type = object({ + enabled = optional(bool, true) + origin_detection_enabled = optional(bool, true) + dogstatsd_cardinality = optional(string, "orchestrator") + socket_enabled = optional(bool, true) + tcp_enabled = optional(bool, false) + }) + default = { + enabled = true + origin_detection_enabled = true + dogstatsd_cardinality = "orchestrator" + socket_enabled = true + tcp_enabled = false + } + validation { + condition = var.dd_dogstatsd != null + error_message = "The Datadog Dogstatsd configuration must be defined." + } + validation { + condition = try(var.dd_dogstatsd.dogstatsd_cardinality == null, false) || can(contains(["low", "orchestrator", "high"], var.dd_dogstatsd.dogstatsd_cardinality)) + error_message = "The Datadog Dogstatsd cardinality must be one of 'low', 'orchestrator', 'high', or null." + } +} + +variable "dd_apm" { + description = "Configuration for Datadog APM. UDS (socket_enabled) is the default and is Datadog-documented for daemon mode on ECS Managed Instances. TCP (tcp_enabled) is also supported: daemons on an instance share a static bridge IP (169.254.172.2) reachable over the network. Origin detection over TCP requires a real APM client library, since the client embeds the container ID directly in the request - a hand-rolled sender will produce untagged traces." + type = object({ + enabled = optional(bool, true) + socket_enabled = optional(bool, true) + tcp_enabled = optional(bool, false) + profiling = optional(bool, false) + trace_inferred_proxy_services = optional(bool, false) + data_streams = optional(bool, false) + }) + default = { + enabled = true + socket_enabled = true + tcp_enabled = false + profiling = false + trace_inferred_proxy_services = false + data_streams = false + } + validation { + condition = var.dd_apm != null + error_message = "The Datadog APM configuration must be defined." + } +} + +variable "dd_log_collection" { + description = "Configuration for Datadog Log Collection. Datadog does NOT support container log collection through the agent in daemon mode on ECS Managed Instances. This variable exists only so the module can fail fast with a clear error if a user tries to enable it (enforced via a precondition on the daemon task definition). Use FireLens or the awslogs log driver configured on the application's own task definition instead." + type = object({ + enabled = optional(bool, false) + }) + default = { + enabled = false + } + validation { + condition = var.dd_log_collection != null + error_message = "The Datadog Log Collection configuration must be defined." + } +} + +variable "dd_orchestrator_explorer" { + description = "Configuration for Datadog Orchestrator Explorer" + type = object({ + enabled = optional(bool, true) + url = optional(string) + }) + default = { + enabled = true + } + validation { + condition = var.dd_orchestrator_explorer != null + error_message = "The Datadog Orchestrator Explorer configuration must be defined." + } +} + +variable "dd_process_collection" { + description = "Configuration for Datadog Live Process collection. When enabled, sets DD_PROCESS_CONFIG_PROCESS_COLLECTION_ENABLED." + type = object({ + enabled = optional(bool, false) + }) + default = { + enabled = false + } + validation { + condition = var.dd_process_collection != null + error_message = "The Datadog Process Collection configuration must be defined." + } +} + +variable "dd_log_level" { + description = "Set logging verbosity for Datadog agent. Valid values: trace, debug, info, warn, error, critical, off" + type = string + default = "info" + validation { + condition = contains(["trace", "debug", "info", "warn", "error", "critical", "off"], var.dd_log_level) + error_message = "dd_log_level must be one of: trace, debug, info, warn, error, critical, off" + } +} + +variable "dd_network_monitoring" { + description = "Configuration for Datadog Cloud Network Monitoring. Linux only. When enabled, adds DD_SYSTEM_PROBE_NETWORK_ENABLED, the linux capabilities required by the system-probe, and a host-mounted /sys/kernel/debug volume." + type = object({ + enabled = optional(bool, false) + }) + default = { + enabled = false + } + validation { + condition = var.dd_network_monitoring != null + error_message = "The Datadog Network Monitoring configuration must be defined." + } +} + +variable "dd_cri_socket_path" { + description = "Path to the containerd socket on the host. It is always mounted at /var/run/containerd/containerd.sock inside the Agent container. ECS Managed Instances uses containerd, not Docker, so this replaces the docker socket path used by the ecs_ec2 module. Defaults to /var/run/containerd/containerd.sock" + type = string + default = "/var/run/containerd/containerd.sock" + nullable = false +} + +variable "dd_proc_path" { + description = "Path to /proc directory on the host. Defaults to /proc/" + type = string + default = "/proc/" + nullable = false +} + +variable "dd_cgroup_path" { + description = "Path to cgroup directory on the host. Defaults to /sys/fs/cgroup/." + type = string + default = "/sys/fs/cgroup/" + nullable = false +} + +variable "dd_agent_log_configuration" { + description = "Log configuration for the Datadog Agent container's OWN logs (not application container logs, which the agent cannot collect in daemon mode on ECS Managed Instances), e.g. routing to CloudWatch via the awslogs driver. Since a failing/unhealthy daemon causes AWS to drain and replace the instance, this is the primary debugging lever available." + type = object({ + log_driver = optional(string) + options = optional(map(string)) + secret_options = optional(list(object({ + name = string + value_from = string + }))) + }) + default = null +} + +################################################################################ +# Task Definition +################################################################################ + +variable "family" { + description = "A unique name for your daemon task definition" + type = string +} + +variable "cpu" { + description = "Number of cpu units used by the task, as a string (e.g. \"256\"). Note this is a string on aws_ecs_daemon_task_definition, unlike the number type used by aws_ecs_task_definition in the other submodules." + type = string + default = null +} + +variable "memory" { + description = "Amount (in MiB) of memory used by the task, as a string (e.g. \"512\"). Note this is a string on aws_ecs_daemon_task_definition, unlike the number type used by aws_ecs_task_definition in the other submodules." + type = string + default = null +} + +variable "execution_role" { + description = "ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume. Contains:\n - `arn` (string): The ARN of the IAM role.\n - `add_dd_ecs_permissions` (bool): Whether to automatically add Datadog ECS permissions to the role to fetch container and cluster metadata." + type = object({ + arn = string + add_dd_ecs_permissions = optional(bool, true) + }) + default = null + validation { + condition = var.execution_role == null || try(var.execution_role.arn != null, false) + error_message = "If 'execution_role' is set, 'arn' must be a non-null string." + } +} + +variable "task_role" { + description = "The ARN of the IAM role that allows your Amazon ECS container task to make calls to other AWS services. Contains:\n - `arn` (string): The ARN of the IAM role.\n - `add_dd_ecs_permissions` (bool): Whether to automatically add Datadog ECS permissions to the role to fetch a provided Datadog API key secret." + type = object({ + arn = string + add_dd_ecs_permissions = optional(bool, true) + }) + default = null + validation { + condition = var.task_role == null || try(var.task_role.arn != null, false) + error_message = "If 'task_role' is set, 'arn' must be a non-null string." + } +} + +variable "tags" { + description = "A map of additional tags to add to the daemon task definition/daemon created" + type = map(string) + default = null +} + +variable "volumes" { + description = "Additional host-path volumes mounted in the Agent container, beyond the ones the module manages. `container_path` defaults to `host_path`. `read_only` defaults to true. Volume names may use letters, numbers, underscores, and hyphens, must be unique, and must not be one of the module-managed volume names: containerd_sock, proc, cgroup, dd-sockets, debug. Host paths and container paths must be absolute. Container paths must be unique and must not be one of the module-managed paths: /var/run/containerd/containerd.sock, /host/proc, /host/sys/fs/cgroup, /var/run/datadog, /sys/kernel/debug. The volume block on aws_ecs_daemon_task_definition only supports `name` + `host.source_path` - no docker_volume_configuration/efs/fsx volume types like the other two submodules, so this type is intentionally simpler." + type = list(object({ + name = string + host_path = string + container_path = optional(string) + read_only = optional(bool, true) + })) + default = [] + + validation { + condition = alltrue([for v in var.volumes : can(regex("^[a-zA-Z0-9_-]{1,255}$", v.name))]) + error_message = "A volume name is not valid. Use letters, numbers, underscores, and hyphens, up to 255 characters." + } + + validation { + condition = length(setintersection([for v in var.volumes : v.name], ["containerd_sock", "proc", "cgroup", "dd-sockets", "debug"])) == 0 + error_message = "A volume name clashes with a module-managed volume. The names containerd_sock, proc, cgroup, dd-sockets, and debug are reserved." + } + + validation { + condition = length(distinct([for v in var.volumes : v.name])) == length(var.volumes) + error_message = "Volume names must be unique." + } + + validation { + condition = alltrue([for v in var.volumes : startswith(v.host_path, "/")]) + error_message = "A volume host_path must be an absolute path." + } + + validation { + condition = alltrue([for v in var.volumes : startswith(coalesce(v.container_path, v.host_path), "/")]) + error_message = "A volume container_path must be an absolute path." + } + + validation { + condition = length(setintersection([for v in var.volumes : coalesce(v.container_path, v.host_path)], ["/var/run/containerd/containerd.sock", "/host/proc", "/host/sys/fs/cgroup", "/var/run/datadog", "/sys/kernel/debug"])) == 0 + error_message = "A volume container_path clashes with a module-managed mount path. The paths /var/run/containerd/containerd.sock, /host/proc, /host/sys/fs/cgroup, /var/run/datadog, and /sys/kernel/debug are reserved." + } + + validation { + condition = length(distinct([for v in var.volumes : coalesce(v.container_path, v.host_path)])) == length(var.volumes) + error_message = "Volume container_path values must be unique." + } +} + +################################################################################ +# Daemon +################################################################################ + +variable "create_daemon" { + description = "Whether to create the aws_ecs_daemon resource. If false, only the daemon task definition is created." + type = bool + default = true + nullable = false +} + +variable "daemon_name" { + description = "Name of the ECS daemon. Defaults to '-datadog-agent'" + type = string + default = null +} + +variable "cluster_arn" { + description = "ARN of the ECS cluster where the Datadog agent daemon will run. Required if create_daemon = true." + type = string + default = null +} + +variable "capacity_provider_arns" { + description = "ARNs of ECS Managed Instances capacity providers the daemon should run on. Required if create_daemon = true. The module does not create the capacity provider, infrastructure role, or instance profile - those must already exist." + type = set(string) + default = [] +} + +variable "deployment_configuration" { + description = "Controls the daemon's rolling deployment behavior across instances. This block is write-only on the AWS side (not readable back from the API), so Terraform plans will always show a diff here - this is expected provider behavior, not a bug. Note: ANY change to the daemon task definition (including something as small as a tag) forces a full replacement and triggers AWS's drain-provision-replace rollout across every instance in the attached capacity providers, so these settings materially affect production availability during that rollout - they are not cosmetic." + type = object({ + drain_percent = optional(number, 25) + bake_time_in_minutes = optional(number, 0) + alarms = optional(object({ + alarm_names = optional(list(string), []) + enable = optional(bool, false) + }), {}) + }) + default = {} +} + +variable "enable_ecs_managed_tags" { + description = "Enable ECS managed tags for the daemon" + type = bool + default = true + nullable = false +} + +variable "enable_execute_command" { + description = "Enable ECS Exec for daemon tasks" + type = bool + default = false + nullable = false +} + +variable "propagate_tags" { + description = "Propagate tags to daemon tasks. Valid values: DAEMON, NONE. Note this differs from the ecs_ec2 module's TASK_DEFINITION/SERVICE/NONE options, since aws_ecs_daemon only supports DAEMON and NONE." + type = string + default = "DAEMON" + validation { + condition = contains(["DAEMON", "NONE"], var.propagate_tags) + error_message = "propagate_tags must be one of: DAEMON, NONE" + } +} diff --git a/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/versions.tf b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/versions.tf new file mode 100644 index 0000000..e050c32 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/ecs-datadog/1.2.2/modules/ecs_managed_instances/input/versions.tf @@ -0,0 +1,23 @@ +# Unless explicitly stated otherwise all files in this repository are licensed +# under the Apache License Version 2.0. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2025-present Datadog, Inc. + +terraform { + # Terraform < 1.10.0 rejects a `dynamic` block's for_each argument when it + # evaluates to a collection of object values, regardless of tolist()/ + # toset() wrapping, for this resource's Set-schema `environment` block + # ("Cannot use a set of object value in for_each"). Confirmed by bisecting + # Terraform releases directly - this is a genuine CLI version floor for + # aws_ecs_daemon_task_definition, not something the module's own HCL can + # work around on older Terraform. + required_version = ">= 1.10.0" + + required_providers { + aws = { + source = "hashicorp/aws" + # aws_ecs_daemon_task_definition and aws_ecs_daemon were added in v6.50.0 + version = ">= 6.50.0" + } + } +} diff --git a/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/LICENSE b/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/NOTICE b/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/NOTICE new file mode 100644 index 0000000..386dfe3 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/NOTICE @@ -0,0 +1,4 @@ +Datadog terraform-aws-lambda-datadog +Copyright 2024-Present Datadog, Inc. + +This product includes software developed at Datadog (https://www.datadoghq.com/). diff --git a/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/fixture.json b/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/fixture.json new file mode 100644 index 0000000..f05f005 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "registry/DataDog/lambda-datadog/4.9.0", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/DataDog/lambda-datadog/aws/4.9.0", + "ref": "4.9.0", + "path": ".", + "archiveSha256": "d1c7f2677f003207bff218d49ae8c11bb8e20e75b77ef936ad9e6e3d2d8ee5e2", + "inputSha256": "86e327ef7d790437e4d722a24eb27fd6adf109546d6736ee441d269b95aa0e78" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "check", + "conditionals", + "data", + "dynamic", + "for_each", + "functions", + "interpolation", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/main.tf b/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/main.tf new file mode 100644 index 0000000..51e0e5e --- /dev/null +++ b/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/main.tf @@ -0,0 +1,263 @@ +data "aws_region" "current" {} +data "aws_partition" "current" {} + +locals { + architecture_layer_suffix_map = { + x86_64 = "", + arm64 = "-ARM" + } + runtime_base = regex("[a-z]+", var.runtime) + runtime_base_environment_variable_map = { + dotnet = { + AWS_LAMBDA_EXEC_WRAPPER = "/opt/datadog_wrapper" + } + java = { + AWS_LAMBDA_EXEC_WRAPPER = "/opt/datadog_wrapper" + } + nodejs = { + DD_LAMBDA_HANDLER = var.handler + } + python = { + DD_LAMBDA_HANDLER = var.handler + } + ruby = { + DD_LAMBDA_HANDLER = var.handler + } + } + runtime_base_handler_map = { + dotnet = var.handler + java = var.handler + nodejs = "/opt/nodejs/node_modules/datadog-lambda-js/handler.handler" + python = "datadog_lambda.handler.handler" + ruby = var.handler + } + runtime_base_layer_version_map = { + dotnet = var.datadog_dotnet_layer_version + java = var.datadog_java_layer_version + nodejs = var.datadog_node_layer_version + python = var.datadog_python_layer_version + ruby = var.datadog_ruby_layer_version + } + runtime_layer_map = { + "dotnet6" = "dd-trace-dotnet" + "dotnet7" = "dd-trace-dotnet" + "dotnet8" = "dd-trace-dotnet" + "dotnet10" = "dd-trace-dotnet" + "java8.al2" = "dd-trace-java" + "java11" = "dd-trace-java" + "java17" = "dd-trace-java" + "java21" = "dd-trace-java" + "java25" = "dd-trace-java" + "nodejs18.x" = "Datadog-Node18-x" + "nodejs20.x" = "Datadog-Node20-x" + "nodejs22.x" = "Datadog-Node22-x" + "nodejs24.x" = "Datadog-Node24-x" + "python3.8" = "Datadog-Python38" + "python3.9" = "Datadog-Python39" + "python3.10" = "Datadog-Python310" + "python3.11" = "Datadog-Python311" + "python3.12" = "Datadog-Python312" + "python3.13" = "Datadog-Python313" + "python3.14" = "Datadog-Python314" + "ruby3.2" = "Datadog-Ruby3-2" + "ruby3.3" = "Datadog-Ruby3-3" + "ruby3.4" = "Datadog-Ruby3-4" + "ruby4.0" = "Datadog-Ruby4-0" + } +} + +locals { + datadog_extension_layer_arn = "${local.datadog_layer_name_base}:Datadog-Extension${local.datadog_extension_layer_suffix}:${var.datadog_extension_layer_version}" + datadog_extension_layer_suffix = var.fips ? "${local.datadog_layer_suffix}-FIPS" : local.datadog_layer_suffix + + datadog_lambda_layer_arn = "${local.datadog_layer_name_base}:${local.datadog_lambda_layer_runtime}${local.datadog_lambda_layer_suffix}:${local.datadog_lambda_layer_version}" + datadog_lambda_layer_suffix = contains(["java", "nodejs"], local.runtime_base) ? "" : local.datadog_layer_suffix # java and nodejs don't have separate layers for ARM + datadog_lambda_layer_runtime = lookup(local.runtime_layer_map, var.runtime, "") + datadog_lambda_layer_version = lookup(local.runtime_base_layer_version_map, local.runtime_base, "") + + datadog_account_id = (data.aws_partition.current.partition == "aws-us-gov") ? "002406178527" : "464622532012" + datadog_layer_name_base = "arn:${data.aws_partition.current.partition}:lambda:${data.aws_region.current.region}:${local.datadog_account_id}:layer" + datadog_layer_suffix = lookup(local.architecture_layer_suffix_map, var.architectures[0]) + + environment_variables = { + common = merge( + { + DD_CAPTURE_LAMBDA_PAYLOAD = "false" + DD_LOGS_INJECTION = "false" + DD_MERGE_XRAY_TRACES = "false" + DD_SERVERLESS_LOGS_ENABLED = "true" + DD_SERVICE = var.function_name + DD_SITE = "datadoghq.com" + DD_TRACE_ENABLED = "true" + }, + var.fips ? { DD_LAMBDA_FIPS_MODE = "true" } : {} + ) + runtime = lookup(local.runtime_base_environment_variable_map, local.runtime_base, {}) + } + + handler = lookup(local.runtime_base_handler_map, local.runtime_base, var.handler) + + layers = { + extension = [local.datadog_extension_layer_arn] + lambda = local.datadog_lambda_layer_runtime == "" ? [] : [local.datadog_lambda_layer_arn] + } + + tags = { + dd_sls_terraform_module = "4.9.0" + } +} + +check "runtime_support" { + assert { + condition = contains( + [ + "dotnet6", + "dotnet7", + "dotnet8", + "dotnet10", + "java8.al2", + "java11", + "java17", + "java21", + "java25", + "nodejs18.x", + "nodejs20.x", + "nodejs22.x", + "nodejs24.x", + "python3.8", + "python3.9", + "python3.10", + "python3.11", + "python3.12", + "python3.13", + "python3.14", + "provided.al2", + "provided.al2023", + "ruby3.2", + "ruby3.3", + "ruby3.4", + "ruby4.0", + ], + var.runtime) + error_message = "${var.runtime} Lambda runtime is not supported by the lambda-datadog Terraform module" + } +} + +check "container_image_support" { + assert { + condition = var.package_type != "Image" + error_message = "Container images are not supported by the lambda-datadog Terraform module" + } +} + +resource "aws_lambda_function" "this" { + architectures = var.architectures + code_signing_config_arn = var.code_signing_config_arn + + dynamic "dead_letter_config" { + for_each = var.dead_letter_config_target_arn != null ? [true] : [] + content { + target_arn = var.dead_letter_config_target_arn + } + } + + description = var.description + + # User defined environment variables take precedence over datadog defined environment variables + # This allows users the option to override default behavior + environment { + variables = merge( + local.environment_variables.common, + local.environment_variables.runtime, + var.environment_variables + ) + } + + dynamic "ephemeral_storage" { + for_each = var.ephemeral_storage_size != null ? [true] : [] + + content { + size = var.ephemeral_storage_size + } + } + + dynamic "file_system_config" { + for_each = var.file_system_config_arn != null && var.file_system_config_local_mount_path != null ? [true] : [] + + content { + arn = var.file_system_config_arn + local_mount_path = var.file_system_config_local_mount_path + } + } + + filename = var.filename + function_name = var.function_name + handler = local.handler + kms_key_arn = var.kms_key_arn + + # Datadog layers are defined in single element lists + # This allows for runtimes where a lambda layer is not needed by concatenating an empty list + layers = concat( + var.layers, + local.layers.lambda, + local.layers.extension, + ) + + dynamic "logging_config" { + for_each = var.logging_config_log_format != null ? [true] : [] + + content { + application_log_level = var.logging_config_log_format == "Text" ? null : var.logging_config_application_log_level + log_group = var.logging_config_log_group + log_format = var.logging_config_log_format + system_log_level = var.logging_config_log_format == "Text" ? null : var.logging_config_system_log_level + } + } + + memory_size = var.memory_size + package_type = var.package_type + publish = var.publish + reserved_concurrent_executions = var.reserved_concurrent_executions + role = var.role + runtime = var.runtime + s3_bucket = var.s3_bucket + s3_key = var.s3_key + s3_object_version = var.s3_object_version + skip_destroy = var.skip_destroy + source_code_hash = var.source_code_hash + + dynamic "snap_start" { + for_each = var.snap_start_apply_on != null ? [true] : [] + + content { + apply_on = var.snap_start_apply_on + } + } + + # Datadog defined tags take precedence over user defined tags + # This is to ensure that the dd_sls_terraform_module tag is set correctly + tags = merge( + var.tags, + local.tags + ) + + timeout = var.timeout + + dynamic "tracing_config" { + for_each = var.tracing_config_mode != null ? [true] : [] + + content { + mode = var.tracing_config_mode + } + } + + dynamic "vpc_config" { + for_each = var.vpc_config_security_group_ids != null && var.vpc_config_subnet_ids != null ? [true] : [] + + content { + ipv6_allowed_for_dual_stack = var.vpc_config_ipv6_allowed_for_dual_stack + security_group_ids = var.vpc_config_security_group_ids + subnet_ids = var.vpc_config_subnet_ids + } + } +} diff --git a/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/outputs.tf b/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/outputs.tf new file mode 100644 index 0000000..9885ed0 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/outputs.tf @@ -0,0 +1,189 @@ +output "architectures" { + description = "Instruction set architecture for your Lambda function." + value = aws_lambda_function.this.architectures +} + +output "arn" { + description = "Amazon Resource Name (ARN) identifying your Lambda Function." + value = aws_lambda_function.this.arn +} + +output "code_signing_config_arn" { + description = "To enable code signing for this function, specify the ARN of a code-signing configuration." + value = aws_lambda_function.this.code_signing_config_arn +} + +output "dead_letter_config" { + description = "ARN of an SNS topic or SQS queue to notify when an invocation fails." + value = aws_lambda_function.this.dead_letter_config +} + +output "description" { + description = "Description of what your Lambda Function does." + value = aws_lambda_function.this.description +} + +output "environment" { + description = "Map of environment variables that are accessible from the function code during execution." + value = aws_lambda_function.this.environment +} + +output "ephemeral_storage" { + description = "The amount of Ephemeral storage(/tmp) to allocate for the Lambda Function in MB." + value = aws_lambda_function.this.ephemeral_storage +} + +output "file_system_config" { + description = "Connection settings for an EFS file system." + value = aws_lambda_function.this.file_system_config +} + +output "filename" { + description = "Path to the function's deployment package within the local filesystem." + value = aws_lambda_function.this.filename +} + +output "function_name" { + description = "Unique name for your Lambda Function" + value = aws_lambda_function.this.function_name +} + +output "handler" { + description = "Function entrypoint in your code." + value = aws_lambda_function.this.handler +} + +output "invoke_arn" { + description = "ARN to be used for invoking Lambda Function from API Gateway." + value = aws_lambda_function.this.invoke_arn +} + +output "kms_key_arn" { + description = "Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key that is used to encrypt environment variables." + value = aws_lambda_function.this.kms_key_arn +} + +output "last_modified" { + description = "Date this resource was last modified." + value = aws_lambda_function.this.last_modified +} + +output "layers" { + description = "List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function." + value = aws_lambda_function.this.layers +} + +output "logging_config" { + description = "Advanced logging settings." + value = aws_lambda_function.this.logging_config +} + +output "memory_size" { + description = "Amount of memory in MB your Lambda Function can use at runtime." + value = aws_lambda_function.this.memory_size +} + +output "package_type" { + description = "Lambda deployment package type." + value = aws_lambda_function.this.package_type +} + +output "publish" { + description = "Whether to publish creation/change as new Lambda Function Version." + value = aws_lambda_function.this.publish +} + +output "qualified_arn" { + description = "ARN identifying your Lambda Function Version." + value = aws_lambda_function.this.qualified_arn +} + +output "qualified_invoke_arn" { + description = "Qualified ARN (ARN with lambda version number) to be used for invoking Lambda Function from API Gateway." + value = aws_lambda_function.this.qualified_invoke_arn +} + +output "reserved_concurrent_executions" { + description = "Amount of reserved concurrent executions for this lambda function." + value = aws_lambda_function.this.reserved_concurrent_executions +} + +output "runtime" { + description = "Identifier of the function's runtime." + value = aws_lambda_function.this.runtime +} + +output "s3_bucket" { + description = "S3 bucket location containing the function's deployment package." + value = aws_lambda_function.this.s3_bucket +} + +output "s3_key" { + description = "S3 key of an object containing the function's deployment package." + value = aws_lambda_function.this.s3_key +} + +output "s3_object_version" { + description = "Object version containing the function's deployment package." + value = aws_lambda_function.this.s3_object_version +} + +output "signing_job_arn" { + description = "ARN of the signing job." + value = aws_lambda_function.this.signing_job_arn +} + +output "signing_profile_version_arn" { + description = "ARN of the signing profile version." + value = aws_lambda_function.this.signing_profile_version_arn +} + +output "skip_destroy" { + description = "Set to true if you do not wish the function to be deleted at destroy time, and instead just remove the function from the Terraform state." + value = aws_lambda_function.this.skip_destroy +} + +output "snap_start" { + description = "Snap start settings for low-latency startups." + value = aws_lambda_function.this.snap_start +} + +output "source_code_hash" { + description = "Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either filename or s3_key." + value = aws_lambda_function.this.source_code_hash +} + +output "source_code_size" { + description = "Size in bytes of the function .zip file." + value = aws_lambda_function.this.source_code_size +} + +output "tags" { + description = "Map of tags to assign to the object." + value = aws_lambda_function.this.tags +} + +output "tags_all" { + description = "A map of tags assigned to the resource, including those inherited from the provider." + value = aws_lambda_function.this.tags_all +} + +output "timeout" { + description = "Amount of time your Lambda Function has to run in seconds." + value = aws_lambda_function.this.timeout +} + +output "tracing_config" { + description = "Tracing settings." + value = aws_lambda_function.this.tracing_config +} + +output "version" { + description = "Latest published version of your Lambda Function." + value = aws_lambda_function.this.version +} + +output "vpc_config" { + description = "VPC settings." + value = aws_lambda_function.this.vpc_config +} diff --git a/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/variables.tf b/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/variables.tf new file mode 100644 index 0000000..2d51b53 --- /dev/null +++ b/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/variables.tf @@ -0,0 +1,260 @@ +########### +# Datadog +########### + +variable "datadog_extension_layer_version" { + description = "Version for the Datadog Extension Layer" + type = number + default = 99 +} + +variable "datadog_dotnet_layer_version" { + description = "Version for the Datadog .NET Layer" + type = number + default = 25 +} + +variable "datadog_java_layer_version" { + description = "Version for the Datadog Java Layer" + type = number + default = 27 +} + +variable "datadog_node_layer_version" { + description = "Version for the Datadog Node Layer" + type = number + default = 142 +} + +variable "datadog_python_layer_version" { + description = "Version for the Datadog Python Layer" + type = number + default = 127 +} + +variable "datadog_ruby_layer_version" { + description = "Version for the Datadog Ruby Layer" + type = number + default = 28 +} + +variable "fips" { + description = "Enable FIPS mode for Datadog Lambda extension" + type = bool + default = false +} + + +################### +# Lambda Function +################### + +variable "architectures" { + description = "Instruction set architecture for your Lambda function. Valid values are [\"x86_64\"] and [\"arm64\"]." + type = list(string) + default = ["x86_64"] +} + +variable "code_signing_config_arn" { + description = "To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function." + type = string + default = null +} + +variable "dead_letter_config_target_arn" { + description = "ARN of an SNS topic or SQS queue to notify when an invocation fails." + type = string + default = null +} + +variable "description" { + description = "Description of what your Lambda Function does." + type = string + default = null +} + +variable "environment_variables" { + description = "Map of environment variables that are accessible from the function code during execution." + type = map(string) + default = {} +} + +variable "ephemeral_storage_size" { + description = "The amount of Ephemeral storage(/tmp) to allocate for the Lambda Function in MB." + type = number + default = null +} + +variable "file_system_config_arn" { + description = "Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system." + type = string + default = null +} + +variable "file_system_config_local_mount_path" { + description = "Path where the function can access the file system, starting with /mnt/." + type = string + default = null +} + +variable "filename" { + description = "Path to the function's deployment package within the local filesystem." + type = string + default = null +} + +variable "function_name" { + description = "Unique name for your Lambda Function." + type = string + default = null +} + +variable "handler" { + description = "Function entrypoint in your code." + type = string + default = null +} + +variable "kms_key_arn" { + description = "Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key that is used to encrypt environment variables." + type = string + default = null +} + +variable "layers" { + description = "List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function." + type = list(string) + default = [] +} + +variable "logging_config_application_log_level" { + description = "For JSON structured logs, choose the detail level of the logs your application sends to CloudWatch when using supported logging libraries." + type = string + default = null +} + +variable "logging_config_log_format" { + description = "Select between Text and structured JSON format for your function's logs." + type = string + default = null +} + +variable "logging_config_log_group" { + description = "The CloudWatch log group your function sends logs to." + type = string + default = null +} + +variable "logging_config_system_log_level" { + description = "For JSON structured logs, choose the detail level of the Lambda platform event logs sent to CloudWatch, such as ERROR, DEBUG, or INFO." + type = string + default = null +} + +variable "memory_size" { + description = "Amount of memory in MB your Lambda Function can use at runtime." + type = number + default = null +} + +variable "package_type" { + description = "Lambda deployment package type." + type = string + default = null +} + +variable "publish" { + description = "Whether to publish creation/change as new Lambda Function Version." + type = bool + default = null +} + +variable "reserved_concurrent_executions" { + description = "Amount of reserved concurrent executions for this lambda function." + type = number + default = null +} + +variable "role" { + description = "Amazon Resource Name (ARN) of the function's execution role. The role provides the function's identity and access to AWS services and resources." + type = string + default = null +} + +variable "runtime" { + description = "Identifier of the function's runtime." + type = string + default = null +} + +variable "s3_bucket" { + description = "S3 bucket location containing the function's deployment package." + type = string + default = null +} + +variable "s3_key" { + description = "S3 key of an object containing the function's deployment package." + type = string + default = null +} + +variable "s3_object_version" { + description = "Object version containing the function's deployment package." + type = string + default = null +} + +variable "skip_destroy" { + description = "Set to true if you do not wish the function to be deleted at destroy time, and instead just remove the function from the Terraform state." + type = bool + default = null +} + +variable "snap_start_apply_on" { + description = "Conditions where snap start is enabled." + type = string + default = null +} + +variable "source_code_hash" { + description = "Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either filename or s3_key." + type = string + default = null +} + +variable "tags" { + description = "Map of tags to assign to the object." + type = map(string) + default = null +} + +variable "timeout" { + description = "Amount of time your Lambda Function has to run in seconds." + type = number + default = null +} + +variable "tracing_config_mode" { + description = "Whether to sample and trace a subset of incoming requests with AWS X-Ray." + type = string + default = null +} + +variable "vpc_config_ipv6_allowed_for_dual_stack" { + description = "Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets." + type = bool + default = null +} + +variable "vpc_config_security_group_ids" { + description = "List of security group IDs associated with the Lambda function." + type = set(string) + default = null +} + +variable "vpc_config_subnet_ids" { + description = "List of subnet IDs associated with the Lambda function." + type = set(string) + default = null +} diff --git a/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/versions.tf b/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/versions.tf new file mode 100644 index 0000000..764b43a --- /dev/null +++ b/conformance/fixtures/registry/DataDog/lambda-datadog/4.9.0/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.5.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 6.0.0" + } + } +} diff --git a/conformance/fixtures/registry/Guimove/bastion/3.0.6/LICENSE b/conformance/fixtures/registry/Guimove/bastion/3.0.6/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/registry/Guimove/bastion/3.0.6/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/Guimove/bastion/3.0.6/fixture.json b/conformance/fixtures/registry/Guimove/bastion/3.0.6/fixture.json new file mode 100644 index 0000000..f1961a7 --- /dev/null +++ b/conformance/fixtures/registry/Guimove/bastion/3.0.6/fixture.json @@ -0,0 +1,38 @@ +{ + "schema": 1, + "id": "registry/Guimove/bastion/3.0.6", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/Guimove/bastion/aws/3.0.6", + "ref": "3.0.6", + "path": ".", + "archiveSha256": "20632fcef5857ed5cb3d62f28cb235335c94a36fbb8b205bfc4612f65654ccf9", + "inputSha256": "562b43f44de88656ed9dc607ede49a0aa3355bac69f1ce72b4119e942235abb7" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "depends_on", + "dynamic", + "for_each", + "functions", + "interpolation", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/buckets.tf b/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/buckets.tf new file mode 100644 index 0000000..7b25d46 --- /dev/null +++ b/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/buckets.tf @@ -0,0 +1,65 @@ +resource "aws_s3_bucket" "bucket" { + bucket = var.bucket_name + force_destroy = var.bucket_force_destroy + tags = merge(var.tags) +} + +resource "aws_s3_bucket_server_side_encryption_configuration" "bucket" { + bucket = aws_s3_bucket.bucket.id + + rule { + apply_server_side_encryption_by_default { + kms_master_key_id = aws_kms_key.key.id + sse_algorithm = "aws:kms" + } + } +} + +resource "aws_s3_bucket_acl" "bucket" { + bucket = aws_s3_bucket.bucket.id + acl = "private" + + depends_on = [aws_s3_bucket_ownership_controls.bucket-acl-ownership] +} + +resource "aws_s3_bucket_ownership_controls" "bucket-acl-ownership" { + bucket = aws_s3_bucket.bucket.id + rule { + object_ownership = "BucketOwnerPreferred" + } +} + +resource "aws_s3_bucket_versioning" "bucket" { + bucket = aws_s3_bucket.bucket.id + + versioning_configuration { + status = var.bucket_versioning ? "Enabled" : "Suspended" + } +} + +resource "aws_s3_bucket_lifecycle_configuration" "bucket" { + bucket = aws_s3_bucket.bucket.id + + rule { + id = "log" + status = var.enable_logs_s3_sync && var.log_auto_clean ? "Enabled" : "Disabled" + + filter { + prefix = "logs/" + } + + transition { + days = var.log_standard_ia_days + storage_class = "STANDARD_IA" + } + + transition { + days = var.log_glacier_days + storage_class = "GLACIER" + } + + expiration { + days = var.log_expiry_days + } + } +} diff --git a/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/data.tf b/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/data.tf new file mode 100644 index 0000000..5174475 --- /dev/null +++ b/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/data.tf @@ -0,0 +1,16 @@ +data "aws_ami" "amazon-linux-2" { + most_recent = true + owners = ["amazon"] + name_regex = "^amzn2-ami-hvm.*-ebs" + + filter { + name = "architecture" + values = ["x86_64"] + } +} + +data "aws_subnet" "subnets" { + count = length(var.elb_subnets) + id = var.elb_subnets[count.index] +} + diff --git a/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/locals.tf b/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/locals.tf new file mode 100644 index 0000000..e2a0a32 --- /dev/null +++ b/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/locals.tf @@ -0,0 +1,10 @@ +locals { + name_prefix = var.bastion_launch_template_name + security_group = join("", flatten([aws_security_group.bastion_host_security_group[*].id, var.bastion_security_group_id])) + + // the compact() function checks for null values and gets rid of them + // the length is a check to ensure we dont have an empty array, as an empty array would throw an error for the cidr_block argument + ipv4_cidr_block = length(compact(data.aws_subnet.subnets[*].cidr_block)) == 0 ? null : concat(data.aws_subnet.subnets[*].cidr_block, var.cidrs) + ipv6_cidr_block = length(compact(data.aws_subnet.subnets[*].ipv6_cidr_block)) == 0 ? null : concat(data.aws_subnet.subnets[*].ipv6_cidr_block, var.ipv6_cidrs) +} + diff --git a/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/main.tf b/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/main.tf new file mode 100644 index 0000000..5ecfc5e --- /dev/null +++ b/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/main.tf @@ -0,0 +1,324 @@ +resource "aws_kms_key" "key" { + enable_key_rotation = var.kms_enable_key_rotation + tags = merge(var.tags) +} + +resource "aws_kms_alias" "alias" { + name = "alias/${replace(var.bucket_name, ".", "_")}" + target_key_id = aws_kms_key.key.arn +} + +data "aws_kms_alias" "kms-ebs" { + name = "alias/aws/ebs" +} + +resource "aws_s3_object" "bucket_public_keys_readme" { + bucket = aws_s3_bucket.bucket.id + key = "public-keys/README.txt" + content = "Drop here the ssh public keys of the instances you want to control" + kms_key_id = aws_kms_key.key.arn +} + +resource "aws_security_group" "bastion_host_security_group" { + count = var.bastion_security_group_id == "" ? 1 : 0 + description = "Enable SSH access to the bastion host from external via SSH port" + name = "${local.name_prefix}-host" + vpc_id = var.vpc_id + + tags = merge(var.tags) +} + +resource "aws_security_group_rule" "ingress_bastion" { + count = var.bastion_security_group_id == "" && var.create_elb ? 1 : 0 + description = "Incoming traffic to bastion" + type = "ingress" + from_port = var.public_ssh_port + to_port = var.public_ssh_port + protocol = "TCP" + cidr_blocks = local.ipv4_cidr_block + ipv6_cidr_blocks = local.ipv6_cidr_block + + security_group_id = local.security_group +} + +resource "aws_security_group_rule" "egress_bastion" { + count = var.bastion_security_group_id == "" ? 1 : 0 + description = "Outgoing traffic from bastion to instances" + type = "egress" + from_port = "0" + to_port = "65535" + protocol = "-1" + cidr_blocks = ["0.0.0.0/0"] + + security_group_id = local.security_group +} + +resource "aws_security_group" "private_instances_security_group" { + description = "Enable SSH access to the Private instances from the bastion via SSH port" + name = "${local.name_prefix}-priv-instances" + vpc_id = var.vpc_id + + tags = merge(var.tags) +} + +resource "aws_security_group_rule" "ingress_instances" { + description = "Incoming traffic from bastion" + type = "ingress" + from_port = var.private_ssh_port + to_port = var.private_ssh_port + protocol = "TCP" + + source_security_group_id = local.security_group + + security_group_id = aws_security_group.private_instances_security_group.id +} + +data "aws_iam_policy_document" "assume_policy_document" { + statement { + actions = [ + "sts:AssumeRole" + ] + principals { + type = "Service" + identifiers = ["ec2.amazonaws.com"] + } + } +} + +resource "aws_iam_role" "bastion_host_role" { + name = var.bastion_iam_role_name + path = "/" + assume_role_policy = data.aws_iam_policy_document.assume_policy_document.json + permissions_boundary = var.bastion_iam_permissions_boundary +} + +data "aws_iam_policy_document" "bastion_host_policy_document" { + + statement { + actions = [ + "s3:PutObject", + "s3:PutObjectAcl" + ] + resources = ["${aws_s3_bucket.bucket.arn}/logs/*"] + } + + statement { + actions = [ + "s3:GetObject" + ] + resources = ["${aws_s3_bucket.bucket.arn}/public-keys/*"] + } + + statement { + actions = [ + "s3:ListBucket" + ] + resources = [ + aws_s3_bucket.bucket.arn] + + condition { + test = "ForAnyValue:StringEquals" + values = ["public-keys/"] + variable = "s3:prefix" + } + } + + statement { + actions = [ + + "kms:Encrypt", + "kms:Decrypt" + ] + resources = [aws_kms_key.key.arn] + } + +} + +resource "aws_iam_policy" "bastion_host_policy" { + name = var.bastion_iam_policy_name + policy = data.aws_iam_policy_document.bastion_host_policy_document.json +} + +resource "aws_iam_role_policy_attachment" "bastion_host" { + policy_arn = aws_iam_policy.bastion_host_policy.arn + role = aws_iam_role.bastion_host_role.name +} + +resource "aws_route53_record" "bastion_record_name" { + name = var.bastion_record_name + zone_id = var.hosted_zone_id + type = "A" + count = var.create_dns_record && var.create_elb ? 1 : 0 + + alias { + evaluate_target_health = true + name = aws_lb.bastion_lb[0].dns_name + zone_id = aws_lb.bastion_lb[0].zone_id + } +} + +resource "aws_lb" "bastion_lb" { + count = var.create_elb ? 1 : 0 + + internal = var.is_lb_private + name = "${local.name_prefix}-lb" + + subnets = var.elb_subnets + + load_balancer_type = "network" + tags = merge(var.tags) + + lifecycle { + precondition { + condition = !var.create_elb || (length(var.elb_subnets) > 0 && var.is_lb_private != null) + error_message = "elb_subnets and is_lb_private must be set when creating a load balancer" + } + } +} + +resource "aws_lb_target_group" "bastion_lb_target_group" { + count = var.create_elb ? 1 : 0 + + name = "${local.name_prefix}-lb-target" + port = var.public_ssh_port + protocol = "TCP" + vpc_id = var.vpc_id + target_type = "instance" + + health_check { + port = "traffic-port" + protocol = "TCP" + } + + tags = merge(var.tags) +} + +resource "aws_lb_listener" "bastion_lb_listener_22" { + count = var.create_elb ? 1 : 0 + + default_action { + target_group_arn = aws_lb_target_group.bastion_lb_target_group[0].arn + type = "forward" + } + + load_balancer_arn = aws_lb.bastion_lb[0].arn + port = var.public_ssh_port + protocol = "TCP" +} + +resource "aws_iam_instance_profile" "bastion_host_profile" { + role = aws_iam_role.bastion_host_role.name + path = "/" +} + +resource "aws_launch_template" "bastion_launch_template" { + name_prefix = local.name_prefix + image_id = var.bastion_ami != "" ? var.bastion_ami : data.aws_ami.amazon-linux-2.id + instance_type = var.instance_type + update_default_version = true + monitoring { + enabled = true + } + network_interfaces { + associate_public_ip_address = var.associate_public_ip_address + security_groups = concat([local.security_group], var.bastion_additional_security_groups) + delete_on_termination = true + } + iam_instance_profile { + name = aws_iam_instance_profile.bastion_host_profile.name + } + key_name = var.bastion_host_key_pair + + user_data = base64encode(templatefile("${path.module}/user_data.sh", { + aws_region = var.region + bucket_name = var.bucket_name + extra_user_data_content = var.extra_user_data_content + allow_ssh_commands = lower(var.allow_ssh_commands) + public_ssh_port = var.public_ssh_port + sync_logs_cron_job = var.enable_logs_s3_sync ? "*/5 * * * * /usr/bin/bastion/sync_s3" : "" + })) + + block_device_mappings { + device_name = "/dev/xvda" + ebs { + volume_size = var.disk_size + volume_type = "gp2" + delete_on_termination = true + encrypted = var.disk_encrypt + kms_key_id = var.disk_encrypt ? data.aws_kms_alias.kms-ebs.target_key_arn : "" + } + } + + tag_specifications { + resource_type = "instance" + tags = merge(tomap({ "Name" = var.bastion_launch_template_name }), merge(var.tags)) + } + + tag_specifications { + resource_type = "volume" + tags = merge(tomap({ "Name" = var.bastion_launch_template_name }), merge(var.tags)) + } + + metadata_options { + http_endpoint = var.http_endpoint ? "enabled" : "disabled" + http_tokens = var.use_imds_v2 ? "required" : "optional" + http_put_response_hop_limit = var.http_put_response_hop_limit + http_protocol_ipv6 = var.enable_http_protocol_ipv6 ? "enabled" : "disabled" + instance_metadata_tags = var.enable_instance_metadata_tags ? "enabled" : "disabled" + } + + lifecycle { + create_before_destroy = true + } +} + +resource "aws_autoscaling_group" "bastion_auto_scaling_group" { + name_prefix = "ASG-${local.name_prefix}" + launch_template { + id = aws_launch_template.bastion_launch_template.id + version = aws_launch_template.bastion_launch_template.latest_version + } + max_size = var.bastion_instance_count + min_size = var.bastion_instance_count + desired_capacity = var.bastion_instance_count + + vpc_zone_identifier = var.auto_scaling_group_subnets + + default_cooldown = 180 + health_check_grace_period = 180 + health_check_type = "EC2" + + target_group_arns = var.create_elb ? [ + aws_lb_target_group.bastion_lb_target_group[0].arn, + ] : null + + termination_policies = [ + "OldestLaunchConfiguration", + ] + + dynamic "tag" { + for_each = var.tags + + content { + key = tag.key + value = tag.value + propagate_at_launch = true + } + } + + tag { + key = "Name" + value = "ASG-${local.name_prefix}" + propagate_at_launch = true + } + + instance_refresh { + strategy = "Rolling" + } + + lifecycle { + create_before_destroy = true + } + + depends_on = [aws_s3_bucket.bucket] +} diff --git a/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/outputs.tf b/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/outputs.tf new file mode 100644 index 0000000..de7b64f --- /dev/null +++ b/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/outputs.tf @@ -0,0 +1,54 @@ +output "bastion_auto_scaling_group_name" { + description = "The name of the Auto Scaling Group for bastion hosts" + value = aws_autoscaling_group.bastion_auto_scaling_group.name +} + +output "bastion_elb_id" { + description = "The ID of the ELB for bastion hosts" + value = var.create_elb ? try(aws_lb.bastion_lb[0].id, null) : null +} + +output "bastion_host_security_group" { + description = "The ID of the bastion host security group" + value = aws_security_group.bastion_host_security_group[*].id +} + +output "bucket_arn" { + description = "The ARN of the S3 bucket" + value = aws_s3_bucket.bucket.arn +} + +output "bucket_kms_key_alias" { + description = "The name of the KMS key alias for the bucket" + value = aws_kms_alias.alias.name +} + +output "bucket_kms_key_arn" { + description = "The ARN of the KMS key for the bucket" + value = aws_kms_key.key.arn +} + +output "bucket_name" { + description = "The ID of the S3 bucket" + value = aws_s3_bucket.bucket.id +} + +output "elb_arn" { + description = "The ARN of the ELB for bastion hosts" + value = var.create_elb ? try(aws_lb.bastion_lb[0].arn, null) : null +} + +output "elb_ip" { + description = "The DNS name of the ELB for bastion hosts" + value = var.create_elb ? try(aws_lb.bastion_lb[0].dns_name, null) : null +} + +output "private_instances_security_group" { + description = "The ID of the security group for private instances" + value = aws_security_group.private_instances_security_group.id +} + +output "target_group_arn" { + description = "The ARN of the target group for the ELB" + value = var.create_elb ? try(aws_lb_target_group.bastion_lb_target_group[0].arn, null) : null +} diff --git a/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/providers.tf b/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/providers.tf new file mode 100644 index 0000000..7800deb --- /dev/null +++ b/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/providers.tf @@ -0,0 +1,10 @@ +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.0" + } + } + + required_version = "~> 1.0" +} diff --git a/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/variables.tf b/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/variables.tf new file mode 100644 index 0000000..2f5c9e2 --- /dev/null +++ b/conformance/fixtures/registry/Guimove/bastion/3.0.6/input/variables.tf @@ -0,0 +1,255 @@ +variable "allow_ssh_commands" { + type = bool + description = "Allows the SSH user to execute one-off commands. Pass true to enable. Warning: These commands are not logged and increase the vulnerability of the system. Use at your own discretion." + default = false +} + +variable "associate_public_ip_address" { + type = bool + default = true +} + +variable "auto_scaling_group_subnets" { + type = list(string) + description = "List of subnets where the Auto Scaling Group will deploy the instances" +} + +variable "bastion_additional_security_groups" { + type = list(string) + description = "List of additional security groups to attach to the launch template" + default = [] +} + +variable "bastion_ami" { + type = string + description = "The AMI that the Bastion Host will use." + default = "" +} + +variable "bastion_host_key_pair" { + type = string + description = "Select the key pair to use to launch the bastion host" +} + +variable "bastion_iam_permissions_boundary" { + type = string + description = "IAM Role Permissions Boundary to constrain the bastion host role" + default = "" +} + +variable "bastion_iam_policy_name" { + type = string + description = "IAM policy name to create for granting the instance role access to the bucket" + default = "BastionHost" +} + +variable "bastion_iam_role_name" { + type = string + description = "IAM role name to create" + default = null +} + +variable "bastion_instance_count" { + type = number + default = 1 +} + +variable "bastion_launch_template_name" { + type = string + description = "Bastion Launch template Name, will also be used for the ASG" + default = "bastion-lt" +} + +variable "bastion_record_name" { + type = string + description = "DNS record name to use for the bastion" + default = "" +} + +variable "bastion_security_group_id" { + type = string + description = "Custom security group to use" + default = "" +} + +variable "bucket_force_destroy" { + type = bool + default = false + description = "The bucket and all objects should be destroyed when using true" +} + +variable "bucket_name" { + type = string + description = "Bucket name where the bastion will store the logs" +} + +variable "bucket_versioning" { + type = bool + default = true + description = "Enable bucket versioning or not" +} + +variable "cidrs" { + type = list(string) + description = "List of CIDRs that can access the bastion. Default: 0.0.0.0/0" + + default = [ + "0.0.0.0/0", + ] +} + +variable "create_dns_record" { + type = bool + description = "Choose if you want to create a record name for the bastion (LB). If true, 'hosted_zone_id' and 'bastion_record_name' are mandatory" +} + +variable "create_elb" { + type = bool + description = "Choose if you want to deploy an ELB for accessing bastion hosts. If true, you must set elb_subnets and is_lb_private" + default = true +} + +variable "disk_encrypt" { + type = bool + description = "Instance EBS encryption" + default = true +} + +variable "disk_size" { + type = number + description = "Root EBS size in GB" + default = 8 +} + +variable "elb_subnets" { + type = list(string) + description = "List of subnets where the ELB will be deployed" + default = [] +} + +variable "enable_http_protocol_ipv6" { + type = bool + description = "Enables or disables the IPv6 endpoint for the instance metadata service" + default = false +} + +variable "enable_instance_metadata_tags" { + type = bool + description = "Enables or disables access to instance tags from the instance metadata service" + default = false +} + +variable "enable_logs_s3_sync" { + type = bool + description = "Enable cron job to copy logs to S3" + default = true +} + +variable "extra_user_data_content" { + type = string + description = "Additional scripting to pass to the bastion host. For example, this can include installing PostgreSQL for the `psql` command." + default = "" +} + +variable "hosted_zone_id" { + type = string + description = "Name of the hosted zone where we'll register the bastion DNS name" + default = "" +} + +variable "http_endpoint" { + type = bool + description = "Whether the metadata service is available" + default = true +} + +variable "http_put_response_hop_limit" { + type = number + description = "The desired HTTP PUT response hop limit for instance metadata requests" + default = 1 +} + +variable "instance_type" { + type = string + description = "Instance size of the bastion" + default = "t3.nano" +} + +variable "ipv6_cidrs" { + type = list(string) + description = "List of IPv6 CIDRs that can access the bastion. Default: ::/0" + + default = [ + "::/0", + ] +} + +variable "is_lb_private" { + type = bool + nullable = true + default = null + description = "If TRUE, the load balancer scheme will be \"internal\" else \"internet-facing\"" +} + +variable "kms_enable_key_rotation" { + type = bool + description = "Enable key rotation for the KMS key" + default = false +} + +variable "log_auto_clean" { + type = bool + description = "Enable or disable the lifecycle" + default = false +} + +variable "log_expiry_days" { + type = number + description = "Number of days before logs expiration" + default = 90 +} + +variable "log_glacier_days" { + type = number + description = "Number of days before moving logs to Glacier" + default = 60 +} + +variable "log_standard_ia_days" { + type = number + description = "Number of days before moving logs to IA Storage" + default = 30 +} + +variable "private_ssh_port" { + type = number + description = "Set the SSH port to use between the bastion and private instance" + default = 22 +} + +variable "public_ssh_port" { + type = number + description = "Set the SSH port to use from desktop to the bastion" + default = 22 +} + +variable "region" { + type = string +} + +variable "tags" { + type = map(string) + default = {} + description = "A mapping of tags to assign" +} + +variable "use_imds_v2" { + type = bool + description = "Use (IMDSv2) Instance Metadata Service V2" + default = false +} + +variable "vpc_id" { + type = string + description = "VPC ID where we'll deploy the bastion" +} diff --git a/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/LICENSE b/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/fixture.json b/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/fixture.json new file mode 100644 index 0000000..eb2ed26 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/fixture.json @@ -0,0 +1,30 @@ +{ + "schema": 1, + "id": "registry/HENNGE/cloudwatch-dashboard/1.0.2", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/HENNGE/cloudwatch-dashboard/aws/1.0.2", + "ref": "1.0.2", + "path": ".", + "archiveSha256": "d0ef56a2968c133cfdd9adccc1c6d5dd59fc55170cb569d02152933902daae09", + "inputSha256": "650500e843df42e3a1d27899550baa3b702d6db3fd63fe70ebd961f6ff214972" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "functions", + "locals", + "outputs", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/input/main.tf b/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/input/main.tf new file mode 100644 index 0000000..ead5d56 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/input/main.tf @@ -0,0 +1,18 @@ +terraform { + required_version = ">= 0.13.0" +} + +locals { + dashboard_body = { + widgets = flatten(var.widgets) + end = var.end + start = var.start + periodOverride = var.periodOverride + } + clean_dashboard_body = { for k, v in local.dashboard_body : k => v if v != null } +} + +resource "aws_cloudwatch_dashboard" "main" { + dashboard_name = var.name + dashboard_body = jsonencode(local.clean_dashboard_body) +} diff --git a/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/input/output.tf b/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/input/output.tf new file mode 100644 index 0000000..4d03267 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/input/output.tf @@ -0,0 +1,4 @@ +output "dashboard_arn" { + description = "The Amazon Resource Name (ARN) of the dashboard." + value = aws_cloudwatch_dashboard.main.dashboard_arn +} diff --git a/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/input/variables.tf b/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/input/variables.tf new file mode 100644 index 0000000..f1bd311 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/cloudwatch-dashboard/1.0.2/input/variables.tf @@ -0,0 +1,27 @@ +variable "name" { + description = "Name of the dashboard." +} + +variable "widgets" { + description = "List of Widget object (obtained from modules/widget, terraform object) to attach to this dashboard." + type = any + default = null +} + +variable "end" { + description = "The end of the time range to use for each widget on the dashboard when the dashboard loads. If you specify a value for `end`, you must also specify a value for `start`. For each of these values, specify an absolute time in the ISO 8601 format. For example, `2018-12-17T06:00:00.000Z`." + type = string + default = null +} + +variable "start" { + description = "The start of the time range to use for each widget on the dashboard. You can specify `start` without specifying `end` to specify a relative time range that ends with the current time. In this case, the value of start must begin with `-PT` if you specify a time range in minutes or hours, and must begin with `-P` if you specify a time range in days, weeks, or months. You can then use M, H, D, W and M as abbreviations for minutes, hours, days, weeks and months. For example, `-PT5M` shows the last 5 minutes, `-PT8H` shows the last 8 hours, and `-P3M` shows the last three months. You can also use `start` along with an `end` field, to specify an absolute time range. When specifying an absolute time range, use the ISO 8601 format. For example, `2018-12-17T06:00:00.000Z`. If you omit `start`, the dashboard shows the default time range when it loads." + type = string + default = null +} + +variable "periodOverride" { + description = "Use this field to specify the period for the graphs when the dashboard loads. Specifying auto causes the period of all graphs on the dashboard to automatically adapt to the time range of the dashboard. Specifying inherit ensures that the period set for each graph is always obeyed. Valid Values: auto | inherit." + type = string + default = null +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/LICENSE b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/fixture.json b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/fixture.json new file mode 100644 index 0000000..300dd99 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "registry/HENNGE/ecs/5.6.0", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0", + "ref": "5.6.0", + "path": ".", + "archiveSha256": "07fa8f746538cd1175f47c640f1fb7b98150e8a17f5940b223f755ba29e6cbb9", + "inputSha256": "a26a0f5ad8e2088c989e98e12378e72e066b0feae38ddaa989f62dfd6591e9b0" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "dynamic", + "for_each", + "functions", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/main.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/main.tf new file mode 100644 index 0000000..40482f8 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/main.tf @@ -0,0 +1,73 @@ +locals { + create_capacity_provider = var.capacity_providers != null || length(var.default_capacity_provider_strategy) > 0 +} + +resource "aws_ecs_cluster" "main" { + name = var.name + + dynamic "setting" { + for_each = var.settings + content { + name = lookup(setting.value, "name", null) + value = lookup(setting.value, "value", null) + } + } + + dynamic "setting" { + for_each = var.enable_container_insights ? [1] : [] + content { + name = "containerInsights" + value = var.container_insights_enhanced ? "enhanced" : "enabled" + } + } + + dynamic "configuration" { + for_each = var.execute_command_configuration != null ? [1] : [] + + content { + dynamic "execute_command_configuration" { + for_each = [var.execute_command_configuration] + + content { + kms_key_id = try(execute_command_configuration.value.kms_key_id, null) + logging = try(execute_command_configuration.value.logging, null) + + dynamic "log_configuration" { + for_each = try([execute_command_configuration.value.log_configuration], []) + + content { + cloud_watch_encryption_enabled = try(log_configuration.value.cloud_watch_encryption_enabled, null) + cloud_watch_log_group_name = try(log_configuration.value.cloud_watch_log_group_name, null) + s3_bucket_name = try(log_configuration.value.s3_bucket_name, null) + s3_bucket_encryption_enabled = try(log_configuration.value.s3_bucket_encryption_enabled, null) + s3_key_prefix = try(log_configuration.value.s3_key_prefix, null) + } + } + } + } + } + } + + lifecycle { + create_before_destroy = true + } + + tags = var.tags +} + +resource "aws_ecs_cluster_capacity_providers" "main" { + count = local.create_capacity_provider ? 1 : 0 + + cluster_name = aws_ecs_cluster.main.name + + capacity_providers = var.capacity_providers + + dynamic "default_capacity_provider_strategy" { + for_each = var.default_capacity_provider_strategy + content { + capacity_provider = lookup(default_capacity_provider_strategy.value, "capacity_provider", null) + weight = lookup(default_capacity_provider_strategy.value, "weight", null) + base = lookup(default_capacity_provider_strategy.value, "base", null) + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/outputs.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/outputs.tf new file mode 100644 index 0000000..5f008af --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/outputs.tf @@ -0,0 +1,9 @@ +output "arn" { + description = "ARN of the generated cluster" + value = aws_ecs_cluster.main.arn +} + +output "name" { + description = "Name of the Cluster" + value = var.name +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/variables.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/variables.tf new file mode 100644 index 0000000..34274bf --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/variables.tf @@ -0,0 +1,46 @@ +variable "name" { + description = "Cluster name." + type = string +} + +variable "capacity_providers" { + description = "List of short names or full Amazon Resource Names (ARNs) of one or more capacity providers to associate with the cluster. Valid values also include `FARGATE` and `FARGATE_SPOT`." + default = null + type = list(string) +} + +variable "default_capacity_provider_strategy" { + description = "The capacity provider strategy to use by default for the cluster. Can be one or more. List of map with corresponding items in docs. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_cluster#default_capacity_provider_strategy)" + default = [] + type = list(any) +} + +variable "settings" { + description = "List of maps with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_cluster#setting)" + default = [] + type = list(any) +} + +variable "enable_container_insights" { + description = "Enable container insights." + default = false + type = bool +} + +variable "container_insights_enhanced" { + description = "Use container insights with enhanced observability." + default = false + type = bool +} + +variable "execute_command_configuration" { + description = "Map with execute command configuration. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_cluster#execute_command_configuration)" + default = null + type = any +} + +variable "tags" { + description = "Key-value mapping of resource tags." + default = {} + type = map(string) +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/versions.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/versions.tf new file mode 100644 index 0000000..de86299 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.85.0" + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/LICENSE b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/fixture.json b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/fixture.json new file mode 100644 index 0000000..e061282 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/fixture.json @@ -0,0 +1,30 @@ +{ + "schema": 1, + "id": "registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0", + "ref": "5.6.0", + "path": "modules/autoscaling/alb-target-tracking/target-requests-count", + "archiveSha256": "07fa8f746538cd1175f47c640f1fb7b98150e8a17f5940b223f755ba29e6cbb9", + "inputSha256": "05755b089cfef7bbff086b5c8ec3951395f314fe8eca3bd141d9e1c4907ce7f1" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "interpolation", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/main.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/main.tf new file mode 100644 index 0000000..0b78856 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/main.tf @@ -0,0 +1,19 @@ +resource "aws_appautoscaling_policy" "ecs_policy" { + name = var.name + resource_id = var.scalable_target_resource_id + scalable_dimension = "ecs:service:DesiredCount" + service_namespace = "ecs" + policy_type = "TargetTrackingScaling" + + target_tracking_scaling_policy_configuration { + target_value = var.target_value + disable_scale_in = var.disable_scale_in + scale_in_cooldown = var.scale_in_cooldown + scale_out_cooldown = var.scale_out_cooldown + + predefined_metric_specification { + predefined_metric_type = "ALBRequestCountPerTarget" + resource_label = "${var.alb_arn_suffix}/${var.target_group_arn_suffix}" + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/outputs.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/outputs.tf new file mode 100644 index 0000000..bd3576b --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/outputs.tf @@ -0,0 +1,14 @@ +output "arn" { + description = "ARN of the autoscaling policy generated." + value = aws_appautoscaling_policy.ecs_policy.arn +} + +output "name" { + description = "Name of the autoscaling policy generated" + value = aws_appautoscaling_policy.ecs_policy.name +} + +output "policy_type" { + description = "Policy type of the autoscaling policy generated. Always TargetTrackingScaling" + value = aws_appautoscaling_policy.ecs_policy.policy_type +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/variables.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/variables.tf new file mode 100644 index 0000000..999360e --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/variables.tf @@ -0,0 +1,42 @@ +variable "name" { + description = "Name of the ECS Policy created, will appear in Auto Scaling under Service in ECS" + type = string +} + +variable "alb_arn_suffix" { + description = "ARN Suffix (not full ARN) of the Application Load Balancer for use with CloudWatch. Output attribute from LB resource: `arn_suffix`" + type = string +} + +variable "target_group_arn_suffix" { + description = "ALB Target Group ARN Suffix (not full ARN) for use with CloudWatch. Output attribute from Target Group resource: `arn_suffix`" + type = string +} + +variable "scalable_target_resource_id" { + description = "Scalable target resource id, either from resource `aws_appautoscaling_target` or from `core/ecs-autoscaling-target` module" + type = string +} + +variable "target_value" { + description = "Requests per target in target group metrics to trigger scaling activity" + type = number +} + +variable "scale_in_cooldown" { + description = "Time between scale in action" + default = 300 + type = number +} + +variable "scale_out_cooldown" { + description = "Time between scale out action" + default = 300 + type = number +} + +variable "disable_scale_in" { + description = "Disable scale-in action, defaults to false" + default = false + type = bool +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/versions.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/versions.tf new file mode 100644 index 0000000..de86299 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-requests-count/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.85.0" + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/LICENSE b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/fixture.json b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/fixture.json new file mode 100644 index 0000000..fbf579a --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/fixture.json @@ -0,0 +1,29 @@ +{ + "schema": 1, + "id": "registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time", + "tier": "core", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0", + "ref": "5.6.0", + "path": "modules/autoscaling/alb-target-tracking/target-response-time", + "archiveSha256": "07fa8f746538cd1175f47c640f1fb7b98150e8a17f5940b223f755ba29e6cbb9", + "inputSha256": "934f9877693d784eb8170fa6542157bed13ce77545250525b3e548b6ddd7126f" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "full" +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/main.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/main.tf new file mode 100644 index 0000000..c4a95eb --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/main.tf @@ -0,0 +1,31 @@ +resource "aws_appautoscaling_policy" "ecs_policy" { + name = var.name + resource_id = var.scalable_target_resource_id + scalable_dimension = "ecs:service:DesiredCount" + service_namespace = "ecs" + policy_type = "TargetTrackingScaling" + + target_tracking_scaling_policy_configuration { + target_value = var.target_value + disable_scale_in = var.disable_scale_in + scale_in_cooldown = var.scale_in_cooldown + scale_out_cooldown = var.scale_out_cooldown + + customized_metric_specification { + metric_name = "TargetResponseTime" + namespace = "AWS/ApplicationELB" + statistic = var.statistic + + dimensions { + name = "LoadBalancer" + value = var.alb_arn_suffix + } + dimensions { + name = "TargetGroup" + value = var.target_group_arn_suffix + } + + unit = var.units + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/outputs.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/outputs.tf new file mode 100644 index 0000000..bd3576b --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/outputs.tf @@ -0,0 +1,14 @@ +output "arn" { + description = "ARN of the autoscaling policy generated." + value = aws_appautoscaling_policy.ecs_policy.arn +} + +output "name" { + description = "Name of the autoscaling policy generated" + value = aws_appautoscaling_policy.ecs_policy.name +} + +output "policy_type" { + description = "Policy type of the autoscaling policy generated. Always TargetTrackingScaling" + value = aws_appautoscaling_policy.ecs_policy.policy_type +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/variables.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/variables.tf new file mode 100644 index 0000000..ef791e1 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/variables.tf @@ -0,0 +1,54 @@ +variable "name" { + description = "Name of the ECS Policy created, will appear in Auto Scaling under Service in ECS" + type = string +} + +variable "alb_arn_suffix" { + description = "ARN Suffix (not full ARN) of the Application Load Balancer for use with CloudWatch. Output attribute from LB resource: `arn_suffix`" + type = string +} + +variable "target_group_arn_suffix" { + description = "ALB Target Group ARN Suffix (not full ARN) for use with CloudWatch. Output attribute from Target Group resource: `arn_suffix`" + type = string +} + +variable "scalable_target_resource_id" { + description = "Scalable target resource id, either from resource `aws_appautoscaling_target` or from `core/ecs-autoscaling-target` module" + type = string +} + +variable "target_value" { + description = "Response time per target in target group metrics to trigger scaling activity (in seconds)" + type = number +} + +variable "scale_in_cooldown" { + description = "Time between scale in action" + default = 300 + type = number +} + +variable "scale_out_cooldown" { + description = "Time between scale out action" + default = 300 + type = number +} + +variable "disable_scale_in" { + description = "Disable scale-in action, defaults to false" + default = false + type = bool +} + +variable "statistic" { + description = "Statistic to use. Valid value one of [Average, Minimum, Maximum, SampleCount, Sum]" + default = "Average" + type = string +} + +variable "units" { + description = "Units to use in monitoring, valid values are [Seconds, Microseconds, Milliseconds]" + default = "Seconds" + type = string +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/versions.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/versions.tf new file mode 100644 index 0000000..de86299 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/alb-target-tracking/target-response-time/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.85.0" + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/LICENSE b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/fixture.json b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/fixture.json new file mode 100644 index 0000000..f5ef089 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/fixture.json @@ -0,0 +1,33 @@ +{ + "schema": 1, + "id": "registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0", + "ref": "5.6.0", + "path": "modules/autoscaling/asg-target-tracking/ecs-reservation", + "archiveSha256": "07fa8f746538cd1175f47c640f1fb7b98150e8a17f5940b223f755ba29e6cbb9", + "inputSha256": "96a1abc9ac56bbe553ea6fe45c273fce50030f3674dc49f5d21167b86fe6bd9b" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "functions", + "interpolation", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/main.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/main.tf new file mode 100644 index 0000000..65d0499 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/main.tf @@ -0,0 +1,45 @@ +resource "aws_autoscaling_policy" "cpu_autoscaling" { + count = var.enable_cpu_based_autoscaling ? 1 : 0 + name = "${var.name}-cpu" + policy_type = "TargetTrackingScaling" + autoscaling_group_name = var.autoscaling_group_name + + target_tracking_configuration { + target_value = var.cpu_threshold + disable_scale_in = var.disable_scale_in + + customized_metric_specification { + metric_name = "CPUReservation" + namespace = "AWS/ECS" + statistic = var.cpu_statistics + + metric_dimension { + name = "ClusterName" + value = var.ecs_cluster_name + } + } + } +} + +resource "aws_autoscaling_policy" "memory_autoscaling" { + count = var.enable_memory_based_autoscaling ? 1 : 0 + name = "${var.name}-memory" + policy_type = "TargetTrackingScaling" + autoscaling_group_name = var.autoscaling_group_name + + target_tracking_configuration { + target_value = var.memory_threshold + disable_scale_in = var.disable_scale_in + + customized_metric_specification { + metric_name = "MemoryReservation" + namespace = "AWS/ECS" + statistic = var.memory_statistics + + metric_dimension { + name = "ClusterName" + value = var.ecs_cluster_name + } + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/outputs.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/outputs.tf new file mode 100644 index 0000000..e7fecff --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/outputs.tf @@ -0,0 +1,39 @@ +output "cpu_autoscaling_arn" { + description = "The ARN assigned by AWS to the scaling policy." + value = join("", aws_autoscaling_policy.cpu_autoscaling[*].arn) +} + +output "cpu_autoscaling_name" { + description = "The scaling policy's name." + value = join("", aws_autoscaling_policy.cpu_autoscaling[*].name) +} + +output "cpu_autoscaling_asg_name" { + description = "The scaling policy's assigned autoscaling group." + value = join("", aws_autoscaling_policy.cpu_autoscaling[*].autoscaling_group_name) +} + +output "cpu_autoscaling_policy_type" { + description = "The scaling policy's type." + value = join("", aws_autoscaling_policy.cpu_autoscaling[*].policy_type) +} + +output "memory_autoscaling_arn" { + description = "The ARN assigned by AWS to the scaling policy." + value = join("", aws_autoscaling_policy.memory_autoscaling[*].arn) +} + +output "memory_autoscaling_name" { + description = "The scaling policy's name." + value = join("", aws_autoscaling_policy.memory_autoscaling[*].name) +} + +output "memory_autoscaling_asg_name" { + description = "The scaling policy's assigned autoscaling group." + value = join("", aws_autoscaling_policy.memory_autoscaling[*].autoscaling_group_name) +} + +output "memory_autoscaling_policy_type" { + description = "The scaling policy's type." + value = join("", aws_autoscaling_policy.memory_autoscaling[*].policy_type) +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/variables.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/variables.tf new file mode 100644 index 0000000..47176ba --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/variables.tf @@ -0,0 +1,56 @@ +variable "name" { + description = "Name prefix of the Autoscaling Policy" + type = string +} + +variable "autoscaling_group_name" { + description = "Autoscaling Group to apply the policy" + type = string +} + +variable "ecs_cluster_name" { + description = "Name (not ARN) of ECS Cluster that the autoscaling group is attached to" + type = string +} + +variable "enable_cpu_based_autoscaling" { + description = "Enable Autoscaling based on ECS Cluster CPU Reservation" + default = false + type = bool +} + +variable "enable_memory_based_autoscaling" { + description = "Enable Autoscaling based on ECS Cluster Memory Reservation" + default = false + type = bool +} + +variable "cpu_threshold" { + description = "Keep the ECS Cluster CPU Reservation around this value. Value is in percentage (0..100). Must be specified if cpu based autoscaling is enabled." + default = null + type = number +} + +variable "memory_threshold" { + description = "Keep the ECS Cluster Memory Reservation around this value. Value is in percentage (0..100). Must be specified if memory based autoscaling is enabled." + default = null + type = number +} + +variable "cpu_statistics" { + description = "Statistics to use: [Maximum, SampleCount, Sum, Minimum, Average]. Note that resolution used in alarm generated is 1 minute." + default = "Average" + type = string +} + +variable "memory_statistics" { + description = "Statistics to use: [Maximum, SampleCount, Sum, Minimum, Average]. Note that resolution used in alarm generated is 1 minute." + default = "Average" + type = string +} + +variable "disable_scale_in" { + description = "Indicates whether scale in by the target tracking policy is disabled." + default = false + type = bool +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/versions.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/versions.tf new file mode 100644 index 0000000..de86299 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/asg-target-tracking/ecs-reservation/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.85.0" + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/LICENSE b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/fixture.json b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/fixture.json new file mode 100644 index 0000000..69b7e9f --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/fixture.json @@ -0,0 +1,29 @@ +{ + "schema": 1, + "id": "registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled", + "tier": "smoke", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0", + "ref": "5.6.0", + "path": "modules/autoscaling/ecs-scheduled", + "archiveSha256": "07fa8f746538cd1175f47c640f1fb7b98150e8a17f5940b223f755ba29e6cbb9", + "inputSha256": "651bc1ebbdc1271385cad720e8f8a556d301785ca9da3e35deb51264fb4b9c31" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "full" +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/main.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/main.tf new file mode 100644 index 0000000..e5ea7f7 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/main.tf @@ -0,0 +1,14 @@ +resource "aws_appautoscaling_scheduled_action" "ecs_scheduled_action" { + name = var.name + resource_id = var.scalable_target_resource_id + scalable_dimension = "ecs:service:DesiredCount" + service_namespace = "ecs" + + schedule = var.schedule + timezone = var.timezone + + scalable_target_action { + min_capacity = var.min_capacity + max_capacity = var.max_capacity + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/outputs.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/outputs.tf new file mode 100644 index 0000000..ad9df11 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/outputs.tf @@ -0,0 +1,4 @@ +output "scheduled_action_arn" { + description = "ARN of the autoscaling scheduled action." + value = aws_appautoscaling_scheduled_action.ecs_scheduled_action.arn +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/variables.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/variables.tf new file mode 100644 index 0000000..fd477b8 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/variables.tf @@ -0,0 +1,32 @@ +variable "name" { + description = "Name of the autoscaling scheduled action, will appear in Auto Scaling under Service in ECS" + type = string +} + +variable "scalable_target_resource_id" { + description = "Scalable target resource id, either from resource `aws_appautoscaling_target` or from `core/ecs-autoscaling-target` module" + type = string +} + +variable "schedule" { + description = "Schedule expression. See https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PutScheduledAction.html#autoscaling-PutScheduledAction-request-Schedule" + type = string +} + +variable "timezone" { + description = "Time zone used when setting a scheduled action by using an at or cron expression. For valid values see https://www.joda.org/joda-time/timezones.html" + type = string + default = null +} + +variable "min_capacity" { + description = "Minimum capacity. At least one of max_capacity or min_capacity must be set." + type = string + default = null +} + +variable "max_capacity" { + description = "Maximum capacity. At least one of max_capacity or min_capacity must be set." + type = string + default = null +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/versions.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/versions.tf new file mode 100644 index 0000000..de86299 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-scheduled/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.85.0" + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/LICENSE b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/fixture.json b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/fixture.json new file mode 100644 index 0000000..6feaefa --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/fixture.json @@ -0,0 +1,32 @@ +{ + "schema": 1, + "id": "registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0", + "ref": "5.6.0", + "path": "modules/autoscaling/ecs-target-tracking/service-utilization", + "archiveSha256": "07fa8f746538cd1175f47c640f1fb7b98150e8a17f5940b223f755ba29e6cbb9", + "inputSha256": "577527727e6dc9d28e91edc105a55e17e54e93f8f6108c0eb3f5d1aea67b227e" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "interpolation", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/main.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/main.tf new file mode 100644 index 0000000..6d3a01b --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/main.tf @@ -0,0 +1,39 @@ +resource "aws_appautoscaling_policy" "ecs_service_cpu_policy" { + count = var.enable_cpu_based_autoscaling ? 1 : 0 + name = "${var.name}-cpu" + resource_id = var.scalable_target_resource_id + scalable_dimension = "ecs:service:DesiredCount" + service_namespace = "ecs" + policy_type = "TargetTrackingScaling" + + target_tracking_scaling_policy_configuration { + target_value = var.target_cpu_value + disable_scale_in = var.disable_scale_in + scale_in_cooldown = var.scale_in_cooldown + scale_out_cooldown = var.scale_out_cooldown + + predefined_metric_specification { + predefined_metric_type = "ECSServiceAverageCPUUtilization" + } + } +} + +resource "aws_appautoscaling_policy" "ecs_service_memory_policy" { + count = var.enable_memory_based_autoscaling ? 1 : 0 + name = "${var.name}-memory" + resource_id = var.scalable_target_resource_id + scalable_dimension = "ecs:service:DesiredCount" + service_namespace = "ecs" + policy_type = "TargetTrackingScaling" + + target_tracking_scaling_policy_configuration { + target_value = var.target_memory_value + disable_scale_in = var.disable_scale_in + scale_in_cooldown = var.scale_in_cooldown + scale_out_cooldown = var.scale_out_cooldown + + predefined_metric_specification { + predefined_metric_type = "ECSServiceAverageMemoryUtilization" + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/outputs.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/outputs.tf new file mode 100644 index 0000000..b6989c9 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/outputs.tf @@ -0,0 +1,29 @@ +output "cpu_policy_arn" { + description = "ARN of the autoscaling policy generated." + value = concat(aws_appautoscaling_policy.ecs_service_cpu_policy[*].arn, [""]) +} + +output "cpu_policy_name" { + description = "Name of the autoscaling policy generated" + value = concat(aws_appautoscaling_policy.ecs_service_cpu_policy[*].name, [""]) +} + +output "cpu_policy_type" { + description = "Policy type of the autoscaling policy generated. Always TargetTrackingScaling" + value = concat(aws_appautoscaling_policy.ecs_service_cpu_policy[*].policy_type, [""]) +} + +output "memory_policy_arn" { + description = "ARN of the autoscaling policy generated." + value = concat(aws_appautoscaling_policy.ecs_service_memory_policy[*].arn, [""]) +} + +output "memory_policy_name" { + description = "Name of the autoscaling policy generated" + value = concat(aws_appautoscaling_policy.ecs_service_memory_policy[*].name, [""]) +} + +output "memory_policy_type" { + description = "Policy type of the autoscaling policy generated. Always TargetTrackingScaling" + value = concat(aws_appautoscaling_policy.ecs_service_memory_policy[*].policy_type, [""]) +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/variables.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/variables.tf new file mode 100644 index 0000000..8ebba5a --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/variables.tf @@ -0,0 +1,51 @@ +variable "name" { + description = "Name of the ECS Policy created, will appear in Auto Scaling under Service in ECS" + type = string +} + +variable "scalable_target_resource_id" { + description = "Scalable target resource id, either from resource `aws_appautoscaling_target` or from `core/ecs-autoscaling-target` module" + type = string +} + +variable "target_cpu_value" { + description = "Autoscale when CPU Usage value over the specified value. Must be specified if `enable_cpu_based_autoscaling` is `true`." + default = null + type = number +} + +variable "target_memory_value" { + description = "Autoscale when Memory Usage value over the specified value. Must be specified if `enable_memory_based_autoscaling` is `true`." + default = null + type = number +} + +variable "enable_cpu_based_autoscaling" { + description = "Enable Autoscaling based on ECS Service CPU Usage" + default = false + type = bool +} + +variable "enable_memory_based_autoscaling" { + description = "Enable Autoscaling based on ECS Service Memory Usage" + default = false + type = bool +} + +variable "scale_in_cooldown" { + description = "Time between scale in action" + default = 300 + type = number +} + +variable "scale_out_cooldown" { + description = "Time between scale out action" + default = 300 + type = number +} + +variable "disable_scale_in" { + description = "Disable scale-in action, defaults to false" + default = false + type = bool +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/versions.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/versions.tf new file mode 100644 index 0000000..de86299 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/autoscaling/ecs-target-tracking/service-utilization/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.85.0" + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/LICENSE b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/fixture.json b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/fixture.json new file mode 100644 index 0000000..7f9157d --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/fixture.json @@ -0,0 +1,35 @@ +{ + "schema": 1, + "id": "registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0", + "ref": "5.6.0", + "path": "modules/core/ecs-autoscaling-target", + "archiveSha256": "07fa8f746538cd1175f47c640f1fb7b98150e8a17f5940b223f755ba29e6cbb9", + "inputSha256": "aba87e3ecebf6d0fd4d37d222a16e59e0cf83bcbaf6aee23e913288d4caf0d09" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "dynamic", + "for_each", + "interpolation", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/main.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/main.tf new file mode 100644 index 0000000..3628a28 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/main.tf @@ -0,0 +1,45 @@ +resource "aws_appautoscaling_target" "ecs_target" { + count = var.ignore_capacity_changes ? 0 : 1 + + min_capacity = var.min_capacity + max_capacity = var.max_capacity + resource_id = "service/${var.ecs_cluster_name}/${var.ecs_service_name}" + role_arn = var.role_arn + scalable_dimension = "ecs:service:DesiredCount" + service_namespace = "ecs" + + dynamic "suspended_state" { + for_each = var.suspended_state == null ? [] : [var.suspended_state] + + content { + dynamic_scaling_in_suspended = suspended_state.value.dynamic_scaling_in_suspended + dynamic_scaling_out_suspended = suspended_state.value.dynamic_scaling_out_suspended + scheduled_scaling_suspended = suspended_state.value.scheduled_scaling_suspended + } + } +} + +resource "aws_appautoscaling_target" "ecs_target_ignore_capacity_changes" { + count = var.ignore_capacity_changes ? 1 : 0 + + lifecycle { + ignore_changes = [min_capacity, max_capacity] + } + + min_capacity = var.min_capacity + max_capacity = var.max_capacity + resource_id = "service/${var.ecs_cluster_name}/${var.ecs_service_name}" + role_arn = var.role_arn + scalable_dimension = "ecs:service:DesiredCount" + service_namespace = "ecs" + + dynamic "suspended_state" { + for_each = var.suspended_state == null ? [] : [var.suspended_state] + + content { + dynamic_scaling_in_suspended = suspended_state.value.dynamic_scaling_in_suspended + dynamic_scaling_out_suspended = suspended_state.value.dynamic_scaling_out_suspended + scheduled_scaling_suspended = suspended_state.value.scheduled_scaling_suspended + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/outputs.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/outputs.tf new file mode 100644 index 0000000..0d8687a --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/outputs.tf @@ -0,0 +1,32 @@ +locals { + output_resource_id = concat(aws_appautoscaling_target.ecs_target[*].resource_id, aws_appautoscaling_target.ecs_target_ignore_capacity_changes[*].resource_id, [""])[0] + output_service_namespace = concat(aws_appautoscaling_target.ecs_target[*].service_namespace, aws_appautoscaling_target.ecs_target_ignore_capacity_changes[*].service_namespace, [""])[0] + output_scalable_dimension = concat(aws_appautoscaling_target.ecs_target[*].scalable_dimension, aws_appautoscaling_target.ecs_target_ignore_capacity_changes[*].scalable_dimension, [""])[0] + output_min_capacity = concat(aws_appautoscaling_target.ecs_target[*].min_capacity, aws_appautoscaling_target.ecs_target_ignore_capacity_changes[*].min_capacity, [""])[0] + output_max_capacity = concat(aws_appautoscaling_target.ecs_target[*].max_capacity, aws_appautoscaling_target.ecs_target_ignore_capacity_changes[*].max_capacity, [""])[0] +} + +output "resource_id" { + description = "Resources ID of the created Autoscaling Target for ECS Service, used in policy/schedule" + value = local.output_resource_id +} + +output "service_namespace" { + description = "Service namespace for autoscaling target. Always ecs" + value = local.output_service_namespace +} + +output "scalable_dimension" { + description = "Scalable dimension for autoscaling target. Always ecs:service:DesiredCount." + value = local.output_scalable_dimension +} + +output "min_capacity" { + description = "Minimum capacity for autoscaling target, same value as inputted" + value = local.output_min_capacity +} + +output "max_capacity" { + description = "Maximum capacity for autoscaling target, same value as inputted" + value = local.output_max_capacity +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/variables.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/variables.tf new file mode 100644 index 0000000..78b9529 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/variables.tf @@ -0,0 +1,41 @@ +variable "ecs_cluster_name" { + description = "ECS Cluster name to apply on (NOT ARN)" + type = string +} + +variable "ecs_service_name" { + description = "ECS Service name to apply on (NOT ARN)" + type = string +} + +variable "min_capacity" { + description = "Minimum capacity of ECS autoscaling target, cannot be more than max_capacity" + type = number +} + +variable "max_capacity" { + description = "Maximum capacity of ECS autoscaling target, cannot be less than min_capacity" + type = number +} + +variable "ignore_capacity_changes" { + description = "Ignores any changes to `min_capacity` and `max_capacity` parameter after apply. Note updating this value will destroy the existing autoscaling target and recreate it." + default = false + type = bool +} + +variable "role_arn" { + description = "ARN of the IAM role that allows Application AutoScaling to modify your scalable target on your behalf. This defaults to an IAM Service-Linked Role for most services and custom IAM Roles are ignored by the API for those namespaces." + default = null + type = string +} + +variable "suspended_state" { + description = "Specifies whether the scaling activities for a scalable target are in a suspended state." + default = null + type = object({ + dynamic_scaling_in_suspended = optional(bool, false) + dynamic_scaling_out_suspended = optional(bool, false) + scheduled_scaling_suspended = optional(bool, false) + }) +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/versions.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/versions.tf new file mode 100644 index 0000000..de86299 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/ecs-autoscaling-target/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.85.0" + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/LICENSE b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/fixture.json b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/fixture.json new file mode 100644 index 0000000..0200053 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/fixture.json @@ -0,0 +1,34 @@ +{ + "schema": 1, + "id": "registry/HENNGE/ecs/5.6.0/modules/core/task", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0", + "ref": "5.6.0", + "path": "modules/core/task", + "archiveSha256": "07fa8f746538cd1175f47c640f1fb7b98150e8a17f5940b223f755ba29e6cbb9", + "inputSha256": "48c618f4234064a259931412c94960270489221db5341b57a1b5eda3cf55f200" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "dynamic", + "for_each", + "functions", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/main.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/main.tf new file mode 100644 index 0000000..5ebb547 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/main.tf @@ -0,0 +1,94 @@ +resource "aws_ecs_task_definition" "main" { + count = var.create_task_definition ? 1 : 0 + family = var.name + container_definitions = var.container_definitions + + task_role_arn = var.task_role + execution_role_arn = var.daemon_role + + enable_fault_injection = var.enable_fault_injection + skip_destroy = var.skip_destroy + + network_mode = var.network_mode + ipc_mode = var.ipc_mode + pid_mode = var.pid_mode + + cpu = var.cpu + memory = var.memory + + requires_compatibilities = var.requires_compatibilities + + track_latest = var.track_latest + + dynamic "volume" { + for_each = var.volume_configurations + content { + name = lookup(volume.value, "name", null) + host_path = lookup(volume.value, "host_path", null) + dynamic "docker_volume_configuration" { + for_each = lookup(volume.value, "docker_volume_configuration", null) == null ? [] : [volume.value["docker_volume_configuration"]] + content { + scope = lookup(docker_volume_configuration.value, "scope", null) + autoprovision = lookup(docker_volume_configuration.value, "autoprovision", null) + driver = lookup(docker_volume_configuration.value, "driver", null) + driver_opts = lookup(docker_volume_configuration.value, "driver_opts", null) + labels = lookup(docker_volume_configuration.value, "labels", null) + } + } + dynamic "efs_volume_configuration" { + for_each = lookup(volume.value, "efs_volume_configuration", null) == null ? [] : [volume.value["efs_volume_configuration"]] + content { + file_system_id = lookup(efs_volume_configuration.value, "file_system_id", null) + root_directory = lookup(efs_volume_configuration.value, "root_directory", null) + transit_encryption = lookup(efs_volume_configuration.value, "transit_encryption", "ENABLED") + transit_encryption_port = lookup(efs_volume_configuration.value, "transit_encryption_port", null) + dynamic "authorization_config" { + for_each = lookup(efs_volume_configuration.value, "authorization_config", null) == null ? [] : [efs_volume_configuration.value["authorization_config"]] + content { + access_point_id = lookup(authorization_config.value, "access_point_id", null) + iam = lookup(authorization_config.value, "iam", "DISABLED") + } + } + } + } + } + } + + dynamic "placement_constraints" { + for_each = var.placement_constraints + content { + type = placement_constraints.value.type + expression = placement_constraints.value.expression + } + } + + dynamic "proxy_configuration" { + for_each = var.proxy_configuration == null ? [] : [var.proxy_configuration] + content { + type = lookup(proxy_configuration.value, "type", null) + container_name = lookup(proxy_configuration.value, "container_name", null) + properties = lookup(proxy_configuration.value, "properties", null) + } + } + + dynamic "runtime_platform" { + for_each = var.runtime_platform == null ? [] : [var.runtime_platform] + content { + operating_system_family = runtime_platform.value.operating_system_family + cpu_architecture = runtime_platform.value.cpu_architecture + } + } + + dynamic "ephemeral_storage" { + for_each = var.ephemeral_storage == null ? [] : [var.ephemeral_storage] + content { + size_in_gib = ephemeral_storage.value.size_in_gib + } + } + + tags = var.tags + + lifecycle { + create_before_destroy = true + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/outputs.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/outputs.tf new file mode 100644 index 0000000..a3a45e8 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/outputs.tf @@ -0,0 +1,14 @@ +output "arn" { + description = "Full ARN of the Task Definition (including both `family` and `revision`)." + value = var.create_task_definition ? concat(aws_ecs_task_definition.main[*].arn, [""])[0] : "" +} + +output "name" { + description = "The created task definition name" + value = var.create_task_definition ? concat(aws_ecs_task_definition.main[*].family, [""])[0] : "" +} + +output "revision" { + description = "The revision number of the task definition" + value = var.create_task_definition ? concat(aws_ecs_task_definition.main[*].revision, [""])[0] : "" +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/variables.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/variables.tf new file mode 100644 index 0000000..427ce67 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/variables.tf @@ -0,0 +1,133 @@ +#################### +# Required Variables +#################### + +variable "name" { + description = "The task name." + type = string +} + +variable "container_definitions" { + description = "Container definitions raw json string or rendered template." + type = string +} + +#################### +# Optional Variables +#################### + +variable "create_task_definition" { + description = "Create the Task Definition" + default = true + type = bool +} + +variable "enable_fault_injection" { + description = "Enables fault injection and allows for fault injection requests to be accepted from the task's containers." + default = false + type = bool +} + +variable "ephemeral_storage" { + description = "The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate." + default = null + type = object({ + size_in_gib = number + }) +} + +variable "network_mode" { + description = "The network mode for container." + default = "bridge" + type = string +} + +variable "ipc_mode" { + description = "The IPC resource namespace to be used for the containers in the task The valid values are `host`, `task`, and `none`." + default = null + type = string +} + +variable "pid_mode" { + description = "The process namespace to use for the containers in the task. The valid values are `host` and `task`." + default = null + type = string +} + +variable "skip_destroy" { + description = "Whether to retain the old revision when the resource is destroyed or replacement is necessary." + default = false + type = bool +} + +variable "task_role" { + description = "The IAM Role to assign to the Container." + default = null + type = string +} + +variable "daemon_role" { + description = "The IAM Role to assign for the ECS container agent and Docker daemon." + default = null + type = string +} + +variable "cpu" { + description = "CPU unit for this task." + default = null + type = number +} + +variable "memory" { + description = "Memory for this task." + default = null + type = number +} + +variable "requires_compatibilities" { + description = "A set of launch types required by the task. The valid values are EC2 and FARGATE." + default = ["EC2"] + type = list(string) +} + +variable "volume_configurations" { + description = "Volume Block Arguments for Task Definition. List of map. Note that `docker_volume_configuration` should be specified as map argument instead of block. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#volume)" + default = [] + type = list(any) +} + +variable "placement_constraints" { + description = "Placement constraints for Task Definition. List of map. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#placement_constraints)" + default = [] + type = list(object({ + expression = optional(string) + type = string + })) +} + +variable "proxy_configuration" { + description = "The proxy configuration details for the App Mesh proxy. Defined as map argument. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#proxy_configuration)" + default = null + type = any +} + +variable "runtime_platform" { + description = "Runtime platform (operating system and CPU architecture) that containers may use. Defined as map argument. [Terraform Docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#runtime_platform)" + default = null + type = object({ + operating_system_family = optional(string) + cpu_architecture = optional(string) + }) +} + +variable "track_latest" { + description = "Whether should track latest ACTIVE task definition on AWS or the one created with the resource stored in state." + default = false + type = bool +} + +variable "tags" { + description = "Key-value mapping of resource tags." + default = {} + type = map(string) +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/versions.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/versions.tf new file mode 100644 index 0000000..de86299 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/core/task/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.85.0" + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/LICENSE b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/fixture.json b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/fixture.json new file mode 100644 index 0000000..90f4635 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/fixture.json @@ -0,0 +1,31 @@ +{ + "schema": 1, + "id": "registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0", + "ref": "5.6.0", + "path": "modules/iam/ecs-instance-profile", + "archiveSha256": "07fa8f746538cd1175f47c640f1fb7b98150e8a17f5940b223f755ba29e6cbb9", + "inputSha256": "9e3ee9a5a065ded72603b2ee0e4d0407e1c395f1f1685695b3ae2f00e31bf5a8" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "data", + "interpolation", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/main.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/main.tf new file mode 100644 index 0000000..6172082 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/main.tf @@ -0,0 +1,33 @@ +resource "aws_iam_role" "instance_role" { + name = "${var.name}-ecs-instance-role" + + assume_role_policy = data.aws_iam_policy_document.sts_policy.json +} + +resource "aws_iam_instance_profile" "instance_profile" { + name = "${var.name}-ecs-instance-profile" + role = aws_iam_role.instance_role.name +} + +data "aws_iam_policy_document" "sts_policy" { + version = "2012-10-17" + statement { + actions = ["sts:AssumeRole"] + effect = "Allow" + + principals { + type = "Service" + identifiers = ["ec2.amazonaws.com"] + } + } +} + +resource "aws_iam_role_policy_attachment" "ecs_ec2_role" { + role = aws_iam_role.instance_role.id + policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonEC2ContainerServiceforEC2Role" +} + +resource "aws_iam_role_policy_attachment" "ecs_ec2_cloudwatch_role" { + role = aws_iam_role.instance_role.id + policy_arn = "arn:aws:iam::aws:policy/CloudWatchLogsFullAccess" +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/outputs.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/outputs.tf new file mode 100644 index 0000000..7940e18 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/outputs.tf @@ -0,0 +1,4 @@ +output "iam_instance_profile_id" { + description = "Instance Profile id" + value = aws_iam_instance_profile.instance_profile.id +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/variables.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/variables.tf new file mode 100644 index 0000000..f5c9448 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/variables.tf @@ -0,0 +1,4 @@ +variable "name" { + description = "Name prefix to be used on generated resources" + type = string +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/versions.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/versions.tf new file mode 100644 index 0000000..de86299 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/iam/ecs-instance-profile/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.85.0" + } + } +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/LICENSE b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/fixture.json b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/fixture.json new file mode 100644 index 0000000..167aa80 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/fixture.json @@ -0,0 +1,34 @@ +{ + "schema": 1, + "id": "registry/HENNGE/ecs/5.6.0/modules/scheduled-actions", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/HENNGE/ecs/aws/5.6.0", + "ref": "5.6.0", + "path": "modules/scheduled-actions", + "archiveSha256": "07fa8f746538cd1175f47c640f1fb7b98150e8a17f5940b223f755ba29e6cbb9", + "inputSha256": "051e223ae4c8937f254376867a810c75ac72950444627db52bc73b4b3f93c21b" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "dynamic", + "for_each", + "functions", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/main.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/main.tf new file mode 100644 index 0000000..a900369 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/main.tf @@ -0,0 +1,50 @@ +locals { + network_configuration = var.network_configuration != null ? var.network_configuration : ( + var.is_fargate ? { + subnets = var.fargate_subnets + security_groups = var.fargate_security_groups + assign_public_ip = var.fargate_assign_public_ip + } : null + ) +} + +resource "aws_cloudwatch_event_rule" "rule" { + name = var.name + description = var.schedule_description + schedule_expression = var.schedule_rule +} + +resource "aws_cloudwatch_event_target" "target" { + rule = aws_cloudwatch_event_rule.rule.name + arn = var.cluster_arn + role_arn = var.iam_invoker + + ecs_target { + task_count = var.task_count + task_definition_arn = var.task_definition_arn + launch_type = length(var.capacity_provider_strategy) == 0 ? (var.is_fargate ? "FARGATE" : "EC2") : null + + dynamic "network_configuration" { + for_each = local.network_configuration == null ? [] : [local.network_configuration] + content { + subnets = network_configuration.value.subnets + security_groups = network_configuration.value.security_groups + assign_public_ip = network_configuration.value.assign_public_ip + } + } + + dynamic "capacity_provider_strategy" { + for_each = var.capacity_provider_strategy + content { + capacity_provider = lookup(capacity_provider_strategy.value, "capacity_provider", null) + weight = lookup(capacity_provider_strategy.value, "weight", null) + base = lookup(capacity_provider_strategy.value, "base", null) + } + } + + propagate_tags = var.propagate_tags ? "TASK_DEFINITION" : null + tags = var.tags + } + + input = var.container_overrides +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/outputs.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/outputs.tf new file mode 100644 index 0000000..92b7245 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/outputs.tf @@ -0,0 +1,4 @@ +output "arn" { + description = "The Amazon Resource Name (ARN) of the rule." + value = aws_cloudwatch_event_rule.rule.arn +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/variables.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/variables.tf new file mode 100644 index 0000000..889afca --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/variables.tf @@ -0,0 +1,93 @@ +variable "name" { + description = "Name for scheduled action" + type = string +} + +variable "schedule_description" { + description = "The description of the rule" + default = "Cloudwatch event rule to invoke ECS Task" + type = string +} + +variable "schedule_rule" { + description = "Schedule in cron or rate (see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html for rules)" + type = string +} + +variable "iam_invoker" { + description = "IAM ARN to invoke ECS Task" + type = string +} + +variable "cluster_arn" { + description = "ECS Cluster ARN to run ECS Task in" + type = string +} + +variable "task_count" { + description = "Desired ECS Task count to run" + type = number +} + +variable "task_definition_arn" { + description = "Task definition ARN to run" + type = string +} + +variable "is_fargate" { + description = "Task is fargate. Only affects `launch_type`; to attach a network configuration to a non-Fargate `awsvpc` task, use `network_configuration` instead." + default = false + type = bool +} + +variable "network_configuration" { + description = "Network configuration for tasks that use the `awsvpc` network mode. Required by RunTask for `awsvpc` under any launch type, not just Fargate. Takes precedence over the `fargate_*` variables. Must be null when the task does not use `awsvpc`, otherwise the task fails." + default = null + type = object({ + subnets = list(string) + security_groups = optional(list(string), []) + assign_public_ip = optional(bool, false) + }) +} + +variable "fargate_assign_public_ip" { + description = "Assign Public IP or not to Fargate task, specify if `is_fargate`. Deprecated: use `network_configuration.assign_public_ip`." + default = false + type = bool +} + +variable "fargate_security_groups" { + description = "Security groups to assign to Fargate task, specify if `is_fargate`. Deprecated: use `network_configuration.security_groups`." + default = [] + type = list(string) +} + +variable "fargate_subnets" { + description = "Subnets to assign to Fargate task, specify if `is_fargate`. Deprecated: use `network_configuration.subnets`." + default = [] + type = list(string) +} + +variable "container_overrides" { + description = "Overrides options of container. Expecting JSON. See https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_target#ecs-run-task-with-role-and-task-override-usage" + default = null + type = string +} + +variable "capacity_provider_strategy" { + description = "List of map of capacity provider strategies to use for the task. See https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_target#capacity_provider_strategy" + default = [] + type = list(any) +} + +variable "propagate_tags" { + description = "Specifies whether to propagate the tags from the task definition to the task." + default = false + type = bool +} + +variable "tags" { + description = "A map of tags to assign to ecs resources." + default = null + type = map(string) +} diff --git a/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/versions.tf b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/versions.tf new file mode 100644 index 0000000..de86299 --- /dev/null +++ b/conformance/fixtures/registry/HENNGE/ecs/5.6.0/modules/scheduled-actions/input/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">= 1.3" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.85.0" + } + } +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/LICENSE b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/LICENSE new file mode 100644 index 0000000..49c5cbf --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Palo Alto Networks, inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/fixture.json b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/fixture.json new file mode 100644 index 0000000..0ce2158 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/fixture.json @@ -0,0 +1,40 @@ +{ + "schema": 1, + "id": "registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6", + "ref": "1.1.6", + "path": "modules/alb", + "archiveSha256": "d1f8addda811aa7a48837401f3bb3eda1903e3796a5a5f25280366499d4248d4", + "inputSha256": "b1a56f25f89711447341c234354e39e0036838957148b3f4abcf7d0c62f58ba6" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "depends_on", + "dynamic", + "for_each", + "for_expressions", + "functions", + "heredoc", + "interpolation", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/main.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/main.tf new file mode 100644 index 0000000..34b3124 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/main.tf @@ -0,0 +1,394 @@ +locals { + # The list below is used to de-nest the listener rules properties. + # For each application definition you have target group and health check configuration + # and one or more listener rules properties. + # In each element of this list you will have listener rule properties combined with + # parent application's target group and health check properties. + # This flat list is then used to create maps for target group, target group attachment and + # listener rules configuration. + rules_flattened = flatten([ + for k, v in var.rules : [ + for l_k, l_v in v.listener_rules : { + tg_key = "${k}-${l_v.target_port}" + tg_name = try(v.name, null) + app_name = k + port = l_v.target_port + proto = l_v.target_protocol + proto_v = try(l_v.target_protocol_version, null) + h_ch_healthy_threshold = try(v.health_check_healthy_threshold, null) + h_ch_unhealthy_threshold = try(v.health_check_unhealthy_threshold, null) + h_ch_interval = try(v.health_check_interval, null) + h_ch_timeout = try(v.health_check_timeout, null) + h_ch_protocol = try(v.health_check_protocol, v.protocol) + h_ch_port = try(v.health_check_port, "traffic-port") + h_ch_matcher = try(v.health_check_matcher, null) + h_ch_path = try(v.health_check_path, "/") + lb_algorithm = try(l_v.round_robin, null) != null ? (l_v.round_robin ? "round_robin" : "least_outstanding_requests") : "round_robin" + host_headers = try(l_v.host_headers, null) + priority = l_k + http_headers = try(l_v.http_headers, null) + http_request_method = try(l_v.http_request_method, null) + path_pattern = try(l_v.path_pattern, null) + query_strings = try(l_v.query_strings, null) + source_ip = try(l_v.source_ip, null) + } + ] + ]) + + # A map of target groups that will be referenced in listener rules. + # To minimize a number of target groups we create unique groups + # per application and listener rule's port, hence the intermediary step of creating `listener_tg_unique`. + # Example, if a listener for an application has 3 listener rules using + # the same 8080 port, only one target group will be created. + # The condition is that if you specify the same target port in several rules + # other target group properties (like protocol, load balancing algorithm, etc) also have to be the same. + # If they aren't, terraform will error out while trying to create a unique list. + # The map below contains also health check properties specific for particular application. + listener_tg_unique = distinct([ + for v in local.rules_flattened : { + tg_key = v.tg_key + tg_name = v.tg_name + app_name = v.app_name + port = v.port + proto = v.proto + proto_v = v.proto_v + h_ch_healthy_threshold = v.h_ch_healthy_threshold + h_ch_unhealthy_threshold = v.h_ch_unhealthy_threshold + h_ch_interval = v.h_ch_interval + h_ch_timeout = v.h_ch_timeout + h_ch_protocol = v.h_ch_protocol + h_ch_port = v.h_ch_port + h_ch_matcher = v.h_ch_matcher + h_ch_path = v.h_ch_path + lb_algorithm = v.lb_algorithm + } + ]) + listener_tg = { + for v in local.listener_tg_unique : v.tg_key => { + name = v.tg_name + port = v.port + proto = v.proto + proto_v = v.proto_v + h_ch_healthy_threshold = v.h_ch_healthy_threshold + h_ch_unhealthy_threshold = v.h_ch_unhealthy_threshold + h_ch_interval = v.h_ch_interval + h_ch_timeout = v.h_ch_timeout + h_ch_protocol = v.h_ch_protocol + h_ch_port = v.h_ch_port + h_ch_matcher = v.h_ch_matcher + h_ch_path = v.h_ch_path + lb_algorithm = v.lb_algorithm + } + } + + # Listener rules map. Contains only listener rules properties and a reference a target group. + listener_rules = { + for v in local.rules_flattened : "${v.app_name}-${v.priority}" => { + listener_key = v.app_name + priority = v.priority + tg_key = v.tg_key + host_headers = v.host_headers + http_headers = v.http_headers + http_request_method = v.http_request_method + path_pattern = v.path_pattern + query_strings = v.query_strings + source_ip = v.source_ip + } + } + + # A flat list that is a combination of target group properties and information + # on firewalls' IPs. + # This will be used to create a map of target groups attachments. + # One of the properties is the target group reference. + listener_tg_attachments_list = flatten([ + for v in local.listener_tg_unique : [ + for t_k, t_v in var.targets : { + host = t_k + ip = t_v + port = v.port + listener_tg_name = v.tg_key + } + ] + ]) + + # A map of target group attachments. + listener_tg_attachments = { + for v in local.listener_tg_attachments_list : "${v.listener_tg_name}-${v.host}" => { + ip = v.ip + port = v.port + listener_tg_name = v.listener_tg_name + } + } +} + +# ## Access Logs Bucket ## +# For Application Load Balancers where access logs are stored in S3 Bucket. +data "aws_s3_bucket" "this" { + count = var.access_logs_byob && var.configure_access_logs ? 1 : 0 + + bucket = var.access_logs_s3_bucket_name +} + +resource "aws_s3_bucket" "this" { + count = !var.access_logs_byob && var.configure_access_logs ? 1 : 0 + + bucket = var.access_logs_s3_bucket_name + force_destroy = true +} + +resource "aws_s3_bucket_versioning" "this" { + count = !var.access_logs_byob && var.configure_access_logs ? 1 : 0 + bucket = aws_s3_bucket.this[0].id + versioning_configuration { + status = "Enabled" + } +} + +resource "aws_s3_bucket_server_side_encryption_configuration" "example" { + count = !var.access_logs_byob && var.configure_access_logs ? 1 : 0 + bucket = aws_s3_bucket.this[0].id + + rule { + apply_server_side_encryption_by_default { + sse_algorithm = "aws:kms" + } + } +} + +resource "aws_s3_bucket_public_access_block" "this" { + count = !var.access_logs_byob && var.configure_access_logs ? 1 : 0 + bucket = aws_s3_bucket.this[0].id + + block_public_acls = true + block_public_policy = true + ignore_public_acls = true + restrict_public_buckets = true +} + +resource "aws_s3_bucket_acl" "this" { + count = !var.access_logs_byob && var.configure_access_logs ? 1 : 0 + + bucket = aws_s3_bucket.this[0].id + acl = "private" +} + +data "aws_elb_service_account" "this" {} + +# Lookup information about the current AWS partition in which Terraform is working (e.g. `aws`, `aws-us-gov`, `aws-cn`) +data "aws_partition" "this" {} + +data "aws_iam_policy_document" "this" { + count = !var.access_logs_byob && var.configure_access_logs ? 1 : 0 + + statement { + principals { + type = "AWS" + identifiers = [data.aws_elb_service_account.this.arn] + } + + actions = ["s3:PutObject"] + + resources = ["arn:${data.aws_partition.this.partition}:s3:::${aws_s3_bucket.this[0].id}/${var.access_logs_s3_bucket_prefix != null ? "${var.access_logs_s3_bucket_prefix}/" : ""}AWSLogs/*"] + } +} + +resource "aws_s3_bucket_policy" "this" { + count = !var.access_logs_byob && var.configure_access_logs ? 1 : 0 + + bucket = aws_s3_bucket.this[0].id + policy = data.aws_iam_policy_document.this[0].json +} +# ######################## # + +## Add communication to ALB with ephemeral port + +/*resource "aws_security_group_rule" "alb_att" { + + from_port = 0 + protocol = "all" + source_security_group_id = var.security_groups[0] + security_group_id = var.security_groups[0] + to_port = 0 + type = "ingress" +}*/ + +# ## Application Load Balancer ## +resource "aws_lb" "this" { + name = var.lb_name + internal = false + load_balancer_type = "application" + enable_cross_zone_load_balancing = var.enable_cross_zone_load_balancing + + # some application load balancer specifics + drop_invalid_header_fields = true + idle_timeout = 30 + desync_mitigation_mode = var.desync_mitigation_mode + security_groups = var.security_groups + + subnets = [for k, v in var.subnets : v.id] + + dynamic "access_logs" { + for_each = var.configure_access_logs ? [1] : [] + + content { + bucket = var.access_logs_byob ? data.aws_s3_bucket.this[0].id : aws_s3_bucket.this[0].id + prefix = var.access_logs_s3_bucket_prefix + enabled = true + } + } + + tags = var.tags + + depends_on = [ + aws_s3_bucket_policy.this[0] + ] +} +# ######################## # + +# ## Target Group Configuration ## +resource "aws_lb_target_group" "this" { + for_each = local.listener_tg + + name = coalesce(each.value.name, "${var.lb_name}-${each.key}") + vpc_id = var.vpc_id + port = each.value.port + protocol = each.value.proto + protocol_version = each.value.proto_v + target_type = "ip" + load_balancing_algorithm_type = each.value.lb_algorithm + + health_check { + healthy_threshold = each.value.h_ch_healthy_threshold + unhealthy_threshold = each.value.h_ch_unhealthy_threshold + interval = each.value.h_ch_interval + timeout = each.value.h_ch_timeout + protocol = each.value.h_ch_protocol + port = each.value.h_ch_port + matcher = each.value.h_ch_matcher + path = each.value.h_ch_path + } + + tags = var.tags +} + +resource "aws_lb_target_group_attachment" "this" { + for_each = local.listener_tg_attachments + + target_group_arn = aws_lb_target_group.this[each.value.listener_tg_name].arn + target_id = each.value.ip + port = each.value.port + availability_zone = var.target_group_az +} +# ######################## # + +# ## Listener Configuration ## +resource "aws_lb_listener" "this" { + for_each = var.rules + + load_balancer_arn = aws_lb.this.arn + port = try(each.value.port, each.value.protocol == "HTTP" ? "80" : "443") + protocol = each.value.protocol + + # HTTPS specific values + certificate_arn = each.value.protocol == "HTTPS" ? try(each.value.certificate_arn, null) : null + ssl_policy = try(each.value.ssl_policy, null) + + # catch-all rule, if no listener rule matches + default_action { + type = "fixed-response" + fixed_response { + content_type = "text/plain" + status_code = "503" + } + } + + tags = merge({ name : each.key }, var.tags) +} + +resource "aws_lb_listener_rule" "this" { + for_each = local.listener_rules + + listener_arn = aws_lb_listener.this[each.value.listener_key].arn + priority = each.value.priority + + # we only forward traffic to Firewalls + action { + type = "forward" + target_group_arn = aws_lb_target_group.this[each.value.tg_key].arn + } + + # a block for host_header condition + dynamic "condition" { + for_each = each.value.host_headers != null ? [1] : [] + + content { + host_header { + values = each.value.host_headers + } + } + } + + # a block of http_header conditions + dynamic "condition" { + for_each = each.value.http_headers != null ? [1] : [] + content { + dynamic "http_header" { + for_each = each.value.http_headers + + content { + http_header_name = http_header.key + values = http_header.value + } + } + } + } + + # a block for http_request_method condition + dynamic "condition" { + for_each = each.value.http_request_method != null ? [1] : [] + + content { + http_request_method { + values = each.value.http_request_method + } + } + } + + # a block for path_pattern condition + dynamic "condition" { + for_each = each.value.path_pattern != null ? [1] : [] + + content { + path_pattern { + values = each.value.path_pattern + } + } + } + + # a block of query_string conditions + dynamic "condition" { + for_each = each.value.query_strings != null ? [1] : [] + content { + dynamic "query_string" { + for_each = each.value.query_strings + + content { + key = length(regexall("^nokey_.*$", query_string.key)) > 0 ? null : query_string.key + value = query_string.value + } + } + } + } + + # a block for source_ip condition + dynamic "condition" { + for_each = each.value.source_ip != null ? [1] : [] + + content { + source_ip { + values = each.value.source_ip + } + } + } +} +# ######################## # diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/outputs.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/outputs.tf new file mode 100644 index 0000000..9cfb0f9 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/outputs.tf @@ -0,0 +1,8 @@ +output "target_group" { + value = aws_lb_target_group.this +} + +output "lb_fqdn" { + description = "A FQDN for the Load Balancer." + value = aws_lb.this.dns_name +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/variables.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/variables.tf new file mode 100644 index 0000000..9ac74de --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/variables.tf @@ -0,0 +1,266 @@ +variable "lb_name" { + description = "Name of the Load Balancer to be created." + type = string +} + +variable "drop_invalid_header_fields" { + description = "Indicates whether HTTP headers with header fields that are not valid are removed by the Load Balancer or not." + default = false + type = bool +} + +variable "idle_timeout" { + description = "The time in seconds that the connection to the Load Balancer can be idle." + default = 60 + type = number +} + +variable "desync_mitigation_mode" { + description = <<-EOF + Determines how the Load Balancer handles requests that might pose a security risk to an application due to HTTP desync. + Defaults to AWS default. For possible values and current defaults refer to [documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb#desync_mitigation_mode). + EOF + default = null + type = string +} + +variable "configure_access_logs" { + description = <<-EOF + Configure Load Balancer to store access logs in an S3 Bucket. + + When used with `access_logs_byob` set to `false` forces creation of a new bucket. + If, however, `access_logs_byob` is set to `true` an existing bucket can be used. + + The name of the newly created or existing bucket is controlled via `access_logs_s3_bucket_name`. + EOF + default = false + type = bool +} + +variable "access_logs_byob" { + description = <<-EOF + Bring Your Own Bucket - in case you would like to re-use an existing S3 Bucket for Load Balancer's access logs. + + NOTICE. + This code does not set up proper `Bucket Policies` for existing buckets. They have to be already in place. + EOF + default = false + type = bool +} + +variable "access_logs_s3_bucket_name" { + description = <<-EOF + Name of an S3 Bucket that will be used as storage for Load Balancer's access logs. + + When used with `configure_access_logs` it becomes the name of a newly created S3 Bucket. + When used with `access_logs_byob` it is a name of an existing bucket. + EOF + default = "pantf-alb-access-logs-bucket" + type = string +} + +variable "access_logs_s3_bucket_prefix" { + description = "A path to a location inside a bucket under which access logs will be stored. When omitted defaults to the root folder of a bucket." + default = null + type = string +} + +variable "security_groups" { + description = <<-EOF + A list of security group IDs to use with a Load Balancer. + + If security groups are created with a [VPC module](../vpc/README.md) you can use output from that module like this: + ``` + security_groups = [module.vpc.security_group_ids["load_balancer_security_group"]] + ``` + For more information on the `load_balancer_security_group` key refer to the [VPC module documentation](../vpc/README.md). + EOF + type = list(string) +} + +variable "subnets" { + description = <<-EOF + Map of subnets used with a Load Balancer. Each key is the availability zone name and the value is an object that has an attribute + `id` identifying AWS subnet. + + Examples: + + You can define the values directly: + + ``` + subnets = { + "us-east-1a" = { id = "snet-123007" } + "us-east-1b" = { id = "snet-123008" } + } + ``` + + You can also use output from the `subnet_sets` module: + + ``` + subnets = { for k, v in module.subnet_sets["untrust"].subnets : k => { id = v.id } } + ``` + + EOF + type = map(object({ + id = string + })) +} + +variable "enable_cross_zone_load_balancing" { + description = <<-EOF + Enable load balancing between instances in different AZs. Defaults to `true`. + Change to `false` only if absolutely necessary. By default, there is only one FW in each AZ. + Turning this off means 1:1 correlation between a public IP assigned to an AZ and a FW deployed in that AZ. + EOF + + default = true + type = bool +} + +variable "vpc_id" { + description = "ID of the security VPC for the Load Balancer." + type = string +} + +variable "rules" { + description = <<-EOF + An object that contains the listener, listener_rules, target group, and health check configuration. + It consists of maps of applications with their properties, like in the following example: + + ``` + rules = { + "application_name" = { + protocol = "communication protocol, since this is an ALB module accepted values are `HTTP` or `HTTPS`" + port = "communication port, defaults to protocol's default port" + + certificate_arn = "(HTTPS ONLY) this is the arn of an existing certificate, this module will not create one for you" + ssl_policy = "(HTTPS ONLY) name of an ssl policy used by the Load Balancer's listener, defaults to AWS default, for available options see [AWS documentation](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html#describe-ssl-policies)" + + health_check_protocol = "this can be either `HTTP` or `HTTPS`, defaults to communication protocol" + health_check_port = "port used by the target group health check, if omitted, `traffic-port` will be used (which will be the same as communication port)" + health_check_healthy_threshold = "number of consecutive health checks before considering target healthy, defaults to 3" + health_check_unhealthy_threshold = "number of consecutive health checks before considering target unhealthy, defaults to 3" + health_check_interval = "time between each health check, between 5 and 300 seconds, defaults to 30s" + health_check_timeout = "health check probe timeout, defaults to AWS default value" + health_check_matcher = "response codes expected during health check, defaults to `200`" + health_check_path = "destination used by the health check request, defaults to `/`" + + listener_rules = "a map of rules for a listener created for this application, see `listener_rules` block below for more information + } + } + ``` + + The `application_name` key is valid only for letters, numbers and a dash (`-`) - that's an AWS limitation. + +
+ There is always one listener created per application. The listener has always a default action that responds with `503`. This should be treated as a `catch-all` rule. For the listener to send traffic to backends a listener rule has to be created. This is controlled via the `listener_rules` map. + + A key in this map is the priority of the listener rule. Priority can be between `1` and `50000` (AWS specifics). All properties under a particular key refer to either rule's condition(s) or the target group that should receive traffic if a rule is met. + + Rule conditions - at least one but not more than five of: `host_headers`, `http_headers`, `http_request_method`, `path_pattern`, `query_strings` or `source_ip` has to be set. For more information on what conditions can be set for each type refer to [documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener_rule#condition-blocks). + + Target group - keep in mind that all target group attachments are always pointing to VMSeries' public interfaces. The difference between target groups for each rule is the protocol and/or port to which the traffic is being directed. And these are the only properties you can configure (`target_protocol`, `protocol_version` and `target_port` respectively). + + The `listener_rules` map presents as follows: + + ``` + listener_rules = { + "rule_priority" = { # string representation of a rule's priority (number from 1 - 50000) + target_port = "port on which the target is listening for requests" + target_protocol = "target protocol, can be `HTTP` or `HTTPS`" + protocol_version = "one of `HTTP1`, `HTTP/2` or `GRPC`, defaults to `HTTP1`" + + round_robin = "bool, if set to true (default) the `round-robin` load balancing algorithm is used, otherwise a target attachment with least outstanding requests is chosen. + + host_headers = "a list of possible host headers, case insensitive, wildcards (`*`,`?`) are supported" + http_headers = "a map of key-value pairs, where key is a name of an HTTP header and value is a list of possible values, same rules apply like for `host_headers`" + http_request_method = "a list of possible HTTP request methods, case sensitive (upper case only), strict matching (no wildcards)" + path_pattern = "a list of path patterns (w/o query strings), case sensitive, wildcards supported" + query_strings = "a map of key-value pairs, key is a query string key pattern and value is a query string value pattern, case insensitive, wildcards supported, it is possible to match only a value pattern (the key value should be prefixed with `nokey_`)" + source_ip = "a list of source IP CDIR notation to match" + } + } + ``` + +
+ EXAMPLE + + ``` + listener_rules = { + "1" = { + target_port = 8080 + target_protocol = "HTTP" + host_headers = ["public-alb-1050443040.eu-west-1.elb.amazonaws.com"] + http_headers = { + "X-Forwarded-For" = ["192.168.1.*"] + } + http_request_method = ["GET"] + } + "99" = { + host_headers = ["www.else.org"] + target_port = 8081 + target_protocol = "HTTP" + path_pattern = ["/", "/login.php"] + query_strings = { + "lang" = "us" + "nokey_1" = "test" + } + source_ip = ["10.0.0.0/8"] + } + } + ``` + EOF + validation { + # To mitigate an AWS provider error following validation is introduced. + # The error occurs when trying to create a new listener with port and protocol of an existing one. + # Instead of throwing an error (due to the port being already taken) the provider will try to create the listener. + # From AWS perspective the existing listener will be updated in place. + # From TF state perspective, a new object will be created but it will point to the ARN of the existing listener. + # This leads to a race condition when it comes to applying properties to this listener. + # + # What is being compared below is the length of the map containing all rules + # to the length of a list containing only unique combination of a port and protocol taken from each rule. + # If we have duplicates, the unique list will have less elements. + condition = length(var.rules) == length(distinct(flatten([ + for _, v in var.rules : "${v.protocol}-${try(v.port, v.protocol == "HTTP" ? 80 : 443)}" + ]))) + error_message = "Port and protocol value for each listener must be unique." + } + # For the moment there is no other possibility to specify a `type` for this kind of variable. + # Even `map(any)` is to restrictive as it requires that all map elements must have the same type. + # Actually, in our case they have the same type, but they differ in the amount of inner elements. + type = any +} + +variable "targets" { + description = <<-EOF + A list of backends accepting traffic. For Application Load Balancer all targets are of type `IP`. This is because this is the only option that allows a direct routing between a Load Balancer and a specific VMSeries' network interface. The Application Load Balancer is meant to be always public, therefore the VMSeries IPs should be from the public facing subnet. An example on how to feed this variable with data: + + ``` + fw_instance_ips = { for k, v in var.vmseries : k => module.vmseries[k].interfaces["untrust"].private_ip } + ``` + + For format of `var.vmseries` check the [`vmseries` module](../vmseries/README.md). The key is the VM name. By using those keys, we can loop through all vmseries modules and take the private IP from the interface that is assigned to the subnet we require. The subnet can be identified by the subnet set name (like above). In other words, the `for` loop returns the following map: + + ``` + { + vm01 = "1.1.1.1" + vm02 = "2.2.2.2" + ... + } + ``` + EOF + type = map(string) +} + +variable "tags" { + description = "Map of AWS tags to apply to all the created resources." + default = {} + type = map(string) +} + +variable "target_group_az" { + description = "Availability Zones of Target Group ('all' for target group outside of VPC)" + default = null + type = string +} \ No newline at end of file diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/versions.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/versions.tf new file mode 100644 index 0000000..9ddb384 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/alb/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.0.0, < 2.0.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.17" + } + } +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/LICENSE b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/LICENSE new file mode 100644 index 0000000..49c5cbf --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Palo Alto Networks, inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/fixture.json b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/fixture.json new file mode 100644 index 0000000..f1388bc --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/fixture.json @@ -0,0 +1,38 @@ +{ + "schema": 1, + "id": "registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6", + "ref": "1.1.6", + "path": "modules/bootstrap", + "archiveSha256": "d1f8addda811aa7a48837401f3bb3eda1903e3796a5a5f25280366499d4248d4", + "inputSha256": "31b6c85a01474e4f1b02b7e7de0bb86a2a3dd57776aaf1d86649f65431dfee72" + }, + "license": "MIT", + "providers": [ + "aws", + "random" + ], + "features": [ + "conditionals", + "count", + "data", + "for_each", + "functions", + "heredoc", + "interpolation", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/input/main.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/input/main.tf new file mode 100644 index 0000000..a94055a --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/bootstrap/input/main.tf @@ -0,0 +1,152 @@ +resource "random_id" "sufix" { + byte_length = 8 +} + +locals { + random_name = "${var.prefix}${random_id.sufix.hex}" + bucket_name = coalesce(var.bucket_name, local.random_name) + aws_s3_bucket = var.create_bucket ? aws_s3_bucket.this[0] : data.aws_s3_bucket.this[0] + iam_role_name = coalesce(var.iam_role_name, local.random_name) + aws_iam_role = var.create_iam_role_policy ? aws_iam_role.this[0] : data.aws_iam_role.this[0] +} + +data "aws_s3_bucket" "this" { + count = var.create_bucket == false ? 1 : 0 + + bucket = local.bucket_name +} + +resource "aws_s3_bucket" "this" { + count = var.create_bucket == true ? 1 : 0 + + bucket = local.bucket_name + force_destroy = var.force_destroy + tags = var.global_tags +} + +resource "aws_s3_bucket_versioning" "this" { + count = var.create_bucket == true ? 1 : 0 + bucket = aws_s3_bucket.this[0].id + versioning_configuration { + status = "Enabled" + } +} + +resource "aws_s3_bucket_server_side_encryption_configuration" "example" { + count = var.create_bucket == true ? 1 : 0 + bucket = aws_s3_bucket.this[0].id + + rule { + apply_server_side_encryption_by_default { + sse_algorithm = "aws:kms" + } + } +} + +resource "aws_s3_bucket_public_access_block" "this" { + count = var.create_bucket == true ? 1 : 0 + bucket = aws_s3_bucket.this[0].id + + block_public_acls = true + block_public_policy = true + ignore_public_acls = true + restrict_public_buckets = true +} + +resource "aws_s3_bucket_ownership_controls" "this" { + count = var.create_bucket == true ? 1 : 0 + bucket = aws_s3_bucket.this[0].id + + rule { + object_ownership = "BucketOwnerEnforced" + } +} + +resource "aws_s3_object" "bootstrap_dirs" { + for_each = toset(var.bootstrap_directories) + + bucket = local.aws_s3_bucket.id + key = each.value + content = "/dev/null" +} + +resource "aws_s3_object" "init_cfg" { + count = contains(fileset(local.source_root_directory, "**"), "config/init-cfg.txt") ? 0 : 1 + + bucket = local.aws_s3_bucket.id + key = "config/init-cfg.txt" + content = templatefile("${path.module}/init-cfg.txt.tmpl", { bootstrap_options = var.bootstrap_options }) +} + +locals { + source_root_directory = coalesce(var.source_root_directory, "${path.root}/files") +} + +resource "aws_s3_object" "bootstrap_files" { + for_each = fileset(local.source_root_directory, "**") + + bucket = local.aws_s3_bucket.id + key = each.value + source = "${local.source_root_directory}/${each.value}" +} + +data "aws_iam_role" "this" { + count = var.create_iam_role_policy == false && var.iam_role_name != null ? 1 : 0 + + name = var.iam_role_name +} + +# Lookup information about the current AWS partition in which Terraform is working (e.g. `aws`, `aws-us-gov`, `aws-cn`) +data "aws_partition" "this" {} + +resource "aws_iam_role" "this" { + count = var.create_iam_role_policy ? 1 : 0 + + name = local.iam_role_name + + tags = var.global_tags + assume_role_policy = < v } +} + +resource "aws_route" "this" { + for_each = local.input_routes + + route_table_id = each.value.route.route_table_id + vpc_endpoint_id = aws_vpc_endpoint.this[each.value.subnetkey].id + destination_cidr_block = each.value.subnet.cidr_block + # The route matches the exact cidr of a subnet, no less and no more. + # Routes like these are special in that they are on the "edge", that is they are part of an IGW route table, + # and AWS allows their destinations to only be: + # - The entire IPv4 or IPv6 CIDR block of your VPC. (Not interesting, as we always want AZ-specific next hops.) + # - The entire IPv4 or IPv6 CIDR block of a subnet in your VPC. (This is used here.) + # Source: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html#gateway-route-table + + # Aside: a VGW has the same rules, except it only supports individual NICs but not GWLB. Such lack + # of GWLB balancing looks like a temporary AWS limitation. +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/input/outputs.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/input/outputs.tf new file mode 100644 index 0000000..475bb52 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/input/outputs.tf @@ -0,0 +1,28 @@ +output "next_hop_set" { + description = <<-EOF + The Next Hop Set object, useful as an input to the `vpc_route` module. The intention would + be to route traffic from subnets to endpoints while preventing cross-AZ traffic (so + that a subnet in AZ-a only routes to an endpoint in AZ-a). Example: + + ``` + next_hop_set = { + ids = { + "us-east-1a" = "gwlbe-0ddf598f93a8ea8ae" + "us-east-1b" = "gwlbe-0862c4b707b012111" + } + id = null + type = "vpc_endpoint" + } + ``` + EOF + value = { + type = "vpc_endpoint" + id = null + ids = { for k, _ in var.subnets : k => aws_vpc_endpoint.this[k].id } + } +} + +output "endpoints" { + description = "Map of the created endpoints. The keys are the same as the keys of the input `subnets`." + value = aws_vpc_endpoint.this +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/input/variables.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/input/variables.tf new file mode 100644 index 0000000..7a49920 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/input/variables.tf @@ -0,0 +1,80 @@ +variable "name" { + description = "Name of the VPC Endpoint Set, for example: \"my-gwlbe-\". Each individual endpoint is named by appending an AZ letter, such as \"my-set-a\" and \"my-set-b\". These names can be overriden using `custom_names`." + default = "gwlbe-" + type = string +} + +variable "custom_names" { + description = "Optional map of readable names of the VPC Endpoints, used to override the default naming generated from the input `name`. Each key is the Availability Zone identifier, for example `us-east-1b`. Each value is used as VPC Endpoint's standard AWS tag `Name`, for example \"my-gwlbe-in-us-east-1b\"." + default = {} + type = map(string) +} + +variable "gwlb_service_name" { + description = "The name of the VPC Endpoint Service to connect to, which may reside in a different VPC. Usually an output `module.gwlb.endpoint_service.service_name`. Example: \"com.amazonaws.vpce.eu-west-3.vpce-svc-0df5336455053eb2b\"." + type = string +} + +variable "gwlb_service_type" { + description = "The type of the Endpoint to create for `gwlb_service_name`." + default = "GatewayLoadBalancer" + type = string +} + +variable "vpc_id" { + description = "AWS identifier of a VPC containing the Endpoint." + type = string +} + +variable "subnets" { + description = <<-EOF + Map of Subnets where to create the Endpoints. Each map's key is the availability zone name and each map's object has an attribute + `id` identifying AWS Subnet. Importantly, the traffic returning from the Endpoint uses the Subnet's route table. + The keys of this input map are used for the output map `endpoints`. + Example for users of module `subnet_set`: + ``` + subnets = module.subnet_set.subnets + ``` + Example: + ``` + subnets = { + "us-east-1a" = { id = "snet-123007" } + "us-east-1b" = { id = "snet-123008" } + } + ``` + EOF + type = map(object({ + id = string + })) +} + +variable "act_as_next_hop_for" { + description = <<-EOF + The map of edge routes to create to pass network traffic to this Endpoint Set. + This input is not intended for typical routes - use instead the `vpc_route` module to pass traffic through this Endpoint Set from sources other than IGW. + This input only handles routes which have subnet CIDRs destination (AZ-specific), usually the ingress traffic coming from an Internet Gateway. + AWS docs call this special kind of route the ["edge route"](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html#gateway-route-table). + The keys of the map are arbitrary strings. Example: + ``` + act_as_next_hop_for = { + from_igw_to_alb = { + route_table_id = module.my_vpc.internet_gateway_route_table.id + to_subnets = module.my_alb_subnet_set.subnets + } + ``` + In this example, traffic from IGW destined to the ALB is instead routed to the GWLBE (for inspection by an appliance). + EOF + default = {} + type = map(object({ + route_table_id = string + to_subnets = map(object({ + cidr_block = string + })) + })) +} + +variable "tags" { + description = "AWS Tags for the VPC Endpoints." + default = {} + type = map(string) +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/input/versions.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/input/versions.tf new file mode 100644 index 0000000..9ddb384 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/gwlb_endpoint_set/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.0.0, < 2.0.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.17" + } + } +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/LICENSE b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/LICENSE new file mode 100644 index 0000000..49c5cbf --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Palo Alto Networks, inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/fixture.json b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/fixture.json new file mode 100644 index 0000000..beb7bb8 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6", + "ref": "1.1.6", + "path": "modules/nat_gateway_set", + "archiveSha256": "d1f8addda811aa7a48837401f3bb3eda1903e3796a5a5f25280366499d4248d4", + "inputSha256": "6ac0f42fc53855bbef95535b9127699abe89adb448579c0b25de865885e9b5fd" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "data", + "for_each", + "for_expressions", + "functions", + "heredoc", + "interpolation", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/input/main.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/input/main.tf new file mode 100644 index 0000000..bfcb6f1 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/input/main.tf @@ -0,0 +1,58 @@ +locals { + eips = var.create_eip ? aws_eip.this : data.aws_eip.this + nat_gateways = var.create_nat_gateway ? aws_nat_gateway.this : data.aws_nat_gateway.this +} + +# +# Elastic IPs: either new or pre-existing. +# +resource "aws_eip" "this" { + for_each = var.create_eip && var.create_nat_gateway ? var.subnets : {} + + domain = var.eip_domain + tags = merge( + var.global_tags, + { Name = coalesce(try(var.eips[each.key].name, null), try(each.value.tags.Name, null), "natgw-${each.key}") }, + var.eip_tags + ) +} + +data "aws_eip" "this" { + for_each = var.create_eip == false && var.create_nat_gateway ? var.eips : {} + + id = try(each.value.id, null) + public_ip = try(each.value.public_ip, null) + tags = merge(var.eip_tags, try(each.value.name, null) != null ? { Name = each.value.name } : {}) +} + +# +# NAT Gateways: either new or pre-existing. +# +resource "aws_nat_gateway" "this" { + for_each = var.create_nat_gateway ? var.subnets : {} + + allocation_id = local.eips[each.key].id + subnet_id = each.value.id + tags = merge( + # First take the general tags, + var.global_tags, + # ...override name with a sane default, + { Name = "natgw-${each.key}" }, + # ...now attempt to override again - to the same name as the owning subnet, + try({ Name = each.value.tags.Name }, {}), + # ...in the end, custom tags prevail. + var.nat_gateway_tags, + try({ Name = var.nat_gateway_names[each.key] }, {}) + ) +} + +data "aws_nat_gateway" "this" { + for_each = var.create_nat_gateway == false ? var.subnets : {} + + subnet_id = each.value.id + state = "available" + tags = merge( + var.nat_gateway_tags, + try({ Name = var.nat_gateway_names[each.key] }, {}) + ) +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/input/outputs.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/input/outputs.tf new file mode 100644 index 0000000..4526d34 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/input/outputs.tf @@ -0,0 +1,31 @@ +output "next_hop_set" { + description = <<-EOF + The Next Hop Set object, useful as the input to the `vpc_route` module. Example: + + ``` + next_hop_set = { + ids = { + "us-east-1a" = "nat-0ddf598f93a8ea8ae" + "us-east-1b" = "nat-0862c4b707b012111" + } + id = null + type = "nat_gateway" + } + ``` + EOF + value = { + type = "nat_gateway" + id = null + ids = { for k, v in local.nat_gateways : k => v.id } + } +} + +output "nat_gateways" { + description = "The map of NAT Gateway objects." + value = local.nat_gateways +} + +output "eips" { + description = "The map of Elastic IP objects. Only valid if `create_nat_gateway` is at the default true value." + value = var.create_nat_gateway ? local.eips : {} +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/input/variables.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/input/variables.tf new file mode 100644 index 0000000..0b09d6b --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nat_gateway_set/input/variables.tf @@ -0,0 +1,95 @@ +variable "create_nat_gateway" { + description = "If false, does not create a new NAT Gateway, but instead reads a pre-existing one." + default = true + type = bool +} + +variable "create_eip" { + description = "If false, does not create a new Elastic IP, but instead reads a pre-existing one. This input is ignored if `create_nat_gateway` is false." + default = true + type = bool +} + +variable "eips" { + description = <<-EOF + Optional map of Elastic IP attributes. Each key is an Availability Zone name, for example "us-east-1b". Each entry has optional attributes `name`, `public_ip`, `id`. + These are mainly useful to select a pre-existing Elastic IP when create_eip is false. Example: + + ``` + eips = { + "us-east-1a" = { id = aws_eip.a.id } + "us-east-1b" = { id = aws_eip.b.id } + } + ``` + + The `name` attribute can be used both for selecting the pre-existing Elastic IP, or for customizing a newly created Elastic IP: + + ``` + eips = { + "us-east-1a" = { name = "Alice" } + "us-east-1b" = { name = "Bob" } + } + ``` + EOF + default = {} +} + +variable "nat_gateway_names" { + description = < { + app_name = v.app_name + id = v.id + port = v.port + target_az = v.target_az + } + } +} + +# ## Access Logs Bucket ## +# For Application Load Balancers where access logs are stored in S3 Bucket. +data "aws_s3_bucket" "this" { + count = var.access_logs_byob && var.configure_access_logs ? 1 : 0 + + bucket = var.access_logs_s3_bucket_name +} + +resource "aws_s3_bucket" "this" { + count = !var.access_logs_byob && var.configure_access_logs ? 1 : 0 + + bucket = var.access_logs_s3_bucket_name + force_destroy = true +} + +resource "aws_s3_bucket_versioning" "this" { + count = !var.access_logs_byob && var.configure_access_logs ? 1 : 0 + bucket = aws_s3_bucket.this[0].id + versioning_configuration { + status = "Enabled" + } +} + +resource "aws_s3_bucket_server_side_encryption_configuration" "this" { + count = !var.access_logs_byob && var.configure_access_logs ? 1 : 0 + bucket = aws_s3_bucket.this[0].id + + rule { + apply_server_side_encryption_by_default { + sse_algorithm = "aws:kms" + } + } +} + +resource "aws_s3_bucket_public_access_block" "this" { + count = !var.access_logs_byob && var.configure_access_logs ? 1 : 0 + bucket = aws_s3_bucket.this[0].id + + block_public_acls = true + block_public_policy = true + ignore_public_acls = true + restrict_public_buckets = true +} + +resource "aws_s3_bucket_acl" "this" { + count = !var.access_logs_byob && var.configure_access_logs ? 1 : 0 + + bucket = aws_s3_bucket.this[0].id + acl = "private" +} + +data "aws_elb_service_account" "this" {} + +# Lookup information about the current AWS partition in which Terraform is working (e.g. `aws`, `aws-us-gov`, `aws-cn`) +data "aws_partition" "this" {} + +data "aws_iam_policy_document" "this" { + count = !var.access_logs_byob && var.configure_access_logs ? 1 : 0 + + statement { + principals { + type = "AWS" + identifiers = [data.aws_elb_service_account.this.arn] + } + + actions = ["s3:PutObject"] + + resources = ["arn:${data.aws_partition.this.partition}:s3:::${aws_s3_bucket.this[0].id}/${var.access_logs_s3_bucket_prefix != null ? "${var.access_logs_s3_bucket_prefix}/" : ""}AWSLogs/*"] + } +} + +resource "aws_s3_bucket_policy" "this" { + count = !var.access_logs_byob && var.configure_access_logs ? 1 : 0 + + bucket = aws_s3_bucket.this[0].id + policy = data.aws_iam_policy_document.this[0].json +} +# ######################## # + +resource "aws_eip" "this" { + for_each = local.public_lb_with_eip ? var.subnets : {} + + tags = merge({ Name = "${var.name}-${each.key}" }, var.tags) +} + +resource "aws_lb" "this" { + name = var.name + internal = var.internal_lb + load_balancer_type = "network" + enable_cross_zone_load_balancing = var.enable_cross_zone_load_balancing + security_groups = var.security_groups + + # If we relay on AWS to manage public IPs we use `subnets` to attach a Load Balancer with a subnet. + # We use `subnets` property also for non-public LBs. + # On the contrary, if we would like to have a public Load Balancer with our own EIPs + # we need to assign them to a subnet explicitly, therefore we use `subnet mapping`. + # The code below does the proper use of `subnets` and `subnet_mapping` + # based on the use cases described above. + # + # Generally, the decision is being made on a fact if we have a public Load Balancer + # with dedicated EIPs or not. + subnets = local.public_lb_with_eip ? null : [for k, v in var.subnets : v.id] + dynamic "subnet_mapping" { + for_each = local.public_lb_with_eip ? var.subnets : {} + + content { + subnet_id = subnet_mapping.value.id + allocation_id = aws_eip.this[subnet_mapping.key].id + } + } + + dynamic "access_logs" { + for_each = var.configure_access_logs ? [1] : [] + + content { + bucket = var.access_logs_byob ? data.aws_s3_bucket.this[0].id : aws_s3_bucket.this[0].id + prefix = var.access_logs_s3_bucket_prefix + enabled = true + } + } + + tags = var.tags +} + +resource "aws_lb_target_group" "this" { + for_each = var.balance_rules + + name = coalesce(try(each.value.name, null), "${var.name}-${each.key}") + vpc_id = var.vpc_id + port = try(each.value.target_port, each.value.port) + protocol = each.value.protocol + target_type = each.value.target_type + + + health_check { + healthy_threshold = try(each.value.threshold, null) + unhealthy_threshold = try(each.value.threshold, null) + interval = try(each.value.interval, null) + protocol = "TCP" + port = try(each.value.health_check_port, "traffic-port") + } + + dynamic "stickiness" { + # For TLS stickiness is not supported, see link: + # https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html#sticky-sessions#:~:text=Sticky%20sessions%20are%20not%20supported%20with%20TLS%20listeners%20and%20TLS%20target%20groups. + for_each = each.value.stickiness && each.value.protocol != "TLS" ? [1] : [] + + content { + enabled = true + type = "source_ip" + } + } + + tags = var.tags +} + +resource "aws_lb_target_group_attachment" "this" { + for_each = local.target_attachments + + target_group_arn = aws_lb_target_group.this[each.value.app_name].arn + target_id = each.value.id + port = each.value.port + availability_zone = each.value.target_az +} + +resource "aws_lb_listener" "this" { + for_each = var.balance_rules + + load_balancer_arn = aws_lb.this.arn + port = each.value.port + protocol = each.value.protocol + + # TLS specific values + certificate_arn = each.value.protocol == "TLS" ? try(each.value.certificate_arn, null) : null + alpn_policy = each.value.protocol == "TLS" ? try(each.value.alpn_policy, "None") : null + + # This is meant to be a typical Layer4 LB, so the only supported action is `forward`. + default_action { + type = "forward" + target_group_arn = aws_lb_target_group.this[each.key].arn + } + + tags = var.tags +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/input/outputs.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/input/outputs.tf new file mode 100644 index 0000000..9cfb0f9 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/input/outputs.tf @@ -0,0 +1,8 @@ +output "target_group" { + value = aws_lb_target_group.this +} + +output "lb_fqdn" { + description = "A FQDN for the Load Balancer." + value = aws_lb.this.dns_name +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/input/variables.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/input/variables.tf new file mode 100644 index 0000000..792c5f7 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/input/variables.tf @@ -0,0 +1,202 @@ +variable "name" { + description = "Name of the Load Balancer to be created, must be less or equal to 32 char." + type = string +} + +variable "create_dedicated_eips" { + description = "If set to `true`, a set of EIPs will be created for each zone/subnet. Otherwise AWS will handle IP management." + default = false + type = bool +} + +variable "internal_lb" { + description = "Determines if this Load Balancer will be a public (default) or an internal one." + default = false + type = bool +} + + +variable "subnets" { + description = <<-EOF + Map of subnets used with a Network Load Balancer. Each map's key is the availability zone name and the value is an object that has an attribute + `id` identifying AWS subnet. + + Examples: + + You can define the values directly: + + ``` + subnets = { + "us-east-1a" = { id = "snet-123007" } + "us-east-1b" = { id = "snet-123008" } + } + ``` + + You can also use output from the `subnet_sets` module: + + ``` + subnets = { for k, v in module.subnet_sets["untrust"].subnets : k => { id = v.id } } + ``` + + EOF + type = map(object({ + id = string + })) +} + +variable "security_groups" { + description = <<-EOF + A list of security group IDs to use with a Load Balancer. + + If security groups are created with a [VPC module](../vpc/README.md) you can use output from that module like this: + ``` + security_groups = [module.vpc.security_group_ids["load_balancer_security_group"]] + ``` + For more information on the `load_balancer_security_group` key refer to the [VPC module documentation](../vpc/README.md). + EOF + type = list(string) + default = [] +} + +variable "enable_cross_zone_load_balancing" { + description = <<-EOF + Enable load balancing between instances in different AZs. Defaults to `true`. + Change to `false` only if absolutely necessary. By default, there is only one FW in each AZ. + Turning this off means 1:1 correlation between a public IP assigned to an AZ and a FW deployed in that AZ. + EOF + + default = true + type = bool +} + +variable "vpc_id" { + description = "ID of the security VPC the Load Balancer should be created in." + type = string +} + +variable "balance_rules" { + description = <<-EOF + An object that contains the listener, target group, and health check configuration. + It consist of maps of applications like follows: + + ``` + balance_rules = { + "application_name" = { + protocol = "communication protocol, since this is a NLB module accepted values are TCP or TLS" + port = "communication port" + target_type = "type of the target that will be attached to a target group, no defaults here, has to be provided explicitly (regardless the defaults terraform could accept)" + target_port = "for target types supporting port values, the port number on which the target accepts communication, defaults to the communication port value" + targets = "a map of targets, where key is the target name (used to create a name for the target attachment), value is the target ID (IP, resource ID, etc - the actual value depends on the target type)" + target_az = "This parameter is not supported if the target type of the target group is instance or alb. If the target type is ip and the IP address is outside the VPC, this parameter is required." + health_check_port = "port used by the target group healthcheck, if ommited, `traffic-port` will be used" + threshold = "number of consecutive health checks before considering target healthy or unhealthy, defaults to 3" + interval = "time between each health check, between 5 and 300 seconds, defaults to 30s" + + certificate_arn = "(TLS ONLY) this is the arn of a certificate" + alpn_policy = "(TLS ONLY) ALPN policy name, for possible values check (terraform documentation)[https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener#alpn_policy], defaults to `None`" + } + } + ``` + + The `application_name` key is valid only for letters, numbers and a dash (`-`) - that's an AWS limitation. + +
+ `protocol` and `port` are used for `listener`, `target group` and `target group attachment`. Partially also for health checks (see below). + +
+ All listeners are always of forward action. + +
+ If you add FWs as targets, make sure you use `target_type = "ip"` and you provide the correct FW IPs in `target` map. IPs should be from the subnet set that the Load Balancer was created in. An example on how to feed this variable with data: + + ``` + fw_instance_ips = { for k, v in var.vmseries : k => module.vmseries[k].interfaces["untrust"].private_ip } + ``` + + For format of `var.vmseries` check the (`vmseries` module)[../vmseries/README.md]. The key is the VM name. By using those keys, we can loop through all vmseries modules and take the private IP from the interface that is assigned to the subnet we require. The subnet can be identified by the subnet set name (like above). In other words, the `for` loop returns the following map: + + ``` + { + vm01 = "1.1.1.1" + vm02 = "2.2.2.2" + ... + } + ``` + +
+ Healthchecks are by default of type TCP. Reason for that is the fact, that HTTP requests might flow through the FW to the actual application. So instead of checking the status of the FW we might check the status of the application. + + You have an option to specify a health check port. This way you can set up a Management Profile with an Administrative Management Service limited only to NLBs private IPs and use a port for that service as the health check port. This way you make sure you separate the actual health check from the application rule's port. + +
+ EXAMPLE + + ``` + balance_rules = { + "HTTPS-APP" = { + protocol = "TCP" + port = "443" + health_check_port = "80" + threshold = 2 + interval = 10 + target_port = 8443 + target_type = "ip" + targets = { for k, v in var.vmseries : k => module.vmseries[k].interfaces["untrust"].private_ip } + target_az = "all" + stickiness = true + } + } + ``` + EOF + # For the moment there is no other possibility to specify a `type` for this kind of variable. + # Even `map(any)` is to restrictive as it requires that all map elements must have the same type. + # Actually, in our case they have the same type, but they differ in the mount of inner elements. + type = any +} + +variable "tags" { + description = "Map of AWS tags to apply to all the created resources." + default = {} + type = map(string) +} + +variable "configure_access_logs" { + description = <<-EOF + Configure Load Balancer to store access logs in an S3 Bucket. + + When used with `access_logs_byob` set to `false` forces creation of a new bucket. + If, however, `access_logs_byob` is set to `true` an existing bucket can be used. + + The name of the newly created or existing bucket is controlled via `access_logs_s3_bucket_name`. + EOF + default = false + type = bool +} + +variable "access_logs_byob" { + description = <<-EOF + Bring Your Own Bucket - in case you would like to re-use an existing S3 Bucket for Load Balancer's access logs. + + NOTICE. + This code does not set up proper `Bucket Policies` for existing buckets. They have to be already in place. + EOF + default = false + type = bool +} + +variable "access_logs_s3_bucket_name" { + description = <<-EOF + Name of an S3 Bucket that will be used as storage for Load Balancer's access logs. + + When used with `configure_access_logs` it becomes the name of a newly created S3 Bucket. + When used with `access_logs_byob` it is a name of an existing bucket. + EOF + default = "pantf-alb-access-logs-bucket" + type = string +} + +variable "access_logs_s3_bucket_prefix" { + description = "A path to a location inside a bucket under which access logs will be stored. When omitted defaults to the root folder of a bucket." + default = null + type = string +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/input/versions.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/input/versions.tf new file mode 100644 index 0000000..9ddb384 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/nlb/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.0.0, < 2.0.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.17" + } + } +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/LICENSE b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/LICENSE new file mode 100644 index 0000000..49c5cbf --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Palo Alto Networks, inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/fixture.json b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/fixture.json new file mode 100644 index 0000000..095294b --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/fixture.json @@ -0,0 +1,38 @@ +{ + "schema": 1, + "id": "registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6", + "ref": "1.1.6", + "path": "modules/panorama", + "archiveSha256": "d1f8addda811aa7a48837401f3bb3eda1903e3796a5a5f25280366499d4248d4", + "inputSha256": "b202e37bbf2810956103a098c7c3dd445d216afa10836ec5191fb4d249f8c470" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "dynamic", + "for_each", + "for_expressions", + "functions", + "heredoc", + "interpolation", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/main.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/main.tf new file mode 100644 index 0000000..c3a642b --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/main.tf @@ -0,0 +1,91 @@ +# Panorama AMI ID lookup based on license type, region, version +data "aws_ami" "this" { + count = var.panorama_ami_id != null ? 0 : 1 + most_recent = true + owners = ["aws-marketplace"] + + filter { + name = "name" + values = ["Panorama-AWS-${var.panorama_version}*"] + } + filter { + name = "product-code" + values = [var.product_code] + } + + name_regex = "^Panorama-AWS-${var.panorama_version}-[[:alnum:]]{8}-([[:alnum:]]{4}-){3}[[:alnum:]]{12}$" +} + +# Retrieve the default KMS key in the current region for EBS encryption +data "aws_ebs_default_kms_key" "current" { + count = var.ebs_encrypted ? 1 : 0 +} + +# Retrieve an alias for the KMS key for EBS encryption +data "aws_kms_alias" "current_arn" { + count = var.ebs_encrypted ? 1 : 0 + name = data.aws_ebs_default_kms_key.current[0].key_arn +} + +# Create the Panorama Instance +resource "aws_instance" "this" { + ami = coalesce(var.panorama_ami_id, try(data.aws_ami.this[0].id, null)) + instance_type = var.instance_type + availability_zone = var.availability_zone + key_name = var.ssh_key_name + private_ip = var.private_ip_address + subnet_id = var.subnet_id + vpc_security_group_ids = var.vpc_security_group_ids + disable_api_termination = false + instance_initiated_shutdown_behavior = "stop" + ebs_optimized = true + monitoring = false + iam_instance_profile = var.panorama_iam_role + + dynamic "metadata_options" { + for_each = var.enable_imdsv2 ? [1] : [] + content { + http_endpoint = "enabled" + http_tokens = "required" + } + } + + root_block_device { + delete_on_termination = true + encrypted = var.ebs_encrypted + kms_key_id = var.ebs_encrypted == false ? null : coalesce(var.ebs_kms_key_alias, data.aws_kms_alias.current_arn[0].target_key_arn) + } + + tags = merge(var.global_tags, { Name = var.name }) +} + +# Create Elastic IP +resource "aws_eip" "this" { + count = var.create_public_ip ? 1 : 0 + + instance = aws_instance.this.id + domain = var.eip_domain + + tags = merge(var.global_tags, { Name = var.name }) +} + +resource "aws_ebs_volume" "this" { + for_each = { for k, v in var.ebs_volumes : k => v } + + availability_zone = var.availability_zone + size = try(each.value.ebs_size, "2000") + encrypted = var.ebs_encrypted + kms_key_id = var.ebs_encrypted == false ? null : coalesce(var.ebs_kms_key_alias, data.aws_kms_alias.current_arn[0].target_key_arn) + + tags = merge(var.global_tags, { Name = try(each.value.name, var.name) }) +} + +resource "aws_volume_attachment" "this" { + for_each = { for k, v in var.ebs_volumes : k => v } + + device_name = each.value.ebs_device_name + instance_id = aws_instance.this.id + volume_id = aws_ebs_volume.this[each.key].id + force_detach = try(each.value.force_detach, false) + skip_destroy = try(each.value.skip_destroy, false) +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/outputs.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/outputs.tf new file mode 100644 index 0000000..4d3bcab --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/outputs.tf @@ -0,0 +1,9 @@ +output "mgmt_ip_private_address" { + description = "Panorama private IP address." + value = try(aws_instance.this.private_ip) +} + +output "mgmt_ip_public_address" { + description = "Panorama management IP address. If `create_public_ip` is set to `true`, it will output the public IP address otherwise it will show the 'no public IP assigned to Panorama' message." + value = try(aws_eip.this[0].public_ip, "no public IP assigned to Panorama.") +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/variables.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/variables.tf new file mode 100644 index 0000000..8ccabcc --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/variables.tf @@ -0,0 +1,159 @@ +# General +variable "name" { + description = "Name for the Panorama instance." + type = string + default = "pan-panorama" +} + +variable "global_tags" { + description = <<-EOF + A map of tags to assign to the resources. + If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level." + EOF + default = {} + type = map(any) +} + +# Panorama +variable "product_code" { + description = "Product code for Panorama BYOL license." + type = string + default = "eclz7j04vu9lf8ont8ta3n17o" +} + +variable "panorama_version" { + description = <<-EOF + Panorama PAN-OS Software version. List published images with: + ``` + aws ec2 describe-images \\ + --filters "Name=product-code,Values=eclz7j04vu9lf8ont8ta3n17o" "Name=name,Values=Panorama-AWS*" \\ + --output json --query "Images[].Description" \| grep -o 'Panorama-AWS-.*' \| tr -d '",' + ``` + EOF + type = string + default = "10.1.5" +} + +variable "panorama_ami_id" { + description = <<-EOF + Specific AMI ID to use for Panorama instance. + If `null` (the default), `panorama_version` and `product_code` vars are used to determine a public image to use. + EOF + type = string + default = null +} + +variable "instance_type" { + description = "EC2 instance type for Panorama. Default set to Palo Alto Networks recommended instance type." + type = string + default = "c5.4xlarge" +} + +variable "ebs_encrypted" { + description = "Whether to enable EBS encryption on root volume." + default = true + type = bool +} + +variable "availability_zone" { + description = "Availability zone in which Panorama will be deployed." + type = string +} + +variable "ssh_key_name" { + description = "AWS EC2 key pair name." + type = string +} + +variable "create_public_ip" { + description = "If true, create an Elastic IP address for Panorama." + type = bool + default = false +} + +variable "private_ip_address" { + description = "If provided, associates a private IP address to the Panorama instance." + type = string + default = null +} + +variable "subnet_id" { + description = "VPC Subnet ID to launch Panorama in." + type = string +} + +variable "vpc_security_group_ids" { + description = "A list of security group IDs to associate Panorama with." + type = list(any) + default = [] +} + +variable "ebs_volumes" { + description = <<-EOF + List of EBS volumes to create and attach to Panorama. + Available options: + - `name` (Optional) Name tag for the EBS volume. If not provided defaults to the value of `var.name`. + - `ebs_device_name` (Required) The EBS device name to expose to the instance (for example, /dev/sdh or xvdh). + See [Device Naming on Linux Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html#available-ec2-device-names) for more information. + - `ebs_size` (Optional) The size of the EBS volume in GiBs. Defaults to 2000 GiB. + - `force_detach` (Optional) Set to true if you want to force the volume to detach. Useful if previous attempts failed, but use this option only as a last resort, as this can result in data loss. + - `skip_destroy` (Optional) Set this to true if you do not wish to detach the volume from the instance to which it is attached at destroy time, and instead just remove the attachment from Terraform state. + This is useful when destroying an instance attached to third-party volumes. + + Note: Terraform must be running with credentials which have the `GenerateDataKeyWithoutPlaintext` permission on the specified KMS key + as required by the [EBS KMS CMK volume provisioning process](https://docs.aws.amazon.com/kms/latest/developerguide/services-ebs.html#ebs-cmk) to prevent a volume from being created and almost immediately deleted. + If null, the default EBS encryption KMS key in the current region is used. + + Example: + ``` + ebs_volumes = [ + { + name = "ebs-1" + ebs_device_name = "/dev/sdb" + ebs_size = "2000" + }, + { + name = "ebs-2" + ebs_device_name = "/dev/sdb" + ebs_size = "2000" + }, + { + name = "ebs-3" + ebs_device_name = "/dev/sdb" + ebs_size = "2000" + }, + ] + ``` + EOF + type = list(any) + default = [] +} + +variable "ebs_kms_key_alias" { + description = <<-EOF + The alias for the customer managed KMS key to use for volume encryption. + If this is set to `null` the default master key that protects EBS volumes will be used + EOF + type = string + default = null +} + +variable "panorama_iam_role" { + description = "IAM Role attached to Panorama instance contained curated IAM Policy." + type = string +} + +variable "enable_imdsv2" { + description = <<-EOF + Whether to enable IMDSv2 on the EC2 instance. + Support for this feature has been added in VM-Series Plugin [3.0.0](https://docs.paloaltonetworks.com/plugins/vm-series-and-panorama-plugins-release-notes/vm-series-plugin/vm-series-plugin-30/vm-series-plugin-300#id126d0957-95d7-4b29-9147-fff20027986e), which in turn requires PAN-OS version 10.2.0 at minimum. + EOF + default = false + type = string +} + +variable "eip_domain" { + description = "Indicates if this EIP is for use in VPC" + default = "vpc" + type = string +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/versions.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/versions.tf new file mode 100644 index 0000000..9ddb384 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/panorama/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.0.0, < 2.0.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.17" + } + } +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/LICENSE b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/LICENSE new file mode 100644 index 0000000..49c5cbf --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Palo Alto Networks, inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/fixture.json b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/fixture.json new file mode 100644 index 0000000..b5775d5 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6", + "ref": "1.1.6", + "path": "modules/subnet_set", + "archiveSha256": "d1f8addda811aa7a48837401f3bb3eda1903e3796a5a5f25280366499d4248d4", + "inputSha256": "2b018444e0d4a0224dcdc6ed996714236be0b7db190ebd92c4fb88dab38f49ea" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "data", + "depends_on", + "for_each", + "functions", + "heredoc", + "interpolation", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/main.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/main.tf new file mode 100644 index 0000000..390a9b1 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/main.tf @@ -0,0 +1,86 @@ +locals { + input_subnets = { for k, v in var.cidrs : + v.az => { + name = coalesce(try(v.name, null), "${var.name}${substr(v.az, -1, -1)}") + cidr_block = k + create_subnet = try(v.create_subnet, true) + create_route_table = try(v.create_route_table, v.create_subnet, true) + read_route_table = var.create_shared_route_table == false && try(v.create_route_table, v.create_subnet, true) == false + existing_route_table_id = try(v.existing_route_table_id, null) + associate_route_table = try(v.associate_route_table, true) + route_table_name = try(v.route_table_name, null) + local_tags = try(v.local_tags, {}) + } + } + # + # Convenient combined objects, each is either a `resource` object or a `data` object. + # + subnets = { for k, v in local.input_subnets : k => v.create_subnet ? aws_subnet.this[k] : data.aws_subnet.this[k] } + route_tables = { for k, v in local.input_subnets : k => v.read_route_table == false ? aws_route_table.this[k] : data.aws_route_table.this[k] } +} + +#### Existing Subnets #### + +data "aws_subnet" "this" { + for_each = { for k, v in local.input_subnets : k => v if v.create_subnet == false } + + tags = { Name = each.value.name } + vpc_id = var.vpc_id +} + +#### Create Subnets #### + +resource "aws_subnet" "this" { + for_each = { for k, v in local.input_subnets : k => v if v.create_subnet } + + cidr_block = each.value.cidr_block + availability_zone = each.key + vpc_id = var.vpc_id + map_public_ip_on_launch = var.map_public_ip_on_launch + tags = merge(var.global_tags, each.value.local_tags, { Name = each.value.name }) + + depends_on = [ + var.has_secondary_cidrs + ] +} + +#### NACL association + +resource "aws_network_acl_association" "main" { + for_each = var.nacl_associations + network_acl_id = each.value + subnet_id = local.subnets[each.key].id +} + +#### One route table per each subnet by default #### + +data "aws_route_table" "this" { + for_each = { for k, v in local.input_subnets : k => v if v.read_route_table } + + vpc_id = var.vpc_id + route_table_id = each.value.existing_route_table_id + tags = { Name = coalesce(each.value.route_table_name, each.value.name) } +} + +resource "aws_route_table" "this" { + for_each = { for k, v in local.input_subnets : k => v if v.read_route_table == false && var.create_shared_route_table == false } + + vpc_id = var.vpc_id + tags = merge(var.global_tags, each.value.local_tags, { Name = coalesce(each.value.route_table_name, each.value.name) }) + propagating_vgws = var.propagating_vgws +} + +resource "aws_route_table" "shared" { + for_each = { for _, v in local.input_subnets : "shared" => v... if v.read_route_table == false && var.create_shared_route_table } + + vpc_id = var.vpc_id + tags = merge(var.global_tags, each.value[0].local_tags, { Name = each.value[0].route_table_name }) + propagating_vgws = var.propagating_vgws +} + +resource "aws_route_table_association" "this" { + for_each = { for k, v in local.input_subnets : k => v if v.associate_route_table } + + subnet_id = local.subnets[each.key].id + route_table_id = var.create_shared_route_table == false ? local.route_tables[each.key].id : aws_route_table.shared["shared"].id +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/outputs.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/outputs.tf new file mode 100644 index 0000000..4f9d003 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/outputs.tf @@ -0,0 +1,23 @@ +output "vpc_id" { + value = var.vpc_id +} + +output "subnets" { + value = local.subnets +} + +output "subnet_names" { + value = { for k, v in local.input_subnets : k => v.name } +} + +output "route_tables" { + value = local.route_tables +} + +output "unique_route_table_ids" { + value = var.create_shared_route_table ? { "shared" = aws_route_table.shared["shared"].id } : { for k, v in aws_route_table.this : k => v.id } +} + +output "availability_zones" { + value = toset(keys(local.input_subnets)) +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/variables.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/variables.tf new file mode 100644 index 0000000..7a0cbb6 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/variables.tf @@ -0,0 +1,61 @@ +variable "name" { + description = "Subnet set name, used to construct default subnet names." + default = null + type = string +} + +variable "cidrs" { + description = <<-EOF + Map describing configuration of subnets and route tables to create and/or use in the set. + Keys are CIDR blocks, values can consist of following items: + - `create_subnet` - (Optional|bool) When `true` (default), subnet is created, otherwise existing one is used. + - `create_route_table` - (Optional|bool) When `true` a dedicated route table is created, unless existing subnet is used. + - `associate_route_table` - (Optional|bool) Unless set to `false`, route table is associated with the subnet. + - `existing_route_table_id` - (Optional|string) Id of an existing route table to associate with the subnet. + - `name` - (Optional|string) Name (tag) of a subnet and, optionally a route table, to create or use. Defaults to set name appended with zone letter id. + - `route_table_name` - (Optional|string) Name (tag) of a subnet and, optionally a route table, to create or use. Defaults to `name` value. + - `local_tags` - (Optional|map) Map of tags to assign to created resources. + EOF + type = map(any) +} + +variable "vpc_id" { + description = "Id of the VPC to create resource in." + type = string +} + +variable "create_shared_route_table" { + description = "Boolean flag whether to create a shared route tables." + default = false + type = bool +} + +variable "map_public_ip_on_launch" { + description = "See the [provider's documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/subnet#map_public_ip_on_launch)." + default = null + type = bool +} + +variable "propagating_vgws" { + description = "See the [provider's documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route_table)." + default = [] + type = list(string) +} + +variable "has_secondary_cidrs" { + description = "The input that depends on the secondary CIDR ranges of the VPC `vpc_id`. The actual value (true or false) is ignored, the input is used only to delay subnet creation until the secondary CIDR ranges are processed by Terraform." + default = true + type = bool +} + +variable "global_tags" { + description = "Optional map of arbitrary tags to apply to all the created resources." + default = {} + type = map(string) +} + +variable "nacl_associations" { + description = "NACLs associations with subnets" + default = {} + type = map(string) +} \ No newline at end of file diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/versions.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/versions.tf new file mode 100644 index 0000000..9ddb384 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/subnet_set/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.0.0, < 2.0.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.17" + } + } +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/LICENSE b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/LICENSE new file mode 100644 index 0000000..49c5cbf --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Palo Alto Networks, inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/fixture.json b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/fixture.json new file mode 100644 index 0000000..4aaba2f --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6", + "ref": "1.1.6", + "path": "modules/transit_gateway", + "archiveSha256": "d1f8addda811aa7a48837401f3bb3eda1903e3796a5a5f25280366499d4248d4", + "inputSha256": "e522023a68e67ccf62d64d50d39aeafa73fefb933404a102b5094e95094c652d" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "dynamic", + "for_each", + "for_expressions", + "functions", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/main.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/main.tf new file mode 100644 index 0000000..258f6e5 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/main.tf @@ -0,0 +1,94 @@ +########################################################################################### +# Locals to uniformly combine both the newly created objects and the pre-existing objects. +# The former are `resources`, the latter are `data` for Terraform. +########################################################################################### + +locals { + transit_gateway = var.create ? aws_ec2_transit_gateway.this[0] : data.aws_ec2_transit_gateway.this[0] + transit_gateway_route_tables = { for k, v in var.route_tables : k => v.create ? aws_ec2_transit_gateway_route_table.this[k] : data.aws_ec2_transit_gateway_route_table.this[k] } +} + +############################################################################## +# Transit Gateway (TGW) +############################################################################## + +resource "aws_ec2_transit_gateway" "this" { + count = var.create ? 1 : 0 + + amazon_side_asn = var.asn + auto_accept_shared_attachments = var.auto_accept_shared_attachments + default_route_table_association = "disable" + default_route_table_propagation = "disable" + transit_gateway_cidr_blocks = var.transit_gateway_cidr_blocks + dns_support = var.dns_support + vpn_ecmp_support = var.vpn_ecmp_support + tags = merge(var.tags, { Name = var.name }) +} + +data "aws_ec2_transit_gateway" "this" { + count = var.create == false ? 1 : 0 + + # ID of an existing TGW. By default set to `null` hence can be referenced directly. + id = var.id + # Filtering existing TGWs by name, only in case no ID was provided. + dynamic "filter" { + for_each = var.id == null ? [1] : [] + content { + name = "tag:Name" + values = [var.name] + + } + } +} + +#### Route Tables #### + +resource "aws_ec2_transit_gateway_route_table" "this" { + for_each = { for k, v in var.route_tables : k => v if v.create } + + transit_gateway_id = local.transit_gateway.id + tags = merge(var.tags, lookup(each.value, "local_tags", {}), { Name = coalesce(lookup(each.value, "name", ""), var.name) }) +} + +data "aws_ec2_transit_gateway_route_table" "this" { + for_each = { for k, v in var.route_tables : k => v if v.create == false } + + filter { + name = "transit-gateway-id" + values = [local.transit_gateway.id] + } + + filter { + name = "tag:Name" + values = [each.value.name] + } +} + +############################################################################## +# Resource Shares for TGW +############################################################################## + +# Create Resource Share if shared_principals contains any entries. +resource "aws_ram_resource_share" "this" { + count = length(var.shared_principals) != 0 ? 1 : 0 + + name = coalesce(var.ram_resource_share_name, var.name) + tags = merge(var.tags, { Name = coalesce(var.ram_resource_share_name, var.name) }) + allow_external_principals = true +} + +# Associate TGW to the Share. +resource "aws_ram_resource_association" "this" { + count = length(var.shared_principals) != 0 ? 1 : 0 + + resource_arn = local.transit_gateway.arn + resource_share_arn = aws_ram_resource_share.this[0].arn +} + +# Associate each Account to the Share. +resource "aws_ram_principal_association" "this" { + for_each = var.shared_principals + + principal = each.value + resource_share_arn = aws_ram_resource_share.this[0].arn +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/outputs.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/outputs.tf new file mode 100644 index 0000000..fd81587 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/outputs.tf @@ -0,0 +1,15 @@ +output "name" { + description = "Transit Gateway Name tag." + # Referencing the actual NAME TAG gives us access to it's value for TGWs referenced only by ID. + value = try(local.transit_gateway.tags.Name, null) +} + +output "transit_gateway" { + description = "The entire object `aws_ec2_transit_gateway`." + value = local.transit_gateway +} + +output "route_tables" { + description = "Transit Gateway's route tables." + value = local.transit_gateway_route_tables +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/variables.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/variables.tf new file mode 100644 index 0000000..f41a925 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/variables.tf @@ -0,0 +1,68 @@ +variable "create" { + description = "Trigger module mode between creating a new TGW or retrieving an existing one." + default = true + type = bool +} + +variable "name" { + description = "Name tag for the Transit Gateway and associated resources." + default = null + type = string +} + +variable "id" { + description = "ID of an existing Transit Gateway. Used in conjunction with `create = false`. When set, takes precedence over `var.name`." + default = null + type = string +} + +variable "asn" { + description = "BGP Autonomous System Number of the AWS Transit Gateway." + default = 65200 +} + +variable "auto_accept_shared_attachments" { + description = "See the [provider documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ec2_transit_gateway)." + default = null + type = string +} + +variable "dns_support" { + description = "See the [provider documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ec2_transit_gateway)." + default = null + type = string +} + +variable "vpn_ecmp_support" { + description = "See the [provider documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ec2_transit_gateway)." + default = null + type = string +} + +variable "route_tables" { + default = {} +} + +variable "ram_resource_share_name" { + default = null +} + +variable "shared_principals" { + default = {} +} + +variable "transit_gateway_cidr_blocks" { + description = "One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6." + default = [] + type = set(string) + validation { + condition = alltrue([for cidr in var.transit_gateway_cidr_blocks : can(cidrsubnet(cidr, 0, 0))]) + error_message = "Transit gateway CIDR blocks must contain valid IPv4 or IPv6 CIDR." + } +} + +variable "tags" { + description = "Optional Map of arbitrary tags to apply to all resources" + type = map(string) + default = {} +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/versions.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/versions.tf new file mode 100644 index 0000000..9ddb384 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.0.0, < 2.0.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.17" + } + } +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/LICENSE b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/LICENSE new file mode 100644 index 0000000..49c5cbf --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Palo Alto Networks, inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/fixture.json b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/fixture.json new file mode 100644 index 0000000..019ca31 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/fixture.json @@ -0,0 +1,33 @@ +{ + "schema": 1, + "id": "registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6", + "ref": "1.1.6", + "path": "modules/transit_gateway_attachment", + "archiveSha256": "d1f8addda811aa7a48837401f3bb3eda1903e3796a5a5f25280366499d4248d4", + "inputSha256": "0a1d4060ede54ef1c05b4085d050e4bc0ca417435ba85eaedf40bf6c0eee3d3e" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "for_each", + "functions", + "heredoc", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/main.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/main.tf new file mode 100644 index 0000000..1eda531 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/main.tf @@ -0,0 +1,23 @@ +resource "aws_ec2_transit_gateway_vpc_attachment" "this" { + vpc_id = var.vpc_id + subnet_ids = [for _, subnet in var.subnets : subnet.id] + transit_gateway_id = var.transit_gateway_route_table.transit_gateway_id + transit_gateway_default_route_table_association = false + transit_gateway_default_route_table_propagation = false + appliance_mode_support = var.appliance_mode_support + dns_support = var.dns_support + ipv6_support = var.ipv6_support + tags = merge(var.tags, var.name != null ? { Name = var.name } : {}) +} + +resource "aws_ec2_transit_gateway_route_table_association" "this" { + transit_gateway_attachment_id = aws_ec2_transit_gateway_vpc_attachment.this.id + transit_gateway_route_table_id = var.transit_gateway_route_table.id +} + +resource "aws_ec2_transit_gateway_route_table_propagation" "this" { + for_each = var.propagate_routes_to + + transit_gateway_attachment_id = aws_ec2_transit_gateway_vpc_attachment.this.id + transit_gateway_route_table_id = each.value +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/outputs.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/outputs.tf new file mode 100644 index 0000000..a23ac56 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/outputs.tf @@ -0,0 +1,29 @@ +output "attachment" { + description = "The entire `aws_ec2_transit_gateway_vpc_attachment` object." + value = aws_ec2_transit_gateway_vpc_attachment.this +} + +output "subnets" { + description = "Same as the input `subnets`. Intended to be used as a dependency." + value = contains(aws_ec2_transit_gateway_vpc_attachment.this.subnet_ids, "!") == false ? var.subnets : null +} + +output "next_hop_set" { + description = <<-EOF + The Next Hop Set object, useful as an input to the `vpc_route` module. The intention would + be to route traffic from several subnets to the Transit Gateway. Example: + + ``` + next_hop_set = { + ids = {} + id = "tgw-attach-123" + type = "transit_gateway" + } + ``` + EOF + value = { + type = "transit_gateway" + id = aws_ec2_transit_gateway_vpc_attachment.this.transit_gateway_id + ids = {} + } +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/variables.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/variables.tf new file mode 100644 index 0000000..5801a15 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/variables.tf @@ -0,0 +1,78 @@ +variable "vpc_id" { + description = "AWS identifier of a VPC containing the Attachment." + type = string +} + +variable "subnets" { + description = <<-EOF + The attachment's subnets as a map. Each key is the availability zone name and each object has an attribute + `id` identifying AWS subnet. + All subnets in the map obtain virtual network interfaces attached to the TGW. + Example for users of module `subnet_set`: + ``` + subnets = module.subnet_set.subnets + ``` + Example: + ``` + subnets = { + "us-east-1a" = { id = "snet-123007" } + "us-east-1b" = { id = "snet-123008" } + } + ``` + EOF + type = map(object({ + id = string + })) +} + +variable "name" { + description = "Optional readable name of the TGW attachment object. It is assigned to the usual AWS Name tag." + default = null + type = string +} + +variable "appliance_mode_support" { + description = "See the [provider documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ec2_transit_gateway_vpc_attachment)." + default = "enable" + type = string +} + +variable "dns_support" { + description = "See the [provider documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ec2_transit_gateway_vpc_attachment)." + default = null + type = string +} + +variable "ipv6_support" { + description = "See the [provider documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ec2_transit_gateway_vpc_attachment)." + default = null + type = string +} + +variable "propagate_routes_to" { + description = "Map of route propagations from this attachment. Each key is an arbitrary string, each value is the id of a TGW route table which should receive the routes to the attached VPC CIDRs." + default = {} + type = map(string) +} + +variable "transit_gateway_route_table" { + description = <<-EOF + TGW's route table which should receive the traffic coming from the `subnet_set` (also called an association). An object with at least two attributes: + ``` + transit_gateway_route_table = { + id = "tgw-rtb-1234" + transit_gateway_id = "tgw-1234" + } + ``` + EOF + type = object({ + id = string + transit_gateway_id = string + }) +} + +variable "tags" { + description = "AWS tags to assign to all the created objects." + default = {} + type = map(string) +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/versions.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/versions.tf new file mode 100644 index 0000000..9ddb384 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_attachment/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.0.0, < 2.0.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.17" + } + } +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/LICENSE b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/LICENSE new file mode 100644 index 0000000..49c5cbf --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Palo Alto Networks, inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/fixture.json b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/fixture.json new file mode 100644 index 0000000..8a4c4bd --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/fixture.json @@ -0,0 +1,33 @@ +{ + "schema": 1, + "id": "registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6", + "ref": "1.1.6", + "path": "modules/transit_gateway_peering", + "archiveSha256": "d1f8addda811aa7a48837401f3bb3eda1903e3796a5a5f25280366499d4248d4", + "inputSha256": "8d4680f500fb72b2c2ce770c053cf875f5c1b6bef44fc143f8b35fa00d65e489" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "data", + "depends_on", + "functions", + "heredoc", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/main.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/main.tf new file mode 100644 index 0000000..48206c1 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/main.tf @@ -0,0 +1,59 @@ +# Why is the code split between module `transit_gateway` and `transit_gateway_peering`? +# +# With TGW peering, the module which creates an Attachment needs to see first *both* TGWs completed. +# And then, Accepter needs to see the Attachment completed. +# Hence Accepter cannot be created in the same module as its TGW, because the module first needs +# to emit the TGW identifier and then wait for Attachment identifier to become usable. +# Since both the Route Tables can be only associated after the Accepter finishes, the dependency +# hassle is minimized by putting together Peering Attachment + Peering Accepter + Peering Route Tables +# in the same module. +# The downside of this choice is that the resulting module needs two AWS providers, not one. + +##### Request from the "local" region to the "remote" region ##### + +resource "aws_ec2_transit_gateway_peering_attachment" "this" { + peer_account_id = data.aws_caller_identity.remote.account_id + peer_region = data.aws_region.remote_region.name + peer_transit_gateway_id = var.remote_tgw_route_table.transit_gateway_id + transit_gateway_id = var.local_tgw_route_table.transit_gateway_id + tags = merge(var.tags, var.local_attachment_tags) +} + +resource "aws_ec2_transit_gateway_route_table_association" "local" { + transit_gateway_attachment_id = aws_ec2_transit_gateway_peering_attachment.this.id + transit_gateway_route_table_id = var.local_tgw_route_table.id + + # Workaround for apply error "IncorrectState: tgw-attach-1 is in invalid state" (i.e. unaccepted). + depends_on = [aws_ec2_transit_gateway_peering_attachment_accepter.remote] +} + +# The aws_ec2_transit_gateway_route_table_propagation here wouldn't be supported by AWS, failing with: +# "You cannot propagate a peering attachment to a Transit Gateway Route Table". + +##### Accept from the "remote" region to the "local" region ##### + +# Accepter is the "other side" of the peering. +resource "aws_ec2_transit_gateway_peering_attachment_accepter" "remote" { + provider = aws.remote + + transit_gateway_attachment_id = aws_ec2_transit_gateway_peering_attachment.this.id + tags = var.tags +} + +# One route table per TGW per peering, otherwise it fails with "tgw-attach-1 is already associated to a route table". +resource "aws_ec2_transit_gateway_route_table_association" "remote" { + provider = aws.remote + + transit_gateway_attachment_id = aws_ec2_transit_gateway_peering_attachment_accepter.remote.transit_gateway_attachment_id + transit_gateway_route_table_id = var.remote_tgw_route_table.id +} + +# Determine the peer's region by looking at its provider. +data "aws_region" "remote_region" { + provider = aws.remote +} + +# Determine the peer's AWS Account by looking at its provider. +data "aws_caller_identity" "remote" { + provider = aws.remote +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/outputs.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/outputs.tf new file mode 100644 index 0000000..c29b3dc --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/outputs.tf @@ -0,0 +1,19 @@ +output "peering_attachment" { + description = "The TGW Peering Attachment object, created under the provider `aws`." + value = aws_ec2_transit_gateway_peering_attachment.this +} + +output "peering_attachment_accepter" { + description = "The Accepter object, created under the provider `aws.remote`." + value = aws_ec2_transit_gateway_peering_attachment_accepter.remote +} + +output "local_route_table" { + description = "The route table associated to the TGW Peering Attachment, owned by the provider `aws`." + value = var.local_tgw_route_table +} + +output "remote_route_table" { + description = "The route table associated to the TGW Peering Attachment, owned by the provider `aws.remote`." + value = var.remote_tgw_route_table +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/variables.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/variables.tf new file mode 100644 index 0000000..9c28977 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/variables.tf @@ -0,0 +1,37 @@ +variable "local_tgw_route_table" { + description = <<-EOF + Local TGW's pre-existing route table which should handle the traffic coming from the remote TGW. In other words a route table associated to the peering in the local region. An object with two attributes, the `id` of the local route table and the `transit_gateway_id` of the local TGW: + ``` + transit_gateway_route_table = { + id = "tgw-rtb-1234" + transit_gateway_id = "tgw-1234" + } + ``` + EOF + type = object({ + id = string + transit_gateway_id = string + }) +} + +variable "remote_tgw_route_table" { + description = <<-EOF + Analog to the `local_tgw_route_table` but on the remote end of the peering. + EOF + type = object({ + id = string + transit_gateway_id = string + }) +} + +variable "local_attachment_tags" { + description = "AWS tags to assign to the Attachment object. The tags are only visible in the UI when logged on the local account, but not when logged on the remote peer account. Example: `{ Name = \"my-name\" }`" + default = {} + type = map(string) +} + +variable "tags" { + description = "AWS tags to assign to all the created objects. Example: `{ Team = \"my-team\" }`" + default = {} + type = map(string) +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/versions.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/versions.tf new file mode 100644 index 0000000..6b41604 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/transit_gateway_peering/input/versions.tf @@ -0,0 +1,14 @@ +terraform { + required_version = ">= 1.0.0, < 2.0.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.17" + configuration_aliases = [aws, aws.remote] + } + } +} + +provider "aws" { + alias = "remote" +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/LICENSE b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/LICENSE new file mode 100644 index 0000000..49c5cbf --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Palo Alto Networks, inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/fixture.json b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/fixture.json new file mode 100644 index 0000000..573d9df --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/fixture.json @@ -0,0 +1,39 @@ +{ + "schema": 1, + "id": "registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6", + "ref": "1.1.6", + "path": "modules/vmseries", + "archiveSha256": "d1f8addda811aa7a48837401f3bb3eda1903e3796a5a5f25280366499d4248d4", + "inputSha256": "0e7bff3810a8a84b37b7a1190ce6135409f8b746cfb0887fda038ec018873431" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "depends_on", + "dynamic", + "for_each", + "for_expressions", + "functions", + "heredoc", + "interpolation", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/main.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/main.tf new file mode 100644 index 0000000..4b082da --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/main.tf @@ -0,0 +1,124 @@ +# PA VM AMI ID lookup based on version and license type (determined by product code) +data "aws_ami" "this" { + count = var.vmseries_ami_id != null ? 0 : 1 + + most_recent = true + owners = ["aws-marketplace"] + + filter { + name = "name" + values = ["PA-VM-AWS-${var.vmseries_version}*"] + } + filter { + name = "product-code" + values = [var.vmseries_product_code] + } + + name_regex = "^PA-VM-AWS-${var.vmseries_version}-[[:alnum:]]{8}-([[:alnum:]]{4}-){3}[[:alnum:]]{12}$" +} + +# Retrieve the default KMS key in the current region for EBS encryption +data "aws_ebs_default_kms_key" "current" { + count = var.ebs_encrypted ? 1 : 0 +} + +# Retrieve an alias for the KMS key for EBS encryption +data "aws_kms_alias" "current_arn" { + count = var.ebs_encrypted ? 1 : 0 + name = coalesce(var.ebs_kms_key_alias, data.aws_ebs_default_kms_key.current[0].key_arn) +} + +# Network Interfaces +resource "aws_network_interface" "this" { + for_each = var.interfaces + + subnet_id = each.value.subnet_id + private_ips = lookup(each.value, "private_ips", null) + source_dest_check = lookup(each.value, "source_dest_check", false) + security_groups = lookup(each.value, "security_group_ids", null) + description = lookup(each.value, "description", null) + tags = merge(var.tags, { Name = coalesce(try(each.value.name, null), "${var.name}-${each.key}") }) +} + +# Create and/or associate EIPs +resource "aws_eip" "this" { + for_each = { for k, v in var.interfaces : k => v if try(v.create_public_ip, false) } + + domain = var.eip_domain + network_interface = aws_network_interface.this[each.key].id + public_ipv4_pool = lookup(each.value, "public_ipv4_pool", "amazon") + tags = merge(var.tags, { Name = coalesce(try(each.value.name, null), "${var.name}-${each.key}") }) +} + +resource "aws_eip_association" "this" { + for_each = { for k, v in var.interfaces : k => v if lookup(v, "eip_allocation_id", null) != null } + + allocation_id = each.value.eip_allocation_id + network_interface_id = aws_network_interface.this[each.key].id + + depends_on = [ + # Workaround for: + # Error associating EIP: IncorrectInstanceState: The pending-instance-creation instance to which 'eni' is attached is not in a valid state for this operation + aws_instance.this + ] +} + +# Create PA VM-series instances +resource "aws_instance" "this" { + + ami = coalesce(var.vmseries_ami_id, try(data.aws_ami.this[0].id, null)) + iam_instance_profile = var.iam_instance_profile + instance_type = var.instance_type + key_name = var.ssh_key_name + disable_api_termination = var.enable_instance_termination_protection + ebs_optimized = true + instance_initiated_shutdown_behavior = "stop" + monitoring = false + + dynamic "metadata_options" { + for_each = var.enable_imdsv2 ? [1] : [] + content { + http_endpoint = "enabled" + http_tokens = "required" + } + } + + user_data = base64encode(var.bootstrap_options) + + root_block_device { + delete_on_termination = true + encrypted = var.ebs_encrypted + kms_key_id = var.ebs_encrypted == false ? null : data.aws_kms_alias.current_arn[0].target_key_arn + } + + # Attach primary interface to the instance + dynamic "network_interface" { + for_each = { for k, v in var.interfaces : k => v if v.device_index == 0 } + + content { + device_index = 0 + network_interface_id = aws_network_interface.this[network_interface.key].id + } + } + + tags = merge(var.tags, { Name = var.name }) + + # If volume_tags are not defined, then module is NOT idempotent. If after deployment terraform plan is executed, + # then update in-place is planned for resource "aws_instance" "this" with below change: + # + volume_tags = {} + volume_tags = merge(var.tags, { Name = var.name }) + + lifecycle { + ignore_changes = [ + user_data, + ] + } +} + +resource "aws_network_interface_attachment" "this" { + for_each = { for k, v in var.interfaces : k => v if v.device_index > 0 } + + instance_id = aws_instance.this.id + network_interface_id = aws_network_interface.this[each.key].id + device_index = each.value.device_index +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/outputs.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/outputs.tf new file mode 100644 index 0000000..f34a197 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/outputs.tf @@ -0,0 +1,13 @@ +output "instance" { + value = aws_instance.this +} + +output "interfaces" { + description = "Map of VM-Series network interfaces. The entries are `aws_network_interface` objects." + value = aws_network_interface.this +} + +output "public_ips" { + description = "Map of public IPs created within the module." + value = { for k, v in aws_eip.this : k => v.public_ip } +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/variables.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/variables.tf new file mode 100644 index 0000000..4618e96 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/variables.tf @@ -0,0 +1,156 @@ +variable "name" { + description = "Name of the VM-Series instance." + default = null + type = string +} + +# VM-Series version setup +variable "vmseries_ami_id" { + description = <<-EOF + Specific AMI ID to use for VM-Series instance. + If `null` (the default), `vmseries_version` and `vmseries_product_code` vars are used to determine a public image to use. + EOF + default = null + type = string +} + +variable "vmseries_version" { + description = <<-EOF + VM-Series Firewall version to deploy. + To list all available VM-Series versions, run the command provided below. + Please have in mind that the `product-code` may need to be updated - check the `vmseries_product_code` variable for more information. + ``` + aws ec2 describe-images --region us-west-1 --filters "Name=product-code,Values=6njl1pau431dv1qxipg63mvah" "Name=name,Values=PA-VM-AWS*" --output json --query "Images[].Description" \| grep -o 'PA-VM-AWS-.*' \| sort + ``` + EOF + default = "10.2.0" + type = string +} + +variable "vmseries_product_code" { + description = <<-EOF + Product code corresponding to a chosen VM-Series license type model - by default - BYOL. + To check the available license type models and their codes, please refer to the + [VM-Series documentation](https://docs.paloaltonetworks.com/vm-series/10-0/vm-series-deployment/set-up-the-vm-series-firewall-on-aws/deploy-the-vm-series-firewall-on-aws/obtain-the-ami/get-amazon-machine-image-ids.html) + EOF + default = "6njl1pau431dv1qxipg63mvah" + type = string +} + +variable "iam_instance_profile" { + description = "IAM instance profile." + default = null + type = string +} + +variable "instance_type" { + description = "EC2 instance type." + default = "m5.xlarge" + type = string +} + +variable "ebs_encrypted" { + description = "Whether to enable EBS encryption on volumes." + default = true + type = bool +} + +variable "ebs_kms_key_alias" { + description = <<-EOF + The alias for the customer managed KMS key to use for volume encryption. Should be prepended with the word "alias" followed by a forward slash (alias/example-key-alias). + If `null` (the default), the default master key that protects EBS volumes will be used. + EOF + default = null + type = string +} + +variable "ssh_key_name" { + description = "Name of AWS keypair to associate with instances." + type = string +} + +variable "interfaces" { + description = <<-EOF + Map of the network interface specifications. + If "mgmt-interface-swap" bootstrap option is enabled, ensure dataplane interface `device_index` is set to 0 and the firewall management interface `device_index` is set to 1. + Available options: + - `device_index` = (Required|int) Determines order in which interfaces are attached to the instance. Interface with `0` is attached at boot time. + - `subnet_id` = (Required|string) Subnet ID to create the ENI in. + - `name` = (Optional|string) Name tag for the ENI. Defaults to instance name suffixed by map's key. + - `description` = (Optional|string) A descriptive name for the ENI. + - `create_public_ip` = (Optional|bool) Whether to create a public IP for the ENI. Defaults to false. + - `eip_allocation_id` = (Optional|string) Associate an existing EIP to the ENI. + - `private_ips` = (Optional|list) List of private IPs to assign to the ENI. If not set, dynamic allocation is used. + - `public_ipv4_pool` = (Optional|string) EC2 IPv4 address pool identifier. + - `source_dest_check` = (Optional|bool) Whether to enable source destination checking for the ENI. Defaults to false. + - `security_group_ids` = (Optional|list) A list of Security Group IDs to assign to this interface. Defaults to null. + + Example: + ``` + interfaces = { + mgmt = { + device_index = 0 + subnet_id = aws_subnet.mgmt.id + name = "mgmt" + create_public_ip = true + source_dest_check = true + security_group_ids = ["sg-123456"] + }, + public = { + device_index = 1 + subnet_id = aws_subnet.public.id + name = "public" + create_public_ip = true + }, + private = { + device_index = 2 + subnet_id = aws_subnet.private.id + name = "private" + }, + ] + ``` + EOF + # For now it's not possible to have a more strict definition of variable type, optional + # object attributes are still experimental + type = map(any) +} + +variable "bootstrap_options" { + description = <<-EOF + VM-Series bootstrap options to provide using instance user data. Contents determine type of bootstap method to use. + If empty (the default), bootstrap process is not triggered at all. + For more information on available methods, please refer to VM-Series documentation for specific version. + For 10.0 docs are available [here](https://docs.paloaltonetworks.com/vm-series/10-0/vm-series-deployment/bootstrap-the-vm-series-firewall.html). + EOF + default = "" + type = string +} + +variable "tags" { + description = "Map of additional tags to apply to all resources." + default = {} + type = map(any) +} + +variable "enable_imdsv2" { + description = <<-EOF + Whether to enable IMDSv2 on the EC2 instance. + Support for this feature has been added in VM-Series Plugin [3.0.0](https://docs.paloaltonetworks.com/plugins/vm-series-and-panorama-plugins-release-notes/vm-series-plugin/vm-series-plugin-30/vm-series-plugin-300#id126d0957-95d7-4b29-9147-fff20027986e), which in turn requires VM-Series version 10.2.0 at minimum. + EOF + default = false + type = string +} + +variable "enable_instance_termination_protection" { + description = <<-EOF + Whether to enable termination protection on the EC2 instance. + EOF + default = false + type = bool +} + +variable "eip_domain" { + description = "Indicates if this EIP is for use in VPC" + default = "vpc" + type = string +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/versions.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/versions.tf new file mode 100644 index 0000000..9ddb384 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vmseries/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.0.0, < 2.0.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.17" + } + } +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/LICENSE b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/LICENSE new file mode 100644 index 0000000..49c5cbf --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Palo Alto Networks, inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/fixture.json b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/fixture.json new file mode 100644 index 0000000..7eb1a52 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/fixture.json @@ -0,0 +1,39 @@ +{ + "schema": 1, + "id": "registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6", + "ref": "1.1.6", + "path": "modules/vpc", + "archiveSha256": "d1f8addda811aa7a48837401f3bb3eda1903e3796a5a5f25280366499d4248d4", + "inputSha256": "3e4a7296960d29c0319ef96e9f47dfabe97ec37c8b98b32584fe7d9b97533e2b" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "dynamic", + "for_each", + "for_expressions", + "functions", + "heredoc", + "interpolation", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/input/main.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/input/main.tf new file mode 100644 index 0000000..e3a9c57 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/input/main.tf @@ -0,0 +1,212 @@ +locals { + vpc = var.create_vpc ? aws_vpc.this[0] : data.aws_vpc.this[0] + internet_gateway = var.create_internet_gateway ? aws_internet_gateway.this[0] : var.use_internet_gateway ? data.aws_internet_gateway.this[0] : null +} + +# Either use a pre-existing resource or create a new one. So, is it a pre-existing VPC then? +data "aws_vpc" "this" { + count = var.create_vpc == false ? 1 : 0 + + tags = { Name = var.name } +} + +# Create a new VPC. +resource "aws_vpc" "this" { + count = var.create_vpc ? 1 : 0 + + cidr_block = var.cidr_block + tags = merge(var.global_tags, var.vpc_tags, { Name = var.name }) + enable_dns_support = var.enable_dns_support + enable_dns_hostnames = var.enable_dns_hostnames + instance_tenancy = var.instance_tenancy + assign_generated_ipv6_cidr_block = var.assign_generated_ipv6_cidr_block +} + +resource "aws_vpc_ipv4_cidr_block_association" "this" { + for_each = { for _, v in var.secondary_cidr_blocks : v => "ipv4" } # convert list to map + + vpc_id = local.vpc.id + cidr_block = each.key +} + + +############################################################ +# DHCP Options +############################################################ + +resource "aws_vpc_dhcp_options" "this" { + count = var.create_dhcp_options ? 1 : 0 + + domain_name = var.domain_name + domain_name_servers = var.domain_name_servers + ntp_servers = var.ntp_servers + + tags = merge(var.global_tags, var.vpc_tags, { Name = var.name }) +} + +resource "aws_vpc_dhcp_options_association" "this" { + count = var.create_dhcp_options ? 1 : 0 + + vpc_id = local.vpc.id + dhcp_options_id = aws_vpc_dhcp_options.this[0].id +} + +############################################################ +# Internet Gateway +############################################################ + +# Either use a pre-existing resource or create a new one. So, is it a pre-existing IGW then? +data "aws_internet_gateway" "this" { + count = var.create_internet_gateway == false && var.use_internet_gateway ? 1 : 0 + + filter { + name = "attachment.vpc-id" + values = [local.vpc.id] + } + # No filtering by Name Tag here, we assume any existing IGW is good enough. +} + +# Create an new IGW. +resource "aws_internet_gateway" "this" { + count = var.create_internet_gateway ? 1 : 0 + + vpc_id = local.vpc.id + tags = merge(var.global_tags, { Name = coalesce(var.name_internet_gateway, "${var.name}-igw") }) +} + +#### Associate RT to IGW for AWS Ingress Routing #### + +resource "aws_route_table" "from_igw" { + count = var.create_internet_gateway ? 1 : 0 + + vpc_id = local.vpc.id + tags = merge(var.global_tags, { Name = coalesce(var.route_table_internet_gateway, "${var.name}-igw") }) +} + +resource "aws_route_table_association" "from_igw" { + count = var.create_internet_gateway ? 1 : 0 + + route_table_id = aws_route_table.from_igw[0].id + gateway_id = local.internet_gateway.id +} + +############################################################ +# VPN Gateway +############################################################ + +resource "aws_vpn_gateway" "this" { + count = var.create_vpn_gateway ? 1 : 0 + + vpc_id = local.vpc.id + amazon_side_asn = var.vpn_gateway_amazon_side_asn + tags = merge(var.global_tags, { Name = coalesce(var.name_vpn_gateway, "${var.name}-vgw") }) +} + +#### Dedicated RT for Ingress Routing - Traffic from VGW to us #### +resource "aws_route_table" "from_vgw" { + count = var.create_vpn_gateway ? 1 : 0 + + vpc_id = local.vpc.id + tags = merge(var.global_tags, { Name = coalesce(var.route_table_vpn_gateway, "${var.name}-vgw") }) +} + +resource "aws_route_table_association" "from_vgw" { + count = var.create_vpn_gateway ? 1 : 0 + + gateway_id = aws_vpn_gateway.this[0].id + route_table_id = aws_route_table.from_vgw[0].id +} + +############################################################ +# Network ACLs +############################################################ + +resource "aws_network_acl" "this" { + for_each = var.nacls + vpc_id = local.vpc.id + + tags = merge(var.global_tags, { Name = each.value.name }) +} + +locals { + nacl_rules = flatten([ + for n in keys(var.nacls) : [ + for r in var.nacls[n].rules : { + nacl = n + rule_number = r.rule_number + egress = r.egress + protocol = r.protocol + rule_action = r.rule_action + cidr_block = r.cidr_block + from_port = r.from_port + to_port = r.to_port + } + ] + ]) +} + +resource "aws_network_acl_rule" "this" { + for_each = { for nacl_rule in local.nacl_rules : "${nacl_rule.nacl}.${nacl_rule.rule_number}" => nacl_rule } + network_acl_id = aws_network_acl.this[each.value.nacl].id + rule_number = each.value.rule_number + egress = each.value.egress + protocol = each.value.protocol + rule_action = each.value.rule_action + cidr_block = each.value.cidr_block + from_port = each.value.from_port + to_port = each.value.to_port +} + +############################################################ +# Security Groups +############################################################ + +resource "aws_security_group" "this" { + for_each = var.security_groups + + name = each.value.name + description = try(each.value.description, "Security group managed by Terraform") + vpc_id = local.vpc.id + + dynamic "ingress" { + for_each = [ + for rule in each.value.rules : + rule + if rule.type == "ingress" + ] + + content { + from_port = ingress.value.from_port + to_port = ingress.value.to_port + protocol = ingress.value.protocol + cidr_blocks = try(ingress.value.cidr_blocks, null) + prefix_list_ids = try(ingress.value.prefix_list_ids, null) + self = try(ingress.value.self, null) + security_groups = try(ingress.value.source_security_groups, null) + description = lookup(ingress.value, "description", "") + } + } + + dynamic "egress" { + for_each = [ + for rule in each.value.rules : + rule + if rule.type == "egress" + ] + + content { + from_port = egress.value.from_port + to_port = egress.value.to_port + protocol = egress.value.protocol + cidr_blocks = try(egress.value.cidr_blocks, null) + prefix_list_ids = try(egress.value.prefix_list_ids, null) + description = lookup(egress.value, "description", "") + } + } + + tags = merge(var.global_tags, { Name = each.value.name }) + + lifecycle { + create_before_destroy = true + } +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/input/outputs.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/input/outputs.tf new file mode 100644 index 0000000..638983f --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/input/outputs.tf @@ -0,0 +1,72 @@ +output "id" { + description = "The VPC identifier (either created or pre-existing)." + value = local.vpc != null ? local.vpc.id : null +} + +output "vpc" { + description = "The entire VPC object (either created or pre-existing)." + value = local.vpc +} + +output "name" { + description = "The VPC Name Tag (either created or pre-existing)." + value = try(local.vpc.tags.Name, null) +} + +output "internet_gateway" { + description = "The entire Internet Gateway object. It is null when `create_internet_gateway` is false." + value = var.create_internet_gateway ? try(aws_internet_gateway.this[0], null) : null +} + +output "internet_gateway_route_table" { + description = "The Route Table object created to handle traffic from Internet Gateway (IGW). It is null when `create_internet_gateway` is false." + value = var.create_internet_gateway ? try(aws_route_table.from_igw[0], null) : null +} + +output "vpn_gateway" { + description = "The entire Virtual Private Gateway object. It is null when `create_vpn_gateway` is false." + value = var.create_vpn_gateway ? try(aws_vpn_gateway.this[0], null) : null +} + +output "vpn_gateway_route_table" { + description = "The Route Table object created to handle traffic from Virtual Private Gateway (VGW). It is null when `create_vpn_gateway` is false." + value = var.create_vpn_gateway ? try(aws_route_table.from_vgw[0], null) : null +} + +output "nacl_ids" { + description = "Map of NACL -> ID (newly created)." + value = { + for k, nacl in aws_network_acl.this : + k => nacl.id + } +} + +output "security_group_ids" { + description = "Map of Security Group Name -> ID (newly created)." + value = { + for k, sg in aws_security_group.this : + k => sg.id + } +} + +output "igw_as_next_hop_set" { + description = "The object is suitable for use as `vpc_route` module's input `next_hop_set`." + value = { + type = "internet_gateway" + id = var.create_internet_gateway || var.use_internet_gateway ? local.internet_gateway.id : null + ids = {} + } +} + +# output vpn_gateway_as_next_hop_set { +# description = "The object is suitable for use as `vpc_route` module's input `next_hop_set`." +# value = { +# type = "vpn_gateway" +# id = var.create_vpn_gateway || var.use_vpn_gateway ? local.vpn_gateway.id : null +# ids = {} +# } +# } + +output "has_secondary_cidrs" { + value = contains([for k, v in aws_vpc_ipv4_cidr_block_association.this : length(v.id) > 0], true) +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/input/variables.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/input/variables.tf new file mode 100644 index 0000000..ef53a5e --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc/input/variables.tf @@ -0,0 +1,227 @@ +variable "name" { + description = "Name of the VPC to create or use." + type = string +} + +variable "create_vpc" { + description = "When set to `true` inputs are used to create a VPC, otherwise - to get data about an existing one (based on the `name` value)." + default = true + type = bool +} + +variable "cidr_block" { + description = "CIDR block to assign to a new VPC." + default = null + type = string +} + +variable "secondary_cidr_blocks" { + description = "Secondary CIDR block to assign to a new VPC." + default = [] + type = list(string) +} + +variable "assign_generated_ipv6_cidr_block" { + description = "A boolean flag to assign AWS-provided /56 IPv6 CIDR block. [Defaults false](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc#assign_generated_ipv6_cidr_block)" + default = null + type = bool +} + +variable "use_internet_gateway" { + description = "If an existing VPC is provided and has IG attached, set to `true` to reuse it." + default = false +} + +variable "create_internet_gateway" { + description = "Set to `true` to create IG and attach it to the VPC." + default = false +} + +variable "name_internet_gateway" { + description = "Name of the IGW to create or use." + type = string + default = null +} + +variable "route_table_internet_gateway" { + description = "Name of route table for the IGW." + type = string + default = null +} + +variable "create_vpn_gateway" { + description = "When set to true, create VPN gateway and a dedicated route table." + default = false + type = bool +} +variable "vpn_gateway_amazon_side_asn" { + description = "ASN for the Amazon side of the gateway." + default = null + type = string +} + +variable "name_vpn_gateway" { + description = "Name of the VPN gateway to create." + type = string + default = null +} + +variable "route_table_vpn_gateway" { + description = "Name of the route table for VPN gateway." + type = string + default = null +} + +variable "enable_dns_support" { + description = "A boolean flag to enable/disable DNS support in the VPC. [Defaults true](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc#enable_dns_support)." + default = null + type = bool +} +variable "enable_dns_hostnames" { + description = "A boolean flag to enable/disable DNS hostnames in the VPC. [Defaults false](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc#enable_dns_hostnames)." + default = null + type = bool +} + +variable "instance_tenancy" { + description = "VPC level [instance tenancy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc#instance_tenancy)." + default = null + type = string +} + +variable "global_tags" { + description = "Optional map of arbitrary tags to apply to all the created resources." + default = {} + type = map(string) +} + +variable "vpc_tags" { + description = "Optional map of arbitrary tags to apply to VPC resource." + default = {} +} + +variable "nacls" { + description = < 3.35 + + transit_gateway_id = var.next_hop_set.type == "transit_gateway" ? var.next_hop_set.id : null + gateway_id = var.next_hop_set.type == "internet_gateway" || var.next_hop_set.type == "vpn_gateway" ? var.next_hop_set.id : null + nat_gateway_id = var.next_hop_set.type == "nat_gateway" ? var.next_hop_set.ids[each.key] : null + network_interface_id = var.next_hop_set.type == "interface" ? var.next_hop_set.ids[each.key] : null + vpc_endpoint_id = var.next_hop_set.type == "vpc_endpoint" ? var.next_hop_set.ids[each.key] : null + vpc_peering_connection_id = var.next_hop_set.type == "vpc_peer" ? var.next_hop_set.id : null + egress_only_gateway_id = var.next_hop_set.type == "egress_only_gateway" ? var.next_hop_set.id : null # for non-SNAT IPv6 egress only + local_gateway_id = var.next_hop_set.type == "local_gateway" ? var.next_hop_set.id : null # for an AWS Outpost only +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/input/outputs.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/input/outputs.tf new file mode 100644 index 0000000..ca84d0d --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/input/outputs.tf @@ -0,0 +1,16 @@ +output "route_details" { + value = [for k, v in aws_route.this : { + cidr = v.destination_cidr_block + mpl = v.destination_prefix_list_id + rtb = v.route_table_id + next_hop_transit_gateway_id = try(v.transit_gateway_id, null) + next_hop_gateway_id = try(v.gateway_id, null) + next_hop_nat_gateway_id = try(v.nat_gateway_id, null) + next_hop_network_interface_id = try(v.network_interface_id, null) + next_hop_vpc_endpoint_id = try(v.vpc_endpoint_id, null) + next_hop_vpc_peering_connection_id = try(v.vpc_peering_connection_id, null) + next_hop_egress_only_gateway_id = try(v.egress_only_gateway_id, null) + next_hop_local_gateway_id = try(v.local_gateway_id, null) + } + ] +} \ No newline at end of file diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/input/variables.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/input/variables.tf new file mode 100644 index 0000000..53b1d5c --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/input/variables.tf @@ -0,0 +1,90 @@ +variable "route_table_ids" { + description = <<-EOF + A map of Route Tables where to install the route. Each key is an arbitrary string, + each value is a Route Table identifier. The keys need to match keys used in the + `next_hop_set` input. The keys are usually Availability Zone names. Each of the Route Tables + obtains exactly one next hop from the `next_hop_set`. Example: + ``` + route_table_ids = { + "us-east-1a" = "rt-123123" + "us-east-1b" = "rt-123456" + } + ``` + EOF + type = map(string) +} + +variable "next_hop_set" { + description = <<-EOF + The Next Hop Set object, such as an output `module.nat_gateway_set.next_hop_set`, which contains 3 attributes: + - `type` + - `id` + - `ids` + + For `type` attribute there are possible below values: + - "transit_gateway" + - "internet_gateway" + - "vpc_peer" + - "egress_only_gateway" + - "local_gateway" + - "nat_gateway" + - "interface" + - "vpc_endpoint" + + The set of single-zone next hops (type "nat_gateway", "interface" and "vpc_endpoint") should be specified as the `ids` map, in which case each value is a next hop id and each key should be present among the keys of the input `route_table_ids`. To avoid unintended cross-zone routing, these keys should be equal. Example: + ``` + next_hop_set = { + type = "nat_gateway" + id = null + ids = { + "us-east-1a" = "natgw-123" + "us-east-1b" = "natgw-124" + } + } + ``` + + For a non-AZ-aware next hop (type "transit_gateway", "internet_gateway", "vpc_peer", "egress_only_gateway" and "local_gateway"), the `ids` map should be empty. All the route tables receive the same `id` of the next hop. Example: + ``` + next_hop_set = { + type = "internet_gateway" + id = "igw-12345" + ids = {} + } + ``` + EOF + type = object({ + type = string + id = string + ids = map(string) + }) + validation { + condition = ( + length(var.next_hop_set.ids) == 0 && contains(["transit_gateway", "internet_gateway", "vpc_peer", "egress_only_gateway", "local_gateway"], var.next_hop_set.type) + || var.next_hop_set.id == null && contains(["nat_gateway", "interface", "vpc_endpoint"], var.next_hop_set.type) + ) + error_message = "Map of ids should be empty for next hop types: \"transit_gateway\", \"internet_gateway\", \"vpc_peer\", \"egress_only_gateway\", \"local_gateway\". Attribute id should be null for next hop types: \"nat_gateway\", \"interface\", \"vpc_endpoint\"." + } + validation { + condition = ( + contains(["transit_gateway", "internet_gateway", "vpc_peer", "egress_only_gateway", "local_gateway", "nat_gateway", "interface", "vpc_endpoint"], var.next_hop_set.type) + ) + error_message = "Allowed next hop types: \"transit_gateway\", \"internet_gateway\", \"vpc_peer\", \"egress_only_gateway\", \"local_gateway\", \"nat_gateway\", \"interface\", \"vpc_endpoint\"." + } +} + +variable "to_cidr" { + description = "The CIDR to match the packet's destination field. If they match, the route can be used for the packet. For example \"0.0.0.0/0\"." + type = string +} + +variable "destination_type" { + description = "Type of destination: \"ipv4\", \"ipv6\" or \"mpl\"." + default = "ipv4" + type = string +} + +variable "managed_prefix_list_id" { + description = "ID of managed prefix list, which is going to be set as destination in route" + default = null + type = string +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/input/versions.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/input/versions.tf new file mode 100644 index 0000000..9ddb384 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpc_route/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.0.0, < 2.0.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.17" + } + } +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/LICENSE b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/LICENSE new file mode 100644 index 0000000..49c5cbf --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Palo Alto Networks, inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/fixture.json b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/fixture.json new file mode 100644 index 0000000..416a8e8 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/fixture.json @@ -0,0 +1,37 @@ +{ + "schema": 1, + "id": "registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/aws/1.1.6", + "ref": "1.1.6", + "path": "modules/vpn", + "archiveSha256": "d1f8addda811aa7a48837401f3bb3eda1903e3796a5a5f25280366499d4248d4", + "inputSha256": "49b439311d6496df20340892b85305e07754d6360ed84f50872e5d0238daaed3" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "dynamic", + "for_each", + "functions", + "heredoc", + "interpolation", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/main.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/main.tf new file mode 100644 index 0000000..ffcba2a --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/main.tf @@ -0,0 +1,213 @@ +# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/customer_gateway +resource "aws_customer_gateway" "this" { + bgp_asn = var.customer_gateway.bgp_asn + ip_address = var.customer_gateway.ip_address + type = try(var.customer_gateway.type, "ipsec.1") + + tags = merge(var.tags, { Name = "${var.name_prefix}${var.customer_gateway.name}${var.name_suffix}" }) +} + +# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpn_connection +resource "aws_vpn_connection" "this" { + customer_gateway_id = aws_customer_gateway.this.id + type = aws_customer_gateway.this.type + vpn_gateway_id = try(var.vpn_gateway_id, null) + transit_gateway_id = try(var.transit_gateway_id, null) + static_routes_only = try(var.vpn_connection.static_routes_only, false) + enable_acceleration = try(var.vpn_connection.enable_acceleration, false) + local_ipv4_network_cidr = try(var.vpn_connection.local_ipv4_network_cidr, "0.0.0.0/0") + outside_ip_address_type = try(var.vpn_connection.outside_ip_address_type, "PublicIpv4") + remote_ipv4_network_cidr = try(var.vpn_connection.remote_ipv4_network_cidr, "0.0.0.0/0") + tunnel_inside_ip_version = try(var.vpn_connection.tunnel_inside_ip_version, "ipv4") + tunnel1_inside_cidr = try(var.vpn_connection.tunnel1_inside_cidr, null) + tunnel2_inside_cidr = try(var.vpn_connection.tunnel2_inside_cidr, null) + tunnel1_preshared_key = try(var.vpn_connection.tunnel1_preshared_key, null) + tunnel2_preshared_key = try(var.vpn_connection.tunnel2_preshared_key, null) + tunnel1_dpd_timeout_action = try(var.vpn_connection.tunnel1_dpd_timeout_action, null) + tunnel2_dpd_timeout_action = try(var.vpn_connection.tunnel2_dpd_timeout_action, null) + tunnel1_dpd_timeout_seconds = try(var.vpn_connection.tunnel1_dpd_timeout_seconds, null) + tunnel2_dpd_timeout_seconds = try(var.vpn_connection.tunnel2_dpd_timeout_seconds, null) + tunnel1_enable_tunnel_lifecycle_control = try(var.vpn_connection.tunnel1_enable_tunnel_lifecycle_control, null) + tunnel2_enable_tunnel_lifecycle_control = try(var.vpn_connection.tunnel2_enable_tunnel_lifecycle_control, null) + tunnel1_ike_versions = try(var.vpn_connection.tunnel1_ike_versions, null) + tunnel2_ike_versions = try(var.vpn_connection.tunnel2_ike_versions, null) + tunnel1_phase1_dh_group_numbers = try(var.vpn_connection.tunnel1_phase1_dh_group_numbers, null) + tunnel2_phase1_dh_group_numbers = try(var.vpn_connection.tunnel2_phase1_dh_group_numbers, null) + tunnel1_phase1_encryption_algorithms = try(var.vpn_connection.tunnel1_phase1_encryption_algorithms, null) + tunnel2_phase1_encryption_algorithms = try(var.vpn_connection.tunnel2_phase1_encryption_algorithms, null) + tunnel1_phase1_integrity_algorithms = try(var.vpn_connection.tunnel1_phase1_integrity_algorithms, null) + tunnel2_phase1_integrity_algorithms = try(var.vpn_connection.tunnel2_phase1_integrity_algorithms, null) + tunnel1_phase1_lifetime_seconds = try(var.vpn_connection.tunnel1_phase1_lifetime_seconds, 28800) + tunnel2_phase1_lifetime_seconds = try(var.vpn_connection.tunnel2_phase1_lifetime_seconds, 28800) + tunnel1_phase2_dh_group_numbers = try(var.vpn_connection.tunnel1_phase2_dh_group_numbers, null) + tunnel2_phase2_dh_group_numbers = try(var.vpn_connection.tunnel2_phase2_dh_group_numbers, null) + tunnel1_phase2_encryption_algorithms = try(var.vpn_connection.tunnel1_phase2_encryption_algorithms, null) + tunnel2_phase2_encryption_algorithms = try(var.vpn_connection.tunnel2_phase2_encryption_algorithms, null) + tunnel1_phase2_integrity_algorithms = try(var.vpn_connection.tunnel1_phase2_integrity_algorithms, null) + tunnel2_phase2_integrity_algorithms = try(var.vpn_connection.tunnel2_phase2_integrity_algorithms, null) + tunnel1_phase2_lifetime_seconds = try(var.vpn_connection.tunnel1_phase2_lifetime_seconds, 3600) + tunnel2_phase2_lifetime_seconds = try(var.vpn_connection.tunnel2_phase2_lifetime_seconds, 3600) + tunnel1_rekey_fuzz_percentage = try(var.vpn_connection.tunnel1_rekey_fuzz_percentage, 100) + tunnel2_rekey_fuzz_percentage = try(var.vpn_connection.tunnel2_rekey_fuzz_percentage, 100) + tunnel1_rekey_margin_time_seconds = try(var.vpn_connection.tunnel1_rekey_margin_time_seconds, null) + tunnel2_rekey_margin_time_seconds = try(var.vpn_connection.tunnel2_rekey_margin_time_seconds, null) + tunnel1_replay_window_size = try(var.vpn_connection.tunnel1_replay_window_size, null) + tunnel2_replay_window_size = try(var.vpn_connection.tunnel2_replay_window_size, null) + tunnel1_startup_action = try(var.vpn_connection.tunnel1_startup_action, null) + tunnel2_startup_action = try(var.vpn_connection.tunnel2_startup_action, null) + + dynamic "tunnel1_log_options" { + for_each = try(var.vpn_connection.tunnel1_log_options.enabled, false) ? { log_options = var.vpn_connection.tunnel1_log_options } : {} + content { + cloudwatch_log_options { + log_enabled = try(var.vpn_connection.tunnel1_log_options.enabled, false) + log_group_arn = try(aws_cloudwatch_log_group.tunnel1_log[0].arn, null) + log_output_format = try(var.vpn_connection.tunnel1_log_options.output_format, "json") + } + } + } + dynamic "tunnel2_log_options" { + for_each = try(var.vpn_connection.tunnel2_log_options.enabled, false) ? { log_options = var.vpn_connection.tunnel2_log_options } : {} + content { + cloudwatch_log_options { + log_enabled = try(var.vpn_connection.tunnel2_log_options.enabled, false) + log_group_arn = try(aws_cloudwatch_log_group.tunnel2_log[0].arn, null) + log_output_format = try(var.vpn_connection.tunnel2_log_options.output_format, "json") + } + } + } + + tags = merge(var.tags, { Name = "${var.name_prefix}${var.vpn_connection.name}${var.name_suffix}" }) +} + +# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ec2_transit_gateway_route_table_association.html +resource "aws_ec2_transit_gateway_route_table_association" "this" { + transit_gateway_attachment_id = aws_vpn_connection.this.transit_gateway_attachment_id + transit_gateway_route_table_id = var.transit_gateway_associate_route_table_id +} + +# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ec2_transit_gateway_route_table_propagation +resource "aws_ec2_transit_gateway_route_table_propagation" "this" { + transit_gateway_attachment_id = aws_vpn_connection.this.transit_gateway_attachment_id + transit_gateway_route_table_id = var.transit_gateway_propagate_route_table_id +} + +# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group +resource "aws_cloudwatch_log_group" "tunnel1_log" { + count = var.vpn_connection.tunnel1_log_options.enabled ? 1 : 0 + name = "${var.name_prefix}log-${var.vpn_connection.tunnel1_log_options.log_group}${var.name_suffix}" + retention_in_days = var.vpn_connection.tunnel1_log_options.retention_in_days + kms_key_id = var.vpn_connection.tunnel1_log_options.encrypted ? aws_kms_key.tunnel1_kms_key[0].arn : null + + tags = merge(var.tags) +} + +resource "aws_cloudwatch_log_group" "tunnel2_log" { + count = var.vpn_connection.tunnel2_log_options.enabled ? 1 : 0 + name = "${var.name_prefix}log-${var.vpn_connection.tunnel2_log_options.log_group}${var.name_suffix}" + retention_in_days = var.vpn_connection.tunnel2_log_options.retention_in_days + kms_key_id = var.vpn_connection.tunnel2_log_options.encrypted ? aws_kms_key.tunnel2_kms_key[0].arn : null + + tags = var.tags +} + +# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_key +resource "aws_kms_key" "tunnel1_kms_key" { + count = var.vpn_connection.tunnel1_log_options.enabled && var.vpn_connection.tunnel1_log_options.encrypted ? 1 : 0 + description = "KMS key for encrypting CloudWatch logs for VPN connections" + deletion_window_in_days = 30 + enable_key_rotation = "true" + policy = data.aws_iam_policy_document.this.json + + tags = var.tags +} + +# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_alias +resource "aws_kms_alias" "tunnel1_kms_alias" { + count = var.vpn_connection.tunnel1_log_options.enabled && var.vpn_connection.tunnel1_log_options.encrypted ? 1 : 0 + name = "alias/${var.name_prefix}kms-${var.vpn_connection.tunnel1_log_options.log_group}${var.name_suffix}" + target_key_id = aws_kms_key.tunnel1_kms_key[0].key_id +} + +resource "aws_kms_key" "tunnel2_kms_key" { + count = var.vpn_connection.tunnel2_log_options.enabled && var.vpn_connection.tunnel2_log_options.encrypted ? 1 : 0 + description = "KMS key for encrypting CloudWatch logs for VPN connections" + deletion_window_in_days = 30 + enable_key_rotation = "true" + policy = data.aws_iam_policy_document.this.json + + tags = var.tags +} + +resource "aws_kms_alias" "tunnel2_kms_alias" { + count = var.vpn_connection.tunnel2_log_options.enabled && var.vpn_connection.tunnel2_log_options.encrypted ? 1 : 0 + name = "alias/${var.name_prefix}kms-${var.vpn_connection.tunnel2_log_options.log_group}${var.name_suffix}" + target_key_id = aws_kms_key.tunnel2_kms_key[0].key_id +} + +data "aws_caller_identity" "this" {} + +data "aws_partition" "this" {} + +# actions, resources, and condition keys for AWS Key Management Service: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awskeymanagementservice.html +data "aws_iam_policy_document" "this" { + policy_id = "key-policy-cloudwatch" + statement { + sid = "Enable IAM User Permissions" + actions = [ + "kms:*", + ] + effect = "Allow" + principals { + type = "AWS" + identifiers = [ + format( + "arn:%s:iam::%s:root", + data.aws_partition.this.partition, + data.aws_caller_identity.this.account_id + ) + ] + } + resources = [ + format( + "arn:%s:kms:%s:%s:key/*", + data.aws_partition.this.partition, + var.region, + data.aws_caller_identity.this.account_id + ) + ] + } + statement { + sid = "Allow use of the key by CloudWatch logs" + actions = [ + "kms:Encrypt*", + "kms:Decrypt*", + "kms:ReEncrypt*", + "kms:GenerateDataKey*", + "kms:Describe*" + ] + effect = "Allow" + principals { + type = "Service" + identifiers = [ + format( + "logs.%s.amazonaws.com", + var.region + ) + ] + } + resources = [ + format( + "arn:%s:kms:%s:%s:key/*", + data.aws_partition.this.partition, + var.region, + data.aws_caller_identity.this.account_id + ) + ] + condition { + test = "ArnLike" + variable = "kms:EncryptionContext:aws:logs:arn" + values = ["arn:${data.aws_partition.this.partition}:logs:${var.region}:${data.aws_caller_identity.this.account_id}:*"] + } + } +} \ No newline at end of file diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/outputs.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/outputs.tf new file mode 100644 index 0000000..bb8764d --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/outputs.tf @@ -0,0 +1,45 @@ +output "customer_gateway" { + description = "Object describing created customer gateway" + value = aws_customer_gateway.this +} + +output "vpn_connection" { + description = "Object describing created Site-to-Site VPN connection" + value = aws_vpn_connection.this +} + +output "tunnel1" { + description = "Tunnel 1 details (public IP address, inside IP addresses, BGP ASN)" + value = { + outside_ip_address : aws_vpn_connection.this.tunnel1_address + inside_ip_address_aws : aws_vpn_connection.this.tunnel1_vgw_inside_address + inside_ip_address_cgw : aws_vpn_connection.this.tunnel1_cgw_inside_address + bgp_asn : aws_vpn_connection.this.tunnel1_bgp_asn + ipsec_policy : { + phase1_dh_group_numbers : one(aws_vpn_connection.this.tunnel1_phase1_dh_group_numbers) + phase1_encryption_algorithms : one(aws_vpn_connection.this.tunnel1_phase1_encryption_algorithms) + phase1_integrity_algorithms : one(aws_vpn_connection.this.tunnel1_phase1_integrity_algorithms) + phase2_dh_group_numbers : one(aws_vpn_connection.this.tunnel1_phase2_dh_group_numbers) + phase2_encryption_algorithms : one(aws_vpn_connection.this.tunnel1_phase2_encryption_algorithms) + phase2_integrity_algorithms : one(aws_vpn_connection.this.tunnel1_phase2_integrity_algorithms) + } + } +} + +output "tunnel2" { + description = "Tunnel 2 details (public IP address, inside IP addresses, BGP ASN)" + value = { + outside_ip_address : aws_vpn_connection.this.tunnel2_address + inside_ip_address_aws : aws_vpn_connection.this.tunnel2_vgw_inside_address + inside_ip_address_cgw : aws_vpn_connection.this.tunnel2_cgw_inside_address + bgp_asn : aws_vpn_connection.this.tunnel2_bgp_asn + ipsec_policy : { + phase1_dh_group_numbers : one(aws_vpn_connection.this.tunnel2_phase1_dh_group_numbers) + phase1_encryption_algorithms : one(aws_vpn_connection.this.tunnel2_phase1_encryption_algorithms) + phase1_integrity_algorithms : one(aws_vpn_connection.this.tunnel2_phase1_integrity_algorithms) + phase2_dh_group_numbers : one(aws_vpn_connection.this.tunnel2_phase2_dh_group_numbers) + phase2_encryption_algorithms : one(aws_vpn_connection.this.tunnel2_phase2_encryption_algorithms) + phase2_integrity_algorithms : one(aws_vpn_connection.this.tunnel2_phase2_integrity_algorithms) + } + } +} \ No newline at end of file diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/variables.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/variables.tf new file mode 100644 index 0000000..856e308 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/variables.tf @@ -0,0 +1,120 @@ +variable "name_prefix" { + description = "A prefix added to all resource names created by this module" + default = "" + type = string +} + +variable "name_suffix" { + description = "A sufix added to all resource names created by this module" + default = "" + type = string +} + +variable "tags" { + description = "Optional map of arbitrary tags to apply to all the created resources." + default = {} + type = map(string) +} + +variable "region" { + description = "AWS region used to deploy whole infrastructure" + type = string +} + +variable "customer_gateway" { + description = <<-EOF + Customer gateway defined by attributes: + - bgp_asn - (Required) The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN). + - certificate_arn - (Optional) The Amazon Resource Name (ARN) for the customer gateway certificate. + - device_name - (Optional) A name for the customer gateway device. + - ip_address - (Optional) The IPv4 address for the customer gateway device's outside interface. + - type - (Required) The type of customer gateway. The only type AWS supports at this time is "ipsec.1". + - tags - (Optional) Tags to apply to the gateway. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level. + EOF + type = any +} +variable "vpn_connection" { + description = <<-EOF + VPN connection defined by attributes: + - customer_gateway_id - (Required) The ID of the customer gateway. + - type - (Required) The type of VPN connection. The only type AWS supports at this time is "ipsec.1". + - transit_gateway_id - (Optional) The ID of the EC2 Transit Gateway. + - static_routes_only - (Optional, Default false) Whether the VPN connection uses static routes exclusively. Static routes must be used for devices that don't support BGP. + - enable_acceleration - (Optional, Default false) Indicate whether to enable acceleration for the VPN connection. Supports only EC2 Transit Gateway. + - tags - (Optional) Tags to apply to the connection. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level. + - local_ipv4_network_cidr - (Optional, Default 0.0.0.0/0) The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. + - local_ipv6_network_cidr - (Optional, Default ::/0) The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. + - outside_ip_address_type - (Optional, Default PublicIpv4) Indicates if a Public S2S VPN or Private S2S VPN over AWS Direct Connect. Valid values are PublicIpv4 | PrivateIpv4 + - remote_ipv4_network_cidr - (Optional, Default 0.0.0.0/0) The IPv4 CIDR on the AWS side of the VPN connection. + - remote_ipv6_network_cidr - (Optional, Default ::/0) The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. + - transport_transit_gateway_attachment_id - (Required when outside_ip_address_type is set to PrivateIpv4). The attachment ID of the Transit Gateway attachment to Direct Connect Gateway. The ID is obtained through a data source only. + - tunnel_inside_ip_version - (Optional, Default ipv4) Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. Valid values are ipv4 | ipv6. ipv6 Supports only EC2 Transit Gateway. + - tunnel1_inside_cidr - (Optional) The CIDR block of the inside IP addresses for the first VPN tunnel. Valid value is a size /30 CIDR block from the 169.254.0.0/16 range. + - tunnel2_inside_cidr - (Optional) The CIDR block of the inside IP addresses for the second VPN tunnel. Valid value is a size /30 CIDR block from the 169.254.0.0/16 range. + - tunnel1_inside_ipv6_cidr - (Optional) The range of inside IPv6 addresses for the first VPN tunnel. Supports only EC2 Transit Gateway. Valid value is a size /126 CIDR block from the local fd00::/8 range. + - tunnel2_inside_ipv6_cidr - (Optional) The range of inside IPv6 addresses for the second VPN tunnel. Supports only EC2 Transit Gateway. Valid value is a size /126 CIDR block from the local fd00::/8 range. + - tunnel1_preshared_key - (Optional) The preshared key of the first VPN tunnel. The preshared key must be between 8 and 64 characters in length and cannot start with zero(0). Allowed characters are alphanumeric characters, periods(.) and underscores(_). + - tunnel2_preshared_key - (Optional) The preshared key of the second VPN tunnel. The preshared key must be between 8 and 64 characters in length and cannot start with zero(0). Allowed characters are alphanumeric characters, periods(.) and underscores(_). + - tunnel1_dpd_timeout_action - (Optional, Default clear) The action to take after DPD timeout occurs for the first VPN tunnel. Specify restart to restart the IKE initiation. Specify clear to end the IKE session. Valid values are clear | none | restart. + - tunnel2_dpd_timeout_action - (Optional, Default clear) The action to take after DPD timeout occurs for the second VPN tunnel. Specify restart to restart the IKE initiation. Specify clear to end the IKE session. Valid values are clear | none | restart. + - tunnel1_dpd_timeout_seconds - (Optional, Default 30) The number of seconds after which a DPD timeout occurs for the first VPN tunnel. Valid value is equal or higher than 30. + - tunnel2_dpd_timeout_seconds - (Optional, Default 30) The number of seconds after which a DPD timeout occurs for the second VPN tunnel. Valid value is equal or higher than 30. + - tunnel1_enable_tunnel_lifecycle_control - (Optional, Default false) Turn on or off tunnel endpoint lifecycle control feature for the first VPN tunnel. Valid values are true | false. + - tunnel2_enable_tunnel_lifecycle_control - (Optional, Default false) Turn on or off tunnel endpoint lifecycle control feature for the second VPN tunnel. Valid values are true | false. + - tunnel1_ike_versions - (Optional) The IKE versions that are permitted for the first VPN tunnel. Valid values are ikev1 | ikev2. + - tunnel2_ike_versions - (Optional) The IKE versions that are permitted for the second VPN tunnel. Valid values are ikev1 | ikev2. + - tunnel1_log_options - (Required) Options for logging VPN tunnel activity: + - enabled - (Required) true if logs need to stored in CloudWatch logs + - log_group - (Required) The name of the log group. + - retention_in_days - (Required) Specifies the number of days you want to retain log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653. + - encrypted - (Required) true if logs need to be encrypted + - tunnel2_log_options - (Required) Options for logging VPN tunnel activity: + - enabled - (Required) Required if logs need to stored in CloudWatch logs + - log_group - (Required) The name of the log group. + - retention_in_days - (Required) Specifies the number of days you want to retain log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653. + - encrypted - (Required) true if logs need to be encrypted + - tunnel1_phase1_dh_group_numbers - (Optional) List of one or more Diffie-Hellman group numbers that are permitted for the first VPN tunnel for phase 1 IKE negotiations. Valid values are 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. + - tunnel2_phase1_dh_group_numbers - (Optional) List of one or more Diffie-Hellman group numbers that are permitted for the second VPN tunnel for phase 1 IKE negotiations. Valid values are 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. + - tunnel1_phase1_encryption_algorithms - (Optional) List of one or more encryption algorithms that are permitted for the first VPN tunnel for phase 1 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. + - tunnel2_phase1_encryption_algorithms - (Optional) List of one or more encryption algorithms that are permitted for the second VPN tunnel for phase 1 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. + - tunnel1_phase1_integrity_algorithms - (Optional) One or more integrity algorithms that are permitted for the first VPN tunnel for phase 1 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. + - tunnel2_phase1_integrity_algorithms - (Optional) One or more integrity algorithms that are permitted for the second VPN tunnel for phase 1 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. + - tunnel1_phase1_lifetime_seconds - (Optional, Default 28800) The lifetime for phase 1 of the IKE negotiation for the first VPN tunnel, in seconds. Valid value is between 900 and 28800. + - tunnel2_phase1_lifetime_seconds - (Optional, Default 28800) The lifetime for phase 1 of the IKE negotiation for the second VPN tunnel, in seconds. Valid value is between 900 and 28800. + - tunnel1_phase2_dh_group_numbers - (Optional) List of one or more Diffie-Hellman group numbers that are permitted for the first VPN tunnel for phase 2 IKE negotiations. Valid values are 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. + - tunnel2_phase2_dh_group_numbers - (Optional) List of one or more Diffie-Hellman group numbers that are permitted for the second VPN tunnel for phase 2 IKE negotiations. Valid values are 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24. + - tunnel1_phase2_encryption_algorithms - (Optional) List of one or more encryption algorithms that are permitted for the first VPN tunnel for phase 2 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. + - tunnel2_phase2_encryption_algorithms - (Optional) List of one or more encryption algorithms that are permitted for the second VPN tunnel for phase 2 IKE negotiations. Valid values are AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16. + - tunnel1_phase2_integrity_algorithms - (Optional) List of one or more integrity algorithms that are permitted for the first VPN tunnel for phase 2 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. + - tunnel2_phase2_integrity_algorithms - (Optional) List of one or more integrity algorithms that are permitted for the second VPN tunnel for phase 2 IKE negotiations. Valid values are SHA1 | SHA2-256 | SHA2-384 | SHA2-512. + - tunnel1_phase2_lifetime_seconds - (Optional, Default 3600) The lifetime for phase 2 of the IKE negotiation for the first VPN tunnel, in seconds. Valid value is between 900 and 3600. + - tunnel2_phase2_lifetime_seconds - (Optional, Default 3600) The lifetime for phase 2 of the IKE negotiation for the second VPN tunnel, in seconds. Valid value is between 900 and 3600. + - tunnel1_rekey_fuzz_percentage - (Optional, Default 100) The percentage of the rekey window for the first VPN tunnel (determined by tunnel1_rekey_margin_time_seconds) during which the rekey time is randomly selected. Valid value is between 0 and 100. + - tunnel2_rekey_fuzz_percentage - (Optional, Default 100) The percentage of the rekey window for the second VPN tunnel (determined by tunnel2_rekey_margin_time_seconds) during which the rekey time is randomly selected. Valid value is between 0 and 100. + - tunnel1_rekey_margin_time_seconds - (Optional, Default 540) The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the first VPN connection performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for tunnel1_rekey_fuzz_percentage. Valid value is between 60 and half of tunnel1_phase2_lifetime_seconds. + - tunnel2_rekey_margin_time_seconds - (Optional, Default 540) The margin time, in seconds, before the phase 2 lifetime expires, during which the AWS side of the second VPN connection performs an IKE rekey. The exact time of the rekey is randomly selected based on the value for tunnel2_rekey_fuzz_percentage. Valid value is between 60 and half of tunnel2_phase2_lifetime_seconds. + - tunnel1_replay_window_size - (Optional, Default 1024) The number of packets in an IKE replay window for the first VPN tunnel. Valid value is between 64 and 2048. + - tunnel2_replay_window_size - (Optional, Default 1024) The number of packets in an IKE replay window for the second VPN tunnel. Valid value is between 64 and 2048. + - tunnel1_startup_action - (Optional, Default add) The action to take when the establishing the tunnel for the first VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify start for AWS to initiate the IKE negotiation. Valid values are add | start. + - tunnel2_startup_action - (Optional, Default add) The action to take when the establishing the tunnel for the second VPN connection. By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify start for AWS to initiate the IKE negotiation. Valid values are add | start. + EOF + type = any +} + +variable "vpn_gateway_id" { + description = "Virtual Private Gateway's ID used by VPN connection" + type = string +} + +variable "transit_gateway_id" { + description = "TGW's ID used by VPN connection" + type = string +} +variable "transit_gateway_associate_route_table_id" { + description = "TGW route table ID used to associate VPN attachments created by VPN connections" + type = string +} +variable "transit_gateway_propagate_route_table_id" { + description = "TGW route table ID into which VPN attachment will propagate routes received by BGP" + type = string +} \ No newline at end of file diff --git a/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/versions.tf b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/versions.tf new file mode 100644 index 0000000..9ddb384 --- /dev/null +++ b/conformance/fixtures/registry/PaloAltoNetworks/vmseries-modules/1.1.6/modules/vpn/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.0.0, < 2.0.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.17" + } + } +} diff --git a/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/LICENSE b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/fixture.json b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/fixture.json new file mode 100644 index 0000000..4a685d3 --- /dev/null +++ b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/fixture.json @@ -0,0 +1,36 @@ +{ + "schema": 1, + "id": "registry/QuiNovas/lambda/4.0.2", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/QuiNovas/lambda/aws/4.0.2", + "ref": "4.0.2", + "path": ".", + "archiveSha256": "56cbbbea4fd563caf55dc6f6a2f64cf01c74ecbd1231727724f3afc9908ef6ce", + "inputSha256": "1e246a1101e21ed15c77cef9dc399fdf525076a880da9cba86da27720290da81" + }, + "license": "Apache-2.0", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "depends_on", + "dynamic", + "for_each", + "interpolation", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/destinations.tf b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/destinations.tf new file mode 100644 index 0000000..9b66458 --- /dev/null +++ b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/destinations.tf @@ -0,0 +1,71 @@ +resource "aws_lambda_function_event_invoke_config" "destination" { + count = var.destinations_on_failure_arn != "" || var.destinations_on_success_arn != "" ? 1 : 0 + function_name = aws_lambda_function.function.arn + + destination_config { + + dynamic "on_failure" { + for_each = var.destinations_on_failure_arn != "" ? ["1"] : [] + content { + destination = var.destinations_on_failure_arn + } + } + dynamic "on_success" { + for_each = var.destinations_on_success_arn != "" ? ["1"] : [] + content { + destination = var.destinations_on_success_arn + } + } + } + + depends_on = [ + aws_iam_role_policy.destination_on_success, + aws_iam_role_policy.destination_on_failure, + ] +} + +data "aws_iam_policy_document" "destination_on_failure" { + count = var.destinations_on_failure_arn == "" ? 0 : 1 + statement { + actions = [ + "sns:Publish", + "sqs:SendMessage", + "lambda:InvokeFunction", + "events:PutEvents" + ] + resources = [ + var.destinations_on_failure_arn + ] + sid = "AsynchronousInvocationOnFailure" + } +} + +data "aws_iam_policy_document" "destination_on_success" { + count = var.destinations_on_success_arn == "" ? 0 : 1 + statement { + actions = [ + "sns:Publish", + "sqs:SendMessage", + "lambda:InvokeFunction", + "events:PutEvents" + ] + resources = [ + var.destinations_on_success_arn + ] + sid = "AsynchronousInvocationOnSuccess" + } +} + +resource "aws_iam_role_policy" "destination_on_failure" { + count = var.destinations_on_failure_arn == "" ? 0 : 1 + name = "destination-failure" + policy = data.aws_iam_policy_document.destination_on_failure.0.json + role = aws_iam_role.function.id +} + +resource "aws_iam_role_policy" "destination_on_success" { + count = var.destinations_on_success_arn == "" ? 0 : 1 + name = "destination-success" + policy = data.aws_iam_policy_document.destination_on_success.0.json + role = aws_iam_role.function.id +} diff --git a/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/locals.tf b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/locals.tf new file mode 100644 index 0000000..e69de29 diff --git a/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/main.tf b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/main.tf new file mode 100644 index 0000000..caab42f --- /dev/null +++ b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/main.tf @@ -0,0 +1,170 @@ +data "aws_iam_policy_document" "assume_role" { + statement { + actions = [ + "sts:AssumeRole", + ] + principals { + identifiers = [ + "lambda.amazonaws.com", + ] + type = "Service" + } + } +} + +resource "aws_iam_role" "function" { + name = var.name + assume_role_policy = data.aws_iam_policy_document.assume_role.json + tags = var.tags +} + +resource "aws_cloudwatch_log_group" "log_group" { + name = "/aws/lambda/${var.name}" + retention_in_days = var.log_retention_days + tags = var.tags +} + + +data "aws_iam_policy_document" "function" { + statement { + actions = [ + "logs:CreateLogStream", + "logs:PutLogEvents", + ] + resources = [ + "${aws_cloudwatch_log_group.log_group.arn}:*", + ] + sid = "AllowLogWriting" + } + statement { + actions = [ + "kms:Decrypt", + "kms:Encrypt", + "kms:GenerateDataKey*", + ] + resources = [ + var.kms_key_arn, + ] + sid = "AllowEcryptDecryptEnvVars" + } + statement { + actions = [ + "sns:Publish", + "sqs:SendMessage", + ] + resources = [ + var.dead_letter_arn, + ] + sid = "AllowDeadLetterWriting" + } + statement { + actions = [ + "xray:PutTraceSegments", + "xray:PutTelemetryRecords", + ] + resources = [ + "*", + ] + sid = "AllowWritingXRay" + } +} + +resource "aws_iam_role_policy" "log_group_access" { + name = "basic-access" + policy = data.aws_iam_policy_document.function.json + role = aws_iam_role.function.id +} + +resource "aws_iam_role_policy_attachment" "managed_policy" { + count = length(var.policy_arns) + policy_arn = var.policy_arns[count.index] + role = aws_iam_role.function.name +} + +resource "aws_iam_role_policy_attachment" "vpc_access" { + count = length(var.vpc_config) < 1 ? 0 : 1 + policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole" + role = aws_iam_role.function.name +} + +data "aws_s3_object" "function_package" { + bucket = var.s3_bucket + key = var.s3_object_key +} + +resource "aws_lambda_function" "function" { + architectures = var.architectures + description = var.description + dead_letter_config { + target_arn = var.dead_letter_arn + } + depends_on = [ + aws_cloudwatch_log_group.log_group, + ] + environment { + variables = var.environment_variables + } + function_name = var.name + handler = var.handler + kms_key_arn = var.kms_key_arn + layers = var.layers + memory_size = var.memory_size + publish = true + role = aws_iam_role.function.arn + runtime = var.runtime + + dynamic "vpc_config" { + for_each = length(var.vpc_config) > 1 && var.vpc_enabled ? [var.vpc_config] : [] + content { + security_group_ids = vpc_config.value.security_group_ids + subnet_ids = vpc_config.value.subnet_ids + } + } + + s3_bucket = data.aws_s3_object.function_package.bucket + s3_key = data.aws_s3_object.function_package.key + timeout = var.timeout + tags = var.tags +} + +data "aws_iam_policy_document" "invoke_function" { + statement { + actions = [ + "lambda:InvokeFunction", + ] + resources = [ + aws_lambda_function.function.arn, + ] + sid = "AllowInvoke" + } +} + +resource "aws_iam_policy" "invoke_function" { + name_prefix = "${var.name}-invoke" + policy = data.aws_iam_policy_document.invoke_function.json +} + +resource "aws_iam_role_policy_attachment" "invoke_function" { + count = var.allow_self_invocation ? 1 : 0 + policy_arn = aws_iam_policy.invoke_function.arn + role = aws_iam_role.function.name +} + +data "aws_region" "current" { +} + + +resource "aws_lambda_alias" "function" { + count = var.provisioned_concurrency ? 1 : 0 + name = aws_lambda_function.function.function_name + description = var.description + function_name = aws_lambda_function.function.arn + function_version = aws_lambda_function.function.version +} + +resource "aws_lambda_provisioned_concurrency_config" "function" { + count = var.provisioned_concurrency ? 1 : 0 + function_name = aws_lambda_function.function.function_name + provisioned_concurrent_executions = var.provisioned_concurrency == true && var.provisioned_concurrent_executions == 1 ? 1 : var.provisioned_concurrent_executions + qualifier = aws_lambda_alias.function[count.index].name +} \ No newline at end of file diff --git a/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/outputs.tf b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/outputs.tf new file mode 100644 index 0000000..5fe3e8e --- /dev/null +++ b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/outputs.tf @@ -0,0 +1,45 @@ +output "arn" { + description = "The arn of the Lambda function" + value = aws_lambda_function.function.arn +} + +output "invoke_arn" { + description = "The invocation arn of this lambda function" + value = aws_lambda_function.function.invoke_arn +} + +output "role_arn" { + description = "The IAM role arn of this lambda function" + value = aws_iam_role.function.arn +} + + +output "invoke_policy_arn" { + description = "The arn of the invocation policy for this Lambda function" + value = aws_iam_policy.invoke_function.arn +} + +output "name" { + description = "The name of the Lambda function" + value = aws_lambda_function.function.function_name +} + +output "qualified_arn" { + description = "The qualified arn of the Lambda function" + value = aws_lambda_function.function.qualified_arn +} + +output "qualified_invoke_arn" { + description = "The qualified invocation arn of the lambda function" + value = "arn:aws:apigateway:${data.aws_region.current.name}:lambda:path/2015-03-31/functions/${aws_lambda_function.function.qualified_arn}/invocations" +} + +output "log_group_name" { + description = "the Cloudwatch Log group name" + value = aws_cloudwatch_log_group.log_group.name +} + +output "version" { + description = "The version of the Lambda function" + value = aws_lambda_function.function.version +} diff --git a/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/variables.tf b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/variables.tf new file mode 100644 index 0000000..bd754ee --- /dev/null +++ b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/variables.tf @@ -0,0 +1,133 @@ +variable "allow_self_invocation" { + default = false + description = "If true, allows this Lambda function to invoke itself. Useful for recursive invocations" + type = bool +} + +variable "architectures" { + default = ["x86_64"] + description = "Instruction set architecture for your Lambda function. Valid values are [x86_64] and [arm64]. Default is [x86_64]" + type = list(string) +} + +variable "dead_letter_arn" { + description = "The arn for the SNS topic that handles dead letters" + type = string +} + +variable "description" { + default = "" + description = "Description of what your Lambda Function does" + type = string +} + +variable "destinations_on_failure_arn" { + description = "Add destination to function. An ARN of SQS queue, SNS topic, Lambda function, or EventBridge event bus. Added as on_failure aysynchronous invocation" + type = string + default = "" +} + +variable "destinations_on_success_arn" { + description = "Add destination to function. An ARN of SQS queue, SNS topic, Lambda function, or EventBridge event bus. Added as on_success aysynchronous invocation" + type = string + default = "" +} + +variable "environment_variables" { + default = { + DEFAULT = "default" + } + description = "The map of environment variables to give to the Lambda function" + type = map(any) +} + +variable "handler" { + description = "The handler for the lambda function" + type = string +} + +variable "kms_key_arn" { + description = "The arn of the KMS key used to encrypt the environment variables" + type = string +} + +variable "layers" { + default = [] + description = "The list of lambda layers to be attached" + type = list(string) +} + +variable "log_retention_days" { + default = 7 + description = "The number of days you want to retain log events in the specified log group" + type = number +} + +variable "memory_size" { + default = 128 + description = "The memory allocation for the function" + type = number +} + +variable "name" { + description = "The name of the function" + type = string +} + +variable "policy_arns" { + default = [] + description = "A list of additional policy arns to attach to the function's role" + type = list(string) +} + + +variable "provisioned_concurrency" { + default = false + description = "If true, allows this Lambda function to create alias and manage provisioned_concurrency_config" + type = bool +} + +variable "provisioned_concurrent_executions" { + default = 1 + description = "Amount of capacity to allocate. Must be greater than or equal to 1" + type = number +} + +variable "runtime" { + description = "The runtime the function should use" + type = string +} + +variable "s3_bucket" { + description = "The name or id of the S3 bucket that contains the function package" + type = string +} + +variable "s3_object_key" { + description = "The key of the function package in the s3_bucket" + type = string +} + +variable "tags" { + default = {} + description = "Key-value map of tags" + type = map(any) +} + +variable "timeout" { + default = 3 + description = "The timeout to apply to the function" + type = number +} + +variable "vpc_config" { + description = "Provide this to allow your function to access your VPC. Both 'subnet_ids' and 'security_group_ids' are a list of strings are required to enable vpc)." + type = map(list(string)) + default = {} +} + +variable "vpc_enabled" { + default = true + description = "Lambda is put in VPC if this bool is true and vpc_config is passed in" + type = bool +} diff --git a/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/versions.tf b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/versions.tf new file mode 100644 index 0000000..f7760d4 --- /dev/null +++ b/conformance/fixtures/registry/QuiNovas/lambda/4.0.2/input/versions.tf @@ -0,0 +1,10 @@ + +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.0.0" + } + } + required_version = ">= 1.3" +} diff --git a/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/LICENSE b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/LICENSE new file mode 100644 index 0000000..8f42583 --- /dev/null +++ b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Doriann Corlouër + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/fixture.json b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/fixture.json new file mode 100644 index 0000000..0998a1e --- /dev/null +++ b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/fixture.json @@ -0,0 +1,38 @@ +{ + "schema": 1, + "id": "registry/RaJiska/fck-nat/1.6.1", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/RaJiska/fck-nat/aws/1.6.1", + "ref": "1.6.1", + "path": ".", + "archiveSha256": "3dc0dfc16845ecb5ae95c06530da393ada94df8f571f719dd0b45a5698eeb003", + "inputSha256": "28e2c94721b53ba8e99f56f4622fe212fcb9dfffa25eb51ca87224a1a1a00281" + }, + "license": "MIT", + "providers": [ + "aws", + "cloudinit" + ], + "features": [ + "conditionals", + "count", + "data", + "dynamic", + "for_each", + "functions", + "interpolation", + "locals", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/asg.tf b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/asg.tf new file mode 100644 index 0000000..b1d88c7 --- /dev/null +++ b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/asg.tf @@ -0,0 +1,87 @@ +resource "aws_autoscaling_group" "main" { + count = var.ha_mode ? 1 : 0 + + region = var.region + + name = var.name + max_size = 1 + min_size = 1 + desired_capacity = 1 + health_check_type = "EC2" + vpc_zone_identifier = [var.subnet_id] + + mixed_instances_policy { + instances_distribution { + on_demand_base_capacity = 0 + on_demand_percentage_above_base_capacity = var.use_spot_instances ? 0 : 100 + spot_allocation_strategy = "price-capacity-optimized" + } + + launch_template { + launch_template_specification { + launch_template_id = aws_launch_template.main.id + version = aws_launch_template.main.latest_version + } + + override { + instance_type = var.instance_type + } + + dynamic "override" { + for_each = toset(var.ha_additional_instance_types) + + content { + instance_type = override.value + } + } + } + } + + dynamic "tag" { + for_each = var.tags + + content { + key = tag.key + value = tag.value + propagate_at_launch = false + } + } + + dynamic "instance_refresh" { + for_each = var.auto_rollout ? [true] : [] + content { + strategy = "Rolling" + preferences { + # network interface needs to be freed, before it can be attached to a new instance + min_healthy_percentage = 0 + } + } + } + + enabled_metrics = [ + "GroupMinSize", + "GroupMaxSize", + "GroupDesiredCapacity", + "GroupInServiceInstances", + "GroupPendingInstances", + "GroupStandbyInstances", + "GroupTerminatingInstances", + "GroupTotalInstances", + "GroupInServiceCapacity", + "GroupPendingCapacity", + "GroupStandbyCapacity", + "GroupTerminatingCapacity", + "GroupTotalCapacity", + "WarmPoolDesiredCapacity", + "WarmPoolWarmedCapacity", + "WarmPoolPendingCapacity", + "WarmPoolTerminatingCapacity", + "WarmPoolTotalCapacity", + "GroupAndWarmPoolDesiredCapacity", + "GroupAndWarmPoolTotalCapacity" + ] + + timeouts { + delete = "15m" + } +} diff --git a/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/ec2.tf b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/ec2.tf new file mode 100644 index 0000000..860b6dc --- /dev/null +++ b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/ec2.tf @@ -0,0 +1,147 @@ +data "aws_ami" "main" { + count = var.ami_id != null ? 0 : 1 + + region = var.region + + most_recent = true + owners = ["568608671756"] + + filter { + name = "name" + values = [var.use_nat64 ? "fck-nat-nat64-al2023-hvm-*" : "fck-nat-al2023-hvm-*"] + } + + filter { + name = "architecture" + values = [local.is_arm ? "arm64" : "x86_64"] + } + + filter { + name = "root-device-type" + values = ["ebs"] + } + + filter { + name = "virtualization-type" + values = ["hvm"] + } +} + +data "aws_default_tags" "current" {} + +data "aws_arn" "ssm_param" { + count = var.use_cloudwatch_agent && var.cloudwatch_agent_configuration_param_arn != null ? 1 : 0 + + arn = var.cloudwatch_agent_configuration_param_arn +} + +data "cloudinit_config" "this" { + gzip = true + base64_encode = true + + part { + content_type = "text/x-shellscript" + content = templatefile("${path.module}/templates/user_data.sh", { + TERRAFORM_ENI_ID = aws_network_interface.main.id + TERRAFORM_EIP_ID = length(var.eip_allocation_ids) != 0 ? var.eip_allocation_ids[0] : "" + TERRAFORM_CWAGENT_ENABLED = var.use_cloudwatch_agent ? "true" : "" + TERRAFORM_CWAGENT_CFG_PARAM_NAME = local.cwagent_param_name != null ? local.cwagent_param_name : "" + }) + } + + dynamic "part" { + for_each = var.cloud_init_parts + + content { + content_type = part.value["content_type"] + content = part.value["content"] + } + } +} + +resource "aws_launch_template" "main" { + #checkov:skip=CKV_AWS_88:NAT instances must have a public IP. + region = var.region + + name = var.name + image_id = local.ami_id + instance_type = var.instance_type + key_name = var.ssh_key_name + + block_device_mappings { + device_name = "/dev/xvda" + + ebs { + volume_size = var.ebs_root_volume_size + volume_type = "gp3" + encrypted = var.encryption + kms_key_id = var.kms_key_id + } + } + + iam_instance_profile { + name = aws_iam_instance_profile.main.name + } + + network_interfaces { + description = "${var.name} ephemeral public ENI" + subnet_id = var.subnet_id + associate_public_ip_address = true + security_groups = local.security_groups + ipv6_address_count = var.use_nat64 ? 1 : null + } + + dynamic "instance_market_options" { + for_each = !var.ha_mode && var.use_spot_instances ? ["x"] : [] # Conflicts with ASG in HA mode when using mixed-policy + + content { + market_type = "spot" + } + } + + dynamic "tag_specifications" { + for_each = ["instance", "network-interface", "volume"] + + content { + resource_type = tag_specifications.value + + tags = merge(data.aws_default_tags.current.tags, { Name = var.name }, var.tags) + } + } + + user_data = data.cloudinit_config.this.rendered + + credit_specification { + cpu_credits = var.credit_specification + } + + # Enforce IMDSv2 + metadata_options { + http_endpoint = "enabled" + http_tokens = "required" + } + + tags = var.tags +} + +resource "aws_instance" "main" { + #checkov:skip=CKV2_AWS_41:False positive, IAM role is attached via the launch template. + count = var.ha_mode ? 0 : 1 + + region = var.region + + launch_template { + id = aws_launch_template.main.id + version = var.auto_rollout ? aws_launch_template.main.latest_version : "$Latest" + } + + tags = var.tags + + lifecycle { + ignore_changes = [ + source_dest_check, + user_data, + tags + ] + } +} diff --git a/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/iam.tf b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/iam.tf new file mode 100644 index 0000000..9e9afe3 --- /dev/null +++ b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/iam.tf @@ -0,0 +1,145 @@ +resource "aws_iam_instance_profile" "main" { + name = var.name + role = aws_iam_role.main.name + + tags = var.tags +} + +data "aws_iam_policy_document" "main" { + statement { + sid = "ManageNetworkInterface" + effect = "Allow" + actions = [ + "ec2:AttachNetworkInterface", + "ec2:ModifyNetworkInterfaceAttribute", + ] + resources = [ + "*", + ] + condition { + test = "StringEquals" + variable = "ec2:ResourceTag/Name" + values = [local.instance_name] + } + } + + dynamic "statement" { + for_each = length(var.eip_allocation_ids) != 0 ? ["x"] : [] + + content { + sid = "ManageEIPAllocation" + effect = "Allow" + actions = [ + "ec2:AssociateAddress", + "ec2:DisassociateAddress", + ] + resources = [ + "arn:${data.aws_partition.current.partition}:ec2:${data.aws_region.current.region}:${data.aws_caller_identity.current.account_id}:elastic-ip/${var.eip_allocation_ids[0]}", + ] + } + } + + dynamic "statement" { + for_each = length(var.eip_allocation_ids) != 0 ? ["x"] : [] + + content { + sid = "ManageEIPNetworkInterface" + effect = "Allow" + actions = [ + "ec2:AssociateAddress", + "ec2:DisassociateAddress", + ] + resources = [ + "arn:${data.aws_partition.current.partition}:ec2:${data.aws_region.current.region}:${data.aws_caller_identity.current.account_id}:network-interface/*" + ] + condition { + test = "StringEquals" + variable = "ec2:ResourceTag/Name" + values = [local.instance_name] + } + } + } + + dynamic "statement" { + for_each = var.use_cloudwatch_agent ? ["x"] : [] + + content { + sid = "CWAgentSSMParameter" + effect = "Allow" + actions = [ + "ssm:GetParameter" + ] + resources = [ + local.cwagent_param_arn + ] + } + } + + dynamic "statement" { + for_each = var.use_cloudwatch_agent ? ["x"] : [] + + content { + sid = "CWAgentMetrics" + effect = "Allow" + actions = [ + "cloudwatch:PutMetricData" + ] + resources = [ + "*" + ] + condition { + test = "StringEquals" + variable = "cloudwatch:namespace" + values = [var.cloudwatch_agent_configuration.namespace] + } + } + } + + dynamic "statement" { + for_each = var.attach_ssm_policy ? ["x"] : [] + + content { + sid = "SessionManager" + effect = "Allow" + actions = [ + "ssmmessages:CreateDataChannel", + "ssmmessages:OpenDataChannel", + "ssmmessages:CreateControlChannel", + "ssmmessages:OpenControlChannel", + "ssm:UpdateInstanceInformation", + ] + resources = [ + "*" + ] + } + } +} + +resource "aws_iam_policy" "main" { + name = var.name + policy = data.aws_iam_policy_document.main.json + tags = var.tags +} + +data "aws_iam_policy_document" "instance_assume_role_policy" { + statement { + actions = ["sts:AssumeRole"] + principals { + type = "Service" + identifiers = ["ec2.${data.aws_partition.current.dns_suffix}"] + } + effect = "Allow" + } +} + +resource "aws_iam_role" "main" { + name = var.name + assume_role_policy = data.aws_iam_policy_document.instance_assume_role_policy.json + permissions_boundary = var.permissions_boundary_arn + tags = var.tags +} + +resource "aws_iam_role_policy_attachment" "main" { + role = aws_iam_role.main.name + policy_arn = aws_iam_policy.main.arn +} diff --git a/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/main.tf b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/main.tf new file mode 100644 index 0000000..848014e --- /dev/null +++ b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/main.tf @@ -0,0 +1,111 @@ +locals { + is_arm = can(regex("[a-zA-Z]+\\d+g[a-z]*\\..+", var.instance_type)) + ami_id = var.ami_id != null ? var.ami_id : data.aws_ami.main[0].id + cwagent_param_arn = var.use_cloudwatch_agent ? var.cloudwatch_agent_configuration_param_arn != null ? var.cloudwatch_agent_configuration_param_arn : aws_ssm_parameter.cloudwatch_agent_config[0].arn : null + cwagent_param_name = var.use_cloudwatch_agent ? var.cloudwatch_agent_configuration_param_arn != null ? trimprefix(data.aws_arn.ssm_param[0].resource, "parameter") : aws_ssm_parameter.cloudwatch_agent_config[0].name : null + security_groups = concat(var.use_default_security_group ? [aws_security_group.main.id] : [], var.additional_security_group_ids) + instance_name = lookup(var.tags, "Name", var.name) +} + +data "aws_region" "current" { + region = var.region +} + +data "aws_partition" "current" {} +data "aws_caller_identity" "current" {} + +data "aws_vpc" "main" { + region = var.region + + id = var.vpc_id +} + +resource "aws_security_group" "main" { + #checkov:skip=CKV_AWS_24:False positive, ingress CIDR blocks on port 22 default to "[]" + #checkov:skip=CKV_AWS_382:Security group is used for NAT instance, intended to egress to the world + region = var.region + + name = var.name + description = "Used in ${var.name} instance of fck-nat in subnet ${var.subnet_id}" + vpc_id = data.aws_vpc.main.id + + ingress { + description = "Unrestricted ingress from within VPC" + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = data.aws_vpc.main.cidr_block_associations[*].cidr_block + ipv6_cidr_blocks = var.use_nat64 ? ["${data.aws_vpc.main.ipv6_cidr_block}"] : null + } + + dynamic "ingress" { + for_each = var.use_ssh && (length(var.ssh_cidr_blocks.ipv4) > 0 || length(var.ssh_cidr_blocks.ipv6) > 0) ? [1] : [] # + + content { + description = "SSH access" + from_port = 22 + to_port = 22 + protocol = "tcp" + cidr_blocks = var.ssh_cidr_blocks.ipv4 + ipv6_cidr_blocks = var.ssh_cidr_blocks.ipv6 + } + } + + egress { + description = "Unrestricted egress" + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = ["0.0.0.0/0"] + ipv6_cidr_blocks = ["::/0"] + } + + tags = merge({ Name = var.name }, var.tags) +} + +resource "aws_network_interface" "main" { + region = var.region + + description = "${var.name} static private ENI" + subnet_id = var.subnet_id + security_groups = [aws_security_group.main.id] + source_dest_check = false + ipv6_address_count = var.use_nat64 ? 1 : null + + tags = merge({ Name = var.name }, var.tags) +} + +resource "aws_route" "main" { + for_each = var.update_route_tables || var.update_route_table ? merge(var.route_tables_ids, var.route_table_id != null ? { RESERVED_FKC_NAT = var.route_table_id } : {}) : {} + + region = var.region + + route_table_id = each.value + destination_cidr_block = "0.0.0.0/0" + network_interface_id = aws_network_interface.main.id +} + +resource "aws_route" "main_ipv6" { + for_each = (var.update_route_tables || var.update_route_table) && var.use_nat64 ? var.route_tables6_ids : {} + + region = var.region + + route_table_id = each.value + destination_ipv6_cidr_block = "64:ff9b::/96" + network_interface_id = aws_network_interface.main.id +} + +resource "aws_ssm_parameter" "cloudwatch_agent_config" { + count = var.use_cloudwatch_agent && var.cloudwatch_agent_configuration_param_arn == null ? 1 : 0 + + region = var.region + + name = "${var.name}-cloudwatch-agent-config" + key_id = var.kms_key_id + type = "SecureString" + value = templatefile("${path.module}/templates/cwagent.json", { + METRICS_COLLECTION_INTERVAL = var.cloudwatch_agent_configuration.collection_interval, + METRICS_NAMESPACE = var.cloudwatch_agent_configuration.namespace + METRICS_ENDPOINT_OVERRIDE = var.cloudwatch_agent_configuration.endpoint_override + }) +} diff --git a/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/output.tf b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/output.tf new file mode 100644 index 0000000..8bcc7b4 --- /dev/null +++ b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/output.tf @@ -0,0 +1,104 @@ +output "name" { + description = "Name used for resources created within the module" + value = var.name +} + +output "vpc_id" { + description = "VPC ID to which the fck-nat instance is deployed into" + value = var.vpc_id +} + +output "subnet_id" { + description = "Subnet ID to which the fck-nat instance is deployed into" + value = var.subnet_id +} + +output "encryption" { + description = "Whether or not fck-nat instance EBS volumes are encrypted" + value = var.encryption +} + +output "kms_key_id" { + description = "KMS key ID to use for encrypting fck-nat instance EBS volumes" + value = var.kms_key_id +} + +output "ha_mode" { + description = "Whether or not high-availability mode is enabled via autoscaling group" + value = var.ha_mode +} + +output "instance_type" { + description = "Instance type used for the fck-nat instance" + value = aws_launch_template.main.instance_type +} + +output "ha_additional_instance_types" { + description = "List of additional instance types to pass to the ASG, helpful when using spot instances with low availabiltiy" + value = var.ha_additional_instance_types +} + +output "ami_id" { + description = "AMI to use for the NAT instance. Uses fck-nat latest arm64 AMI in the region if none provided" + value = aws_launch_template.main.image_id +} + +output "eni_id" { + description = "The ID of the static ENI used by the fck-nat instance" + value = aws_network_interface.main.id +} + +output "eni_arn" { + description = "The ARN of the static ENI used by the fck-nat instance" + value = aws_network_interface.main.arn +} + +output "security_group_id" { + description = "Deprecated. The ID of the security group used by fck-nat ENIs" + value = aws_security_group.main.id +} + +output "security_group_ids" { + description = "List of security group IDs used by fck-nat ENIs" + value = local.security_groups +} + +output "role_arn" { + description = "The ARN of the role used by the fck-nat instance profile" + value = aws_iam_role.main.arn +} + +output "role_name" { + description = "The ARN of the role used by the fck-nat instance profile" + value = aws_iam_role.main.name +} + +output "instance_profile_arn" { + description = "The ARN of the instance profile used by the fck-nat instance" + value = aws_iam_instance_profile.main.arn +} + +output "launch_template_id" { + description = "The ID of the launch template used to spawn fck-nat instances" + value = aws_launch_template.main.arn +} + +output "instance_arn" { + description = "The ARN of the fck-nat instance if running in non-HA mode" + value = var.ha_mode ? null : aws_instance.main[0].arn +} + +output "instance_public_ip" { + description = "The public IP address of the fck-nat instance if running in non-HA mode" + value = var.ha_mode ? null : aws_instance.main[0].public_ip +} + +output "autoscaling_group_arn" { + description = "The ARN of the autoscaling group if running in HA mode" + value = var.ha_mode ? aws_autoscaling_group.main[0].arn : null +} + +output "cw_agent_config_ssm_parameter_arn" { + description = "The ARN of the SSM parameter containing the Cloudwatch agent config" + value = local.cwagent_param_arn +} \ No newline at end of file diff --git a/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/provider.tf b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/provider.tf new file mode 100644 index 0000000..2b955f7 --- /dev/null +++ b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/provider.tf @@ -0,0 +1,9 @@ +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 6.0" # Required for region variable on resources + } + } + required_version = "~> 1.9" # For cross-object referencing on variables validation +} diff --git a/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/variables.tf b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/variables.tf new file mode 100644 index 0000000..ccf2b0a --- /dev/null +++ b/conformance/fixtures/registry/RaJiska/fck-nat/1.6.1/input/variables.tf @@ -0,0 +1,216 @@ +variable "name" { + description = "Name used for resources created within the module" + type = string +} + +variable "region" { + description = "Region in which to create resources, defaults to provider region if not set" + type = string + default = null +} + +variable "vpc_id" { + description = "VPC ID to deploy the NAT instance into" + type = string +} + +variable "subnet_id" { + description = "Subnet ID to deploy the NAT instance into" + type = string +} + +variable "update_route_table" { + description = "Deprecated. Use update_route_tables instead" + type = bool + default = false +} + +variable "update_route_tables" { + description = "Whether or not to update the route tables with the NAT instance" + type = bool + default = false +} + +variable "route_table_id" { + description = "Deprecated. Use route_tables_ids instead" + type = string + default = null +} + +variable "route_tables_ids" { + description = "Route tables to update. Only valid if update_route_tables is true" + type = map(string) + default = {} +} + +variable "route_tables6_ids" { + description = "Route tables to update for IPv6. Only valid if update_route_tables and use_nat64 are true" + type = map(string) + default = {} +} + +variable "encryption" { + description = "Whether or not to encrypt the EBS volume" + type = bool + default = true +} + +variable "kms_key_id" { + description = "Will use the provided KMS key ID to encrypt the EBS volume. Uses the default KMS key if none provided" + type = string + default = null +} + +variable "ha_mode" { + description = "Whether or not high-availability mode should be enabled via autoscaling group" + type = bool + default = true +} + +variable "auto_rollout" { + description = "Whether to automatically rollout configuration changes to the launch template (like AMI and cloud init)" + type = bool + default = false +} + +variable "instance_type" { + description = "Instance type to use for the NAT instance" + type = string + default = "t4g.micro" +} + +variable "ha_additional_instance_types" { + description = "List of additional instance types to pass to the ASG, helpful when using spot instances with low availabiltiy" + type = list(string) + default = [] + + validation { + condition = var.ha_mode || (!var.ha_mode && length(var.ha_additional_instance_types) == 0) + error_message = "You must set ha_mode to true to use multiple instance types." + } +} + +variable "ami_id" { + description = "AMI to use for the NAT instance. Uses fck-nat latest AMI in the region if none provided" + type = string + default = null +} + +variable "ebs_root_volume_size" { + description = "Size of the EBS root volume in GB" + type = number + default = 8 +} + +variable "eip_allocation_ids" { + description = "EIP allocation IDs to use for the NAT instance. Automatically assign a public IP if none is provided. Note: Currently only supports at most one EIP allocation." + type = list(string) + default = [] +} + +variable "attach_ssm_policy" { + description = "Whether to attach the minimum required IAM permissions to connect to the instance via SSM." + type = bool + default = true +} + +variable "credit_specification" { + description = "Customize the credit specification of the instance" + type = string + default = null +} + +variable "use_spot_instances" { + description = "Whether or not to use spot instances for running the NAT instance" + type = bool + default = false +} + +variable "use_cloudwatch_agent" { + description = "Whether or not to enable CloudWatch agent for the NAT instance" + type = bool + default = false +} + +variable "cloudwatch_agent_configuration" { + description = "CloudWatch configuration for the NAT instance" + type = object({ + namespace = optional(string, "fck-nat"), + collection_interval = optional(number, 60), + endpoint_override = optional(string, "") + }) + default = { + namespace = "fck-nat" + collection_interval = 60 + endpoint_override = "" + } +} + +variable "cloudwatch_agent_configuration_param_arn" { + description = "ARN of the SSM parameter containing the CloudWatch agent configuration. If none provided, creates one" + type = string + default = null +} + +variable "use_default_security_group" { + description = "Whether or not to use the default security group for the NAT instance" + type = bool + default = true +} + +variable "additional_security_group_ids" { + description = "A list of identifiers of security groups to be added for the NAT instance" + type = list(string) + default = [] +} + +variable "use_nat64" { + description = "Whether or not to enable NAT64 on the NAT instance. Your VPC and at least the public subnet this NAT instance is deployed into must support IPv6" + type = bool + default = false +} + +variable "use_ssh" { + description = "Whether or not to enable SSH access to the NAT instance" + type = bool + default = false +} + +variable "ssh_key_name" { + description = "Name of the SSH key to use for the NAT instance. SSH access will be enabled only if a key name is provided" + type = string + default = null +} + +variable "ssh_cidr_blocks" { + description = "CIDR blocks to allow SSH access to the NAT instance from" + type = object({ + ipv4 = optional(list(string), []) + ipv6 = optional(list(string), []) + }) + default = { + ipv4 = [], + ipv6 = [] + } +} + +variable "permissions_boundary_arn" { + description = "ARN of the IAM policy to use as a permissions boundary for the NAT instance IAM role" + type = string + default = null +} + +variable "tags" { + description = "Tags to apply to resources created within the module" + type = map(string) + default = {} +} + +variable "cloud_init_parts" { + description = "Cloud-init parts to add to the user data script" + type = list(object({ + content = string + content_type = string + })) + default = [] +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/LICENSE b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/LICENSE new file mode 100644 index 0000000..d67a09a --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2022-present SPH Media + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/fixture.json b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/fixture.json new file mode 100644 index 0000000..90296db --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/fixture.json @@ -0,0 +1,39 @@ +{ + "schema": 1, + "id": "registry/SPHTech-Platform/apigw/0.5.8", + "tier": "modules", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/SPHTech-Platform/apigw/aws/0.5.8", + "ref": "0.5.8", + "path": ".", + "archiveSha256": "b1e504a7cda7699790e368f94aa8deab49f045a83e9d6d23c05a48942c86651a", + "inputSha256": "b18a41010800473c1b06368c56c123d2e8f1076201ffe7f9beb889d4dc4bf2cf" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "data", + "depends_on", + "for_each", + "for_expressions", + "functions", + "interpolation", + "locals", + "modules", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/data.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/data.tf new file mode 100644 index 0000000..69103b4 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/data.tf @@ -0,0 +1,49 @@ +data "aws_region" "current" {} + +data "aws_caller_identity" "current" {} + +data "aws_iam_policy_document" "cloudwatch_logs_allow_apigw" { + #checkov:skip=CKV_AWS_356: "Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions" + statement { + sid = "Enable IAM User Permissions" + effect = "Allow" + + principals { + type = "AWS" + identifiers = [ + "arn:aws:iam::${data.aws_caller_identity.current.account_id}:root", + ] + } + + actions = [ + "kms:*", + ] + resources = ["*"] + } + + statement { + sid = "Allow logs KMS access" + effect = "Allow" + + principals { + type = "Service" + identifiers = [ + format( + "logs.%s.amazonaws.com", + data.aws_region.current.name + ) + ] + } + + actions = [ + "kms:Encrypt*", + "kms:Decrypt*", + "kms:ReEncrypt*", + "kms:GenerateDataKey*", + "kms:Describe*" + ] + #checkov:skip=CKV_AWS_109:Not passing cw arn to avoid cyclic dependency + #checkov:skip=CKV_AWS_111:Not passing cw arn to avoid cyclic dependency + resources = ["*"] + } +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/iam.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/iam.tf new file mode 100644 index 0000000..3437e5f --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/iam.tf @@ -0,0 +1,24 @@ +module "apigw_cwl_role" { + #checkov:skip=CKV_TF_1:Ensure Terraform module sources use a commit hash + source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role" + version = "~> 5.9.2" + + trusted_role_services = [ + "apigateway.amazonaws.com" + ] + + create_role = var.enable_global_apigw_logging + + role_name_prefix = "apigw-cwl-global" + role_requires_mfa = false + + custom_role_policy_arns = [ + "arn:aws:iam::aws:policy/service-role/AmazonAPIGatewayPushToCloudWatchLogs", + ] +} + +resource "aws_api_gateway_account" "api_gateway_account" { + count = var.enable_global_apigw_logging ? 1 : 0 + + cloudwatch_role_arn = module.apigw_cwl_role.iam_role_arn +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/main.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/main.tf new file mode 100644 index 0000000..4eab26e --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/main.tf @@ -0,0 +1,139 @@ +locals { + body_spec = var.enable_resource_policy && var.resource_policy_json != null && var.resource_policy_json != "" ? ( + can(jsondecode(var.body_template)) ? ( + jsonencode(merge( + jsondecode(var.body_template), + { "x-amazon-apigateway-policy" = jsondecode(var.resource_policy_json) } + )) + ) : ( + format("%s\nx-amazon-apigateway-policy:\n %s", var.body_template, jsonencode(jsondecode(var.resource_policy_json))) + ) + ) : var.body_template +} + +resource "aws_api_gateway_rest_api" "api" { + body = local.body_spec + policy = var.enable_resource_policy && var.resource_policy_json != null && var.resource_policy_json != "" ? var.resource_policy_json : null + name = var.name + put_rest_api_mode = var.put_rest_api_mode + + endpoint_configuration { + types = var.types + } + lifecycle { + create_before_destroy = true + } + + tags = merge( + { + Name = var.name + }, + var.tags + ) +} + +resource "aws_api_gateway_deployment" "deployment" { + rest_api_id = aws_api_gateway_rest_api.api.id + + triggers = { + redeployment = sha1(jsonencode([ + aws_api_gateway_rest_api.api.body, + var.enable_resource_policy ? var.resource_policy_json : null + ] + )) + } + + depends_on = [ + aws_api_gateway_rest_api.api + ] + + lifecycle { + create_before_destroy = true + } +} + +resource "aws_api_gateway_stage" "stage" { + #checkov:skip=CKV2_AWS_51: Since its a community module, its up to the application's discretion. + #checkov:skip=CKV_AWS_120:Caching should be optional as caching is disabled for some applications + #checkov:skip=CKV2_AWS_29:Since apigw can be protected by Cloudfront + #checkov:skip=CKV2_AWS_4:There is no loggging level defined for aws_api_gateway_stage. It is only available for aws_api_gateway_method_settings + deployment_id = aws_api_gateway_deployment.deployment.id + rest_api_id = aws_api_gateway_rest_api.api.id + + stage_name = var.stage + variables = merge( + { for v in values(aws_api_gateway_vpc_link.vpc_link) : v.name => v.id }, + { for v in values(aws_apigatewayv2_vpc_link.vpc_link) : v.name => v.id }, + var.stage_variables + ) + xray_tracing_enabled = true + cache_cluster_enabled = var.cache_cluster_enabled + cache_cluster_size = var.cache_cluster_size + + access_log_settings { + destination_arn = aws_cloudwatch_log_group.log_group.arn + format = jsonencode(var.log_format) + } + + depends_on = [aws_api_gateway_account.api_gateway_account] + + tags = var.tags + +} + +resource "aws_cloudwatch_log_group" "log_group" { + #checkov:skip=CKV_AWS_338: Don't validate log retention days in shareable module + #checkov:skip=CKV_AWS_158: Using default key in KMS instead of CMK + #Custom name if it is imported + name = var.log_group_name != "" ? var.log_group_name : "${var.name}-access-logs" + retention_in_days = var.log_retention_in_days + kms_key_id = var.log_kms_key_id != "" ? var.log_kms_key_id : aws_kms_key.cloudwatch[0].arn + + tags = { + Name = var.log_group_name != "" ? var.log_group_name : "${var.name}-access-logs" + } + +} + +resource "aws_kms_key" "cloudwatch" { + count = var.log_kms_key_id != "" ? 0 : 1 + + description = "Key for api gateway Cloudwatch log encryption" + enable_key_rotation = true + policy = data.aws_iam_policy_document.cloudwatch_logs_allow_apigw.json +} + +resource "aws_api_gateway_method_settings" "method_settings" { + #checkov:skip=CKV_AWS_225:Caching should be optional as caching is disabled for some applications + rest_api_id = aws_api_gateway_rest_api.api.id + stage_name = aws_api_gateway_stage.stage.stage_name + method_path = "*/*" + + settings { + metrics_enabled = var.metrics_enabled + logging_level = var.logging_level + data_trace_enabled = var.data_trace_enabled + throttling_burst_limit = var.throttling_burst_limit + throttling_rate_limit = var.throttling_rate_limit + cache_data_encrypted = var.cache_data_encrypted + caching_enabled = var.caching_enabled + cache_ttl_in_seconds = var.cache_ttl + } +} + +resource "aws_api_gateway_vpc_link" "vpc_link" { + for_each = var.vpc_links + + name = try(each.value.name, each.key) + description = each.value.description + target_arns = each.value.target_arns +} + +resource "aws_apigatewayv2_vpc_link" "vpc_link" { + for_each = var.vpc_links_v2 + + name = try(each.value.name, each.key) + security_group_ids = each.value.security_group_ids + subnet_ids = each.value.subnet_ids + tags = var.tags +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/outputs.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/outputs.tf new file mode 100644 index 0000000..98be269 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/outputs.tf @@ -0,0 +1,54 @@ +output "aws_api_gateway_rest_api_id" { + value = aws_api_gateway_rest_api.api.id + description = "REST API id of the created api" +} + +output "aws_api_gateway_execution_arn" { + value = aws_api_gateway_rest_api.api.execution_arn + description = "The execution ARN part to be used in lambda_permission source_arn when allowing API Gateway to invoke a Lambda function" +} + +output "aws_api_gateway_stage_name" { + value = aws_api_gateway_stage.stage.stage_name + description = "Stage name of the deployed api gateway stage" +} + +output "aws_api_gateway_log_group_arn" { + value = aws_cloudwatch_log_group.log_group.arn + description = "ARN of the CloudWatch log group for API Gateway access logs" +} + +output "aws_api_gateway_stage_execution_arn" { + value = aws_api_gateway_stage.stage.execution_arn + description = "The execution ARN part to be used in lambda_permission source_arn when allowing API Gateway to invoke a Lambda function" +} + +output "aws_api_gateway_stage_invoke_url" { + value = aws_api_gateway_stage.stage.invoke_url + description = "The URL to invoke the API pointing to the stage" +} + +output "aws_api_gateway_vpc_link_id" { + value = { for k, v in values(aws_api_gateway_vpc_link.vpc_link)[*] : v.name => v.id } + description = "VPC link v1 IDs keyed by VPC link name" +} + +output "aws_apigatewayv2_vpc_link_id" { + value = { for v in values(aws_apigatewayv2_vpc_link.vpc_link) : v.name => v.id } + description = "VPC link v2 IDs keyed by VPC link name" +} + +output "aws_api_gateway_rest_api_root_resource_id" { + value = aws_api_gateway_rest_api.api.root_resource_id + description = "Root resource ID of the API Gateway REST API" +} + +output "aws_api_gateway_stage_arn" { + value = aws_api_gateway_stage.stage.arn + description = "ARN (for management) of apigw stage, use this when attaching Web ACL" +} + +output "body_spec" { + value = local.body_spec + description = "The computed OpenAPI body specification after merging resource policy if enabled." +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/resource_policy.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/resource_policy.tf new file mode 100644 index 0000000..2beedf4 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/resource_policy.tf @@ -0,0 +1,11 @@ +# Note: Resource Policies are natively embedded directly into the OpenAPI specification +# body via x-amazon-apigateway-policy in main.tf (local.body_spec). +# This removes legacy policy attachments from state without issuing a delete. Destroying +# the legacy resource would otherwise clear the policy applied by the OpenAPI import. +removed { + from = aws_api_gateway_rest_api_policy.policy_attachment + + lifecycle { + destroy = false + } +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/variables.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/variables.tf new file mode 100644 index 0000000..93e5354 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/variables.tf @@ -0,0 +1,182 @@ +################################################################################ +# API Gateway +################################################################################ + +variable "name" { + description = "Name of the API gateway" + type = string +} + +variable "stage" { + description = "Name of the API gateway stage" + type = string +} + +variable "body_template" { + description = "OpenAPI specification template" + type = string + default = "" +} + +variable "stage_variables" { + description = "Stage variables for the API gateway stage" + type = map(any) + default = {} +} + +variable "types" { + description = "Name of the API gateway stage" + type = list(string) + default = ["REGIONAL"] +} + +variable "throttling_burst_limit" { + description = "The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity." + type = number + default = 1000 +} + +variable "throttling_rate_limit" { + description = "The API request steady-state rate limit" + type = number + default = 1000 +} + +variable "metrics_enabled" { + description = "Specifies whether Amazon CloudWatch metrics are enabled for this method." + type = bool + default = false +} + +variable "logging_level" { + description = "Specifies the logging level for this method." + type = string + default = "ERROR" +} + +variable "data_trace_enabled" { + description = "Specifies the logging level for this method." + type = bool + default = false +} + +variable "cache_cluster_enabled" { + description = "Specifies whether a cache cluster is enabled for the stage." + type = bool + default = false +} + +variable "cache_data_encrypted" { + description = "Specifies whether a cache data needs to be encrypted." + type = bool + default = true +} + +variable "cache_cluster_size" { + description = "The size of the cache cluster for the stage, if enabled" + type = string + default = "0.5" +} + +variable "cache_ttl" { + description = "The cache TTL of the stage" + type = number + default = 300 +} + +variable "log_group_name" { + description = "Custom log group name." + type = string + default = "" +} + +variable "log_format" { + description = "Cloudwatch log format" + type = map(string) + default = { + requestId = "$context.requestId" + extendedRequestId = "$context.extendedRequestId" + ip = "$context.identity.sourceIp" + caller = "$context.identity.caller" + user = "$context.identity.user" + requestTime = "$context.requestTime" + httpMethod = "$context.httpMethod" + resourcePath = "$context.resourcePath" + status = "$context.status" + protocol = "$context.protocol" + responseLength = "$context.responseLength" + } +} + +variable "log_retention_in_days" { + description = "Cloudwatch log retention in days" + type = number + default = 7 +} + +variable "log_kms_key_id" { + description = "The ARN of the KMS Key to use when encrypting log data" + type = string + default = "" +} + + +variable "caching_enabled" { + description = "Specifies whether caching is enabled for the API gateway method" + type = bool + default = false +} + +variable "vpc_links" { + description = "List of VPC links for REST APIs. key in the map denotes the vpc link name" + type = map( + object({ + description = string + name = optional(string) + target_arns = list(string) + }) + ) + default = {} +} + +variable "vpc_links_v2" { + description = "VPC links for API Gateway v2 HTTP APIs. The map key denotes the VPC link name." + type = map( + object({ + name = optional(string) + security_group_ids = list(string) + subnet_ids = list(string) + }) + ) + default = {} +} + +variable "enable_global_apigw_logging" { + description = "Enable global apigw logging" + type = bool + default = false +} + +variable "enable_resource_policy" { + description = "Enable resource policy to allow other resources to Invoke this API" + type = bool + default = false +} + +variable "resource_policy_json" { + description = "Resource policy as JSON to attach" + type = string + default = null +} + +variable "tags" { + description = "A map of tags to add to all resources" + type = map(string) + default = {} +} + +variable "put_rest_api_mode" { + description = "Mode when updating the REST API (overwrite or merge). Overwrite ensures deleted routes are removed from AWS Console." + type = string + default = "overwrite" +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/versions.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/versions.tf new file mode 100644 index 0000000..f2ee240 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.7" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.67.0" + } + } +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/LICENSE b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/LICENSE new file mode 100644 index 0000000..d67a09a --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2022-present SPH Media + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/fixture.json b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/fixture.json new file mode 100644 index 0000000..8319017 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/fixture.json @@ -0,0 +1,34 @@ +{ + "schema": 1, + "id": "registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/SPHTech-Platform/apigw/aws/0.5.8", + "ref": "0.5.8", + "path": "modules/custom_domain", + "archiveSha256": "b1e504a7cda7699790e368f94aa8deab49f045a83e9d6d23c05a48942c86651a", + "inputSha256": "d71f1457d5cd7e9929cdfa575175279cfe97ce88c2339ec4c986b2f8d9818387" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "count", + "for_each", + "functions", + "moved", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/main.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/main.tf new file mode 100644 index 0000000..63f272c --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/main.tf @@ -0,0 +1,54 @@ +# Provisioned only for regional types. @todo: Enhance for other types as well +resource "aws_api_gateway_domain_name" "domain_regional" { + count = var.endpoint_type == "REGIONAL" ? 1 : 0 + + domain_name = var.domain_name + regional_certificate_arn = var.cert_arn == "" ? aws_acm_certificate.cert[0].arn : var.cert_arn + security_policy = var.security_policy + endpoint_access_mode = var.endpoint_access_mode + + endpoint_configuration { + types = ["REGIONAL"] + } + +} + +resource "aws_api_gateway_domain_name" "domain_edge" { + count = var.endpoint_type == "EDGE" ? 1 : 0 + + domain_name = var.domain_name + certificate_arn = var.cert_arn == "" ? aws_acm_certificate.cert[0].arn : var.cert_arn + security_policy = var.security_policy + endpoint_access_mode = var.endpoint_access_mode + + endpoint_configuration { + types = ["EDGE"] + } +} + +resource "aws_api_gateway_base_path_mapping" "mapping" { + for_each = var.path_mappings + + api_id = each.value.api_id + stage_name = each.value.stage_name + base_path = each.value.base_path + + domain_name = var.endpoint_type == "EDGE" ? aws_api_gateway_domain_name.domain_edge[0].domain_name : aws_api_gateway_domain_name.domain_regional[0].domain_name +} + +resource "aws_acm_certificate" "cert" { + count = var.create_acm_cert ? 1 : 0 + + domain_name = var.domain_name + validation_method = "DNS" + key_algorithm = var.key_algorithm + + lifecycle { + create_before_destroy = true + } +} + +moved { + from = aws_api_gateway_domain_name.domain + to = aws_api_gateway_domain_name.domain_regional[0] +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/outputs.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/outputs.tf new file mode 100644 index 0000000..328d8ce --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/outputs.tf @@ -0,0 +1,14 @@ +output "arn" { + value = var.endpoint_type == "EDGE" ? aws_api_gateway_domain_name.domain_edge[0].arn : aws_api_gateway_domain_name.domain_regional[0].arn + description = "ARN of domain name." +} + +output "domain_name" { + value = var.endpoint_type == "EDGE" ? aws_api_gateway_domain_name.domain_edge[0].cloudfront_domain_name : aws_api_gateway_domain_name.domain_regional[0].regional_domain_name + description = "hostname for custom domain regional/cloudfront endpoint" +} + +output "hosted_zone_id" { + value = var.endpoint_type == "EDGE" ? aws_api_gateway_domain_name.domain_edge[0].cloudfront_zone_id : aws_api_gateway_domain_name.domain_regional[0].regional_zone_id + description = "hosted zone id of custom domain" +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/variables.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/variables.tf new file mode 100644 index 0000000..dcde20d --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/variables.tf @@ -0,0 +1,64 @@ +################################################################################ +# variables for Custom domain mapping sub module +################################################################################ + +variable "domain_name" { + description = "Custom domain name" + type = string +} + +variable "security_policy" { + description = "TLS Security Policy for the domain" + type = string + default = "TLS_1_2" +} + +variable "endpoint_access_mode" { + type = string + description = "Endpoint access mode for the custom domain. Required for domain names that use security policies that start with `SecurityPolicy_*`. Valid values: `BASIC`, `STRICT`." + default = null + validation { + condition = var.endpoint_access_mode == null || contains(["BASIC", "STRICT"], coalesce(var.endpoint_access_mode, "BASIC")) + error_message = "Valid values for endpoint_access_mode are BASIC, STRICT, or null." + } +} + +variable "create_acm_cert" { + description = "Create ACM cert. create_acm_cert and cert_arn Mutually exclusive. " + type = bool + default = false +} + +variable "cert_arn" { + description = "Cert ARN. Create ACM cert. create_acm_cert and cert_arn Mutually exclusive." + type = string + default = "" +} + +variable "key_algorithm" { + description = "Key algorithm for the cert" + type = string + default = "EC_prime256v1" +} + +variable "path_mappings" { + description = "List of stages the usage plan can be used " + type = map( + object({ + api_id = string + stage_name = string + base_path = string + }) + ) +} + +variable "endpoint_type" { + description = "Endpoint type." + type = string + default = "REGIONAL" + + validation { + condition = var.endpoint_type == "EDGE" || var.endpoint_type == "REGIONAL" + error_message = "endpoint_type must be 'EDGE' or 'REGIONAL'." + } +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/versions.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/versions.tf new file mode 100644 index 0000000..c3fc519 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/custom_domain/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.67.0" + } + } +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/LICENSE b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/LICENSE new file mode 100644 index 0000000..d67a09a --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2022-present SPH Media + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/fixture.json b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/fixture.json new file mode 100644 index 0000000..5fa1695 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/fixture.json @@ -0,0 +1,28 @@ +{ + "schema": 1, + "id": "registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response", + "tier": "smoke", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/SPHTech-Platform/apigw/aws/0.5.8", + "ref": "0.5.8", + "path": "modules/gateway_response", + "archiveSha256": "b1e504a7cda7699790e368f94aa8deab49f045a83e9d6d23c05a48942c86651a", + "inputSha256": "2aa996621d481c44ef2a6dfa3cda3eaa68a8dc65c1087a752e13dfc4f5032fe5" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "full" +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/input/main.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/input/main.tf new file mode 100644 index 0000000..bf085b1 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/input/main.tf @@ -0,0 +1,8 @@ +resource "aws_api_gateway_gateway_response" "this" { + rest_api_id = var.rest_api_id + response_type = var.response_type + status_code = var.status_code + + response_templates = var.gateway_responses + response_parameters = var.response_parameters +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/input/variables.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/input/variables.tf new file mode 100644 index 0000000..e5ce59f --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/input/variables.tf @@ -0,0 +1,29 @@ +variable "rest_api_id" { + description = "The ID of the REST API" + type = string + default = "" +} + +variable "response_type" { + description = "The response type of the gateway response" + type = string + default = "" +} + +variable "status_code" { + description = "The status code of the gateway response" + type = string + default = "" +} + +variable "gateway_responses" { + description = "map of gateway responses" + type = map(any) + default = {} +} + +variable "response_parameters" { + description = "map of response parameters" + type = map(any) + default = {} +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/input/versions.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/input/versions.tf new file mode 100644 index 0000000..5d3bb09 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/gateway_response/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.9" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.20.0" + } + } +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/LICENSE b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/LICENSE new file mode 100644 index 0000000..d67a09a --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2022-present SPH Media + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/fixture.json b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/fixture.json new file mode 100644 index 0000000..e273aeb --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/fixture.json @@ -0,0 +1,33 @@ +{ + "schema": 1, + "id": "registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/SPHTech-Platform/apigw/aws/0.5.8", + "ref": "0.5.8", + "path": "modules/usage_plan", + "archiveSha256": "b1e504a7cda7699790e368f94aa8deab49f045a83e9d6d23c05a48942c86651a", + "inputSha256": "a537ab9230573cfde0187fe5e38de5882224e5a4200213ee8739281706d1a61e" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "conditionals", + "dynamic", + "for_each", + "interpolation", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/main.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/main.tf new file mode 100644 index 0000000..5b49701 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/main.tf @@ -0,0 +1,56 @@ +resource "aws_api_gateway_usage_plan" "usage_plan" { + name = var.name + description = "Usage plan created for ${var.name}" + + dynamic "api_stages" { + for_each = var.stages + + content { + api_id = api_stages.value.api_id + stage = api_stages.value.stage + } + + } + + dynamic "quota_settings" { + for_each = var.quota_settings_unlimited == true ? [1] : [] + content { + limit = var.limit + offset = var.offset + period = var.period + } + } + + dynamic "throttle_settings" { + for_each = var.enable_throttling == true ? [1] : [] + content { + burst_limit = var.burst_limit + rate_limit = var.rate_limit + } + } + + tags = { + Name = var.name + } +} + +resource "aws_api_gateway_api_key" "key" { + for_each = var.api_keys + + name = each.value.key_name + description = "API Key for ${each.value.key_name}" + enabled = each.value.enabled + + tags = { + Name = each.value.key_name + } + +} + +resource "aws_api_gateway_usage_plan_key" "main" { + for_each = var.api_keys + + key_id = aws_api_gateway_api_key.key[each.value.key_name].id + key_type = "API_KEY" + usage_plan_id = aws_api_gateway_usage_plan.usage_plan.id +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/outputs.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/outputs.tf new file mode 100644 index 0000000..6a92e60 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/outputs.tf @@ -0,0 +1,6 @@ +output "api_keys_id" { + description = "ID of the api keys" + value = { + for k, v in aws_api_gateway_api_key.key : k => v.id + } +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/variables.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/variables.tf new file mode 100644 index 0000000..3909ef2 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/variables.tf @@ -0,0 +1,78 @@ +################################################################################ +# Usage plan configs used for API Gateway module +################################################################################ + +variable "name" { + description = "Usage plan name" + type = string +} + +variable "default_tags" { + default = { + } + description = "Default Tags for Auto Scaling Group" + type = map(string) +} + +variable "stages" { + description = "List of stages the usage plan can be used " + type = map( + object({ + api_id = string + stage = string + }) + ) +} + +variable "quota_settings_unlimited" { + description = "Specifies whether there is a unlimited quota limit ." + type = bool + default = false +} + +variable "limit" { + description = "The maximum number of requests that can be made in a given time period." + type = number + default = 5000 +} + +variable "offset" { + description = "The number of requests subtracted from the given limit in the initial time period." + type = number + default = 2 +} + +variable "period" { + description = "The time period in which the limit applies. Valid values are DAY, WEEK or MONTH." + type = string + default = "MONTH" +} + +variable "enable_throttling" { + description = "whether to enable throttling" + type = bool + default = false +} + +variable "burst_limit" { + description = "The maximum number of requests that API Gateway allows to be bursted across the entire API at the same moment." + type = number + default = 5000 +} + +variable "rate_limit" { + description = "The rate limit, as a number of requests per second, to apply to this usage plan." + type = number + default = 100 +} + +variable "api_keys" { + description = "List of api keys created and assigned to the usage plan" + type = map( + object({ + key_name = string + enabled = bool + }) + ) + default = {} +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/versions.tf b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/versions.tf new file mode 100644 index 0000000..c3fc519 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/apigw/0.5.8/modules/usage_plan/input/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.67.0" + } + } +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/LICENSE b/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/LICENSE new file mode 100644 index 0000000..d67a09a --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2022-present SPH Media + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/fixture.json b/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/fixture.json new file mode 100644 index 0000000..2ff9ca7 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/fixture.json @@ -0,0 +1,33 @@ +{ + "schema": 1, + "id": "registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache", + "tier": "advanced", + "origin": "registry", + "source": { + "url": "https://registry.terraform.io/modules/SPHTech-Platform/cloudfront-policies/aws/1.0.0", + "ref": "1.0.0", + "path": "modules/cache", + "archiveSha256": "320bca4ee70aaa3e7ed208858077fc72e92949dfd86a2172a5ad5716605554fa", + "inputSha256": "11d189760aa321795e5906434b777eb78f0475d3470a8299196bb97e9c520ece" + }, + "license": "MIT", + "providers": [ + "aws" + ], + "features": [ + "dynamic", + "for_each", + "for_expressions", + "heredoc", + "outputs", + "required_providers", + "resources", + "terraform", + "variables" + ], + "targets": [ + "cdk", + "pulumi" + ], + "support": "partial" +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/input/main.tf b/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/input/main.tf new file mode 100644 index 0000000..6273db6 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/input/main.tf @@ -0,0 +1,51 @@ +resource "aws_cloudfront_cache_policy" "this" { + name = var.name + comment = var.description + + default_ttl = var.default_ttl + min_ttl = var.min_ttl + max_ttl = var.max_ttl + + parameters_in_cache_key_and_forwarded_to_origin { + enable_accept_encoding_brotli = contains(var.supported_compression_formats, "BROTLI") + enable_accept_encoding_gzip = contains(var.supported_compression_formats, "GZIP") + + cookies_config { + cookie_behavior = var.cache_keys_in_cookies.behavior + + dynamic "cookies" { + for_each = contains(["whitelist", "allExcept"], var.cache_keys_in_cookies.behavior) ? [var.cache_keys_in_cookies] : [] + + content { + items = cookies.value.items + } + } + } + headers_config { + header_behavior = var.cache_keys_in_headers.behavior + + dynamic "headers" { + for_each = contains(["whitelist"], var.cache_keys_in_headers.behavior) ? [var.cache_keys_in_headers] : [] + + content { + items = headers.value.items + } + } + } + query_strings_config { + query_string_behavior = var.cache_keys_in_query_strings.behavior + + dynamic "query_strings" { + for_each = contains(["whitelist", "allExcept"], var.cache_keys_in_query_strings.behavior) ? [var.cache_keys_in_query_strings] : [] + + content { + items = query_strings.value.items + } + } + } + } + + lifecycle { + create_before_destroy = true + } +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/input/outputs.tf b/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/input/outputs.tf new file mode 100644 index 0000000..f8bac12 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/input/outputs.tf @@ -0,0 +1,9 @@ +output "id" { + description = "The identifier for the cache policy." + value = aws_cloudfront_cache_policy.this.id +} + +output "etag" { + description = "The current version of the cache policy." + value = aws_cloudfront_cache_policy.this.etag +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/input/variables.tf b/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/input/variables.tf new file mode 100644 index 0000000..09eb31b --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/cache/input/variables.tf @@ -0,0 +1,96 @@ +variable "name" { + description = "A unique name to identify the CloudFront Cache Policy." + type = string +} + +variable "description" { + description = "The description of the cache policy." + type = string + default = "Managed by Terraform." +} + +variable "default_ttl" { + description = "Amount of time, in seconds, that objects are allowed to remain in the CloudFront cache before CloudFront sends a new request to the origin server to check if the object has been updated. Defaults to `86400` (one day)." + type = number + default = 86400 +} + +variable "min_ttl" { + description = "Minimum amount of time, in seconds, that objects should remain in the CloudFront cache before a new request is sent to the origin to check for updates. Defaults to `1`." + type = number + default = 1 +} + +variable "max_ttl" { + description = "Maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. Defaults to `31536000` (one year)." + type = number + default = 31536000 +} + +variable "supported_compression_formats" { + description = "A list of compression formats to enable, when the viewer supports it. Accept-Encoding HTTP header is included in the cache key and in requests sent to the origin by CloudFront." + type = set(string) + default = ["BROTLI", "GZIP"] + + validation { + condition = alltrue([ + for format in var.supported_compression_formats : + contains(["BROTLI", "GZIP"], format) + ]) + error_message = "Valid values are `BROTLI` and `GZIP`." + } +} + +variable "cache_keys_in_cookies" { + description = < 0 ? [cors.value.access_control_expose_headers] : [] + + content { + items = access_control_expose_headers.value + } + } + access_control_max_age_sec = cors.value.access_control_max_age + } + } + + dynamic "custom_headers_config" { + for_each = length(var.custom_headers) > 0 ? [1] : [] + + content { + dynamic "items" { + for_each = var.custom_headers + + content { + header = items.value.name + value = items.value.value + override = items.value.override + } + } + } + } + + dynamic "remove_headers_config" { + for_each = length(var.remove_headers) > 0 ? [1] : [] + + content { + dynamic "items" { + for_each = var.remove_headers + + content { + header = items.value + } + } + } + } + + dynamic "security_headers_config" { + for_each = anytrue([ + var.content_security_policy_header.enabled, + var.content_type_options_header.enabled, + var.frame_options_header.enabled, + var.referrer_policy_header.enabled, + var.strict_transport_security_header.enabled, + var.xss_protection_header.enabled, + ]) ? [1] : [] + + content { + dynamic "content_security_policy" { + for_each = var.content_security_policy_header.enabled ? [var.content_security_policy_header] : [] + iterator = header + + content { + override = header.value.override + content_security_policy = header.value.value + } + } + dynamic "content_type_options" { + for_each = var.content_type_options_header.enabled ? [var.content_type_options_header] : [] + iterator = header + + content { + override = header.value.override + } + } + dynamic "frame_options" { + for_each = var.frame_options_header.enabled ? [var.frame_options_header] : [] + iterator = header + + content { + override = header.value.override + frame_option = header.value.value + } + } + dynamic "referrer_policy" { + for_each = var.referrer_policy_header.enabled ? [var.referrer_policy_header] : [] + iterator = header + + content { + override = header.value.override + referrer_policy = header.value.value + } + } + dynamic "strict_transport_security" { + for_each = var.strict_transport_security_header.enabled ? [var.strict_transport_security_header] : [] + iterator = header + + content { + override = header.value.override + access_control_max_age_sec = header.value.max_age + include_subdomains = header.value.include_subdomains + preload = header.value.preload + } + } + dynamic "xss_protection" { + for_each = var.xss_protection_header.enabled ? [var.xss_protection_header] : [] + iterator = header + + content { + override = header.value.override + protection = header.value.filtering_enabled + mode_block = header.value.block + report_uri = header.value.report + } + } + } + } + + server_timing_headers_config { + enabled = var.server_timing_header.enabled + sampling_rate = var.server_timing_header.sampling_rate + } + + lifecycle { + create_before_destroy = true + } +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/response-headers/input/outputs.tf b/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/response-headers/input/outputs.tf new file mode 100644 index 0000000..7edbaf0 --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/response-headers/input/outputs.tf @@ -0,0 +1,21 @@ +output "id" { + description = "The identifier for the response headers policy." + value = aws_cloudfront_response_headers_policy.this.id +} + +output "etag" { + description = "The current version of the response headers policy." + value = aws_cloudfront_response_headers_policy.this.etag +} + +output "security_headers" { + description = "A configuration for several security-related HTTP response headers." + value = { + content_security_policy = var.content_security_policy_header + content_type_options = var.content_type_options_header + frame_options = var.frame_options_header + referrer_policy = var.referrer_policy_header + strict_transport_security = var.strict_transport_security_header + xss_protection = var.xss_protection_header + } +} diff --git a/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/response-headers/input/variables.tf b/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/response-headers/input/variables.tf new file mode 100644 index 0000000..5e1f60b --- /dev/null +++ b/conformance/fixtures/registry/SPHTech-Platform/cloudfront-policies/1.0.0/modules/response-headers/input/variables.tf @@ -0,0 +1,237 @@ +variable "name" { + description = "A unique name to identify the response headers policy." + type = string +} + +variable "description" { + description = "A comment to describe the response headers policy." + type = string + default = "Managed by Terraform." +} + +variable "cors" { + description = < 0 + error_message = "`access_control_allow_headers` needs to have at least one item." + } + validation { + condition = length(var.cors.access_control_allow_methods) > 0 + error_message = "`access_control_allow_methods` needs to have at least one item." + } + validation { + condition = alltrue([ + for method in var.cors.access_control_allow_methods : + contains(["GET", "DELETE", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "ALL"], method) + ]) + error_message = "Valid value for `access_control_allow_methods` are `GET`, `DELETE`, `HEAD`, `OPTIONS`, `PATCH`, `POST`, `PUT` and `ALL`." + } + validation { + condition = length(var.cors.access_control_allow_origins) > 0 + error_message = "`access_control_allow_origins` needs to have at least one item." + } +} + +variable "custom_headers" { + description = <`, `