|
|
|
|
@@ -32,7 +32,7 @@ module "ssm_instance" {
|
|
|
|
|
# tftest modules=1 resources=2 inventory=public-instance.yaml
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Public instance with CMEK
|
|
|
|
|
### Public instance with CMEK
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
module "ssm_instance" {
|
|
|
|
|
@@ -56,7 +56,9 @@ module "ssm_instance" {
|
|
|
|
|
project_id = var.project_id
|
|
|
|
|
instance_id = "my-instance"
|
|
|
|
|
location = var.region
|
|
|
|
|
ca_pool = "projects/another-project/locations/${var.region}/caPools/my-ca-pool"
|
|
|
|
|
private_configs = {
|
|
|
|
|
is_private = true
|
|
|
|
|
}
|
|
|
|
|
repositories = {
|
|
|
|
|
my-repository = {}
|
|
|
|
|
}
|
|
|
|
|
@@ -64,6 +66,25 @@ module "ssm_instance" {
|
|
|
|
|
# tftest modules=1 resources=2 inventory=private-instance.yaml
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
You can optionally specify a Certificate Authority (CAS) pool and use your own certificate.
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
module "ssm_instance" {
|
|
|
|
|
source = "./fabric/modules/secure-source-manager-instance"
|
|
|
|
|
project_id = var.project_id
|
|
|
|
|
instance_id = "my-instance"
|
|
|
|
|
location = var.region
|
|
|
|
|
private_configs = {
|
|
|
|
|
is_private = true
|
|
|
|
|
ca_pool_id = "projects/another-project/locations/${var.region}/caPools/my-ca-pool"
|
|
|
|
|
}
|
|
|
|
|
repositories = {
|
|
|
|
|
my-repository = {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
# tftest modules=1 resources=2 inventory=private-instance-ca-pool.yaml
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### IAM
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
@@ -179,17 +200,17 @@ module "ssm_instance" {
|
|
|
|
|
|
|
|
|
|
| name | description | type | required | default |
|
|
|
|
|
|---|---|:---:|:---:|:---:|
|
|
|
|
|
| [instance_id](variables.tf#L29) | Instance ID. | <code>string</code> | ✓ | |
|
|
|
|
|
| [location](variables.tf#L46) | Location. | <code>string</code> | ✓ | |
|
|
|
|
|
| [project_id](variables.tf#L51) | Project ID. | <code>string</code> | ✓ | |
|
|
|
|
|
| [repositories](variables.tf#L56) | Repositories. | <code title="map(object({ description = optional(string) iam = optional(map(list(string)), {}) iam_bindings = optional(map(object({ role = string members = list(string) })), {}) iam_bindings_additive = optional(map(object({ role = string member = string })), {}) initial_config = optional(object({ default_branch = optional(string) gitignores = optional(string) license = optional(string) readme = optional(string) })) branch_rules = optional(map(object({ disabled = optional(bool, false) include_pattern = string require_pull_request = optional(bool) minimum_approvals_count = optional(number) minimum_reviews_count = optional(number) require_comments_resolved = optional(bool) allow_stale_reviews = optional(bool) require_linear_history = optional(bool) })), {}) }))">map(object({…}))</code> | ✓ | |
|
|
|
|
|
| [ca_pool](variables.tf#L17) | CA pool. | <code>string</code> | | <code>null</code> |
|
|
|
|
|
| [instance_id](variables.tf#L23) | Instance ID. | <code>string</code> | ✓ | |
|
|
|
|
|
| [location](variables.tf#L40) | Location. | <code>string</code> | ✓ | |
|
|
|
|
|
| [project_id](variables.tf#L55) | Project ID. | <code>string</code> | ✓ | |
|
|
|
|
|
| [repositories](variables.tf#L60) | Repositories. | <code title="map(object({ description = optional(string) iam = optional(map(list(string)), {}) iam_bindings = optional(map(object({ role = string members = list(string) })), {}) iam_bindings_additive = optional(map(object({ role = string member = string })), {}) initial_config = optional(object({ default_branch = optional(string) gitignores = optional(string) license = optional(string) readme = optional(string) })) branch_rules = optional(map(object({ disabled = optional(bool, false) include_pattern = string require_pull_request = optional(bool) minimum_approvals_count = optional(number) minimum_reviews_count = optional(number) require_comments_resolved = optional(bool) allow_stale_reviews = optional(bool) require_linear_history = optional(bool) })), {}) }))">map(object({…}))</code> | ✓ | |
|
|
|
|
|
| [iam](variables-iam.tf#L17) | IAM bindings. | <code>map(list(string))</code> | | <code>{}</code> |
|
|
|
|
|
| [iam_bindings](variables-iam.tf#L23) | IAM bindings. | <code title="map(object({ role = string members = list(string) }))">map(object({…}))</code> | | <code>{}</code> |
|
|
|
|
|
| [iam_bindings_additive](variables-iam.tf#L32) | IAM bindings. | <code title="map(object({ role = string member = string }))">map(object({…}))</code> | | <code>{}</code> |
|
|
|
|
|
| [instance_create](variables.tf#L23) | Create SSM Instance. When set to false, uses instance_id to reference existing SSM instance. | <code>bool</code> | | <code>true</code> |
|
|
|
|
|
| [kms_key](variables.tf#L34) | KMS key. | <code>string</code> | | <code>null</code> |
|
|
|
|
|
| [labels](variables.tf#L40) | Instance labels. | <code>map(string)</code> | | <code>null</code> |
|
|
|
|
|
| [instance_create](variables.tf#L17) | Create SSM Instance. When set to false, uses instance_id to reference existing SSM instance. | <code>bool</code> | | <code>true</code> |
|
|
|
|
|
| [kms_key](variables.tf#L28) | KMS key. | <code>string</code> | | <code>null</code> |
|
|
|
|
|
| [labels](variables.tf#L34) | Instance labels. | <code>map(string)</code> | | <code>null</code> |
|
|
|
|
|
| [private_configs](variables.tf#L45) | The configurations for SSM private instances. | <code title="object({ is_private = optional(bool, true) ca_pool_id = optional(string) })">object({…})</code> | | <code>{}</code> |
|
|
|
|
|
|
|
|
|
|
## Outputs
|
|
|
|
|
|
|
|
|
|
|