|
| 1 | +<!-- |
| 2 | + ~ Copyright 2023 StreamNative, Inc. |
| 3 | + ~ |
| 4 | + ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + ~ you may not use this file except in compliance with the License. |
| 6 | + ~ You may obtain a copy of the License at |
| 7 | + ~ |
| 8 | + ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + ~ |
| 10 | + ~ Unless required by applicable law or agreed to in writing, software |
| 11 | + ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + ~ See the License for the specific language governing permissions and |
| 14 | + ~ limitations under the License. |
| 15 | +--> |
| 16 | + |
| 17 | +# DNS and Bucket Module |
| 18 | +A basic module used to create Route53 Zone and S3 Buckets. |
| 19 | + |
| 20 | +<!-- BEGIN_TF_DOCS --> |
| 21 | +## Requirements |
| 22 | + |
| 23 | +| Name | Version | |
| 24 | +|------|---------| |
| 25 | +| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >=1.2.0 | |
| 26 | + |
| 27 | +## Providers |
| 28 | + |
| 29 | +| Name | Version | |
| 30 | +|------|---------| |
| 31 | +| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.76.0 | |
| 32 | +| <a name="provider_aws.source"></a> [aws.source](#provider\_aws.source) | 5.76.0 | |
| 33 | +| <a name="provider_aws.target"></a> [aws.target](#provider\_aws.target) | 5.76.0 | |
| 34 | + |
| 35 | +## Modules |
| 36 | + |
| 37 | +No modules. |
| 38 | + |
| 39 | +## Resources |
| 40 | + |
| 41 | +| Name | Type | |
| 42 | +|------|------| |
| 43 | +| [aws_route53_record.delegate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource | |
| 44 | +| [aws_route53_zone.zone](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_zone) | resource | |
| 45 | +| [aws_s3_bucket.tiered_storage](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket) | resource | |
| 46 | +| [aws_s3_bucket.velero](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket) | resource | |
| 47 | +| [aws_s3_bucket_server_side_encryption_configuration.velero](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_server_side_encryption_configuration) | resource | |
| 48 | +| [aws_kms_key.s3_default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/kms_key) | data source | |
| 49 | +| [aws_route53_zone.sn](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/route53_zone) | data source | |
| 50 | + |
| 51 | +## Inputs |
| 52 | + |
| 53 | +| Name | Description | Type | Default | Required | |
| 54 | +|------|-------------|------|---------|:--------:| |
| 55 | +| <a name="input_custom_dns_zone_id"></a> [custom\_dns\_zone\_id](#input\_custom\_dns\_zone\_id) | if specified, then a streamnative zone will not be created, and this zone will be used instead. Otherwise, we will provision a new zone and delegate access | `string` | `""` | no | |
| 56 | +| <a name="input_custom_dns_zone_name"></a> [custom\_dns\_zone\_name](#input\_custom\_dns\_zone\_name) | must be passed if custom\_dns\_zone\_id is passed, this is the zone name to use | `string` | `""` | no | |
| 57 | +| <a name="input_extra_aws_tags"></a> [extra\_aws\_tags](#input\_extra\_aws\_tags) | Additional to apply to the resources. Note that this module sets the tags Name, Type, and Vendor by default. They can be overwritten, but it is not recommended. | `map(string)` | `{}` | no | |
| 58 | +| <a name="input_parent_zone_name"></a> [parent\_zone\_name](#input\_parent\_zone\_name) | The parent zone in which we create the delegation records | `string` | n/a | yes | |
| 59 | +| <a name="input_pm_name"></a> [pm\_name](#input\_pm\_name) | The name of the poolmember, for new clusters, this should be like `pm-<xxxxx>` | `string` | n/a | yes | |
| 60 | +| <a name="input_s3_encryption_kms_key_arn"></a> [s3\_encryption\_kms\_key\_arn](#input\_s3\_encryption\_kms\_key\_arn) | KMS key ARN to use for S3 encryption. If not set, the default AWS S3 key will be used. | `string` | `""` | no | |
| 61 | + |
| 62 | +## Outputs |
| 63 | + |
| 64 | +| Name | Description | |
| 65 | +|------|-------------| |
| 66 | +| <a name="output_backup_bucket"></a> [backup\_bucket](#output\_backup\_bucket) | n/a | |
| 67 | +| <a name="output_backup_bucket_kms_key_id"></a> [backup\_bucket\_kms\_key\_id](#output\_backup\_bucket\_kms\_key\_id) | n/a | |
| 68 | +| <a name="output_tiered_storage_bucket"></a> [tiered\_storage\_bucket](#output\_tiered\_storage\_bucket) | n/a | |
| 69 | +| <a name="output_zone_id"></a> [zone\_id](#output\_zone\_id) | n/a | |
| 70 | +| <a name="output_zone_name"></a> [zone\_name](#output\_zone\_name) | n/a | |
| 71 | +<!-- END_TF_DOCS --> |
0 commit comments