https://github.com/opszero/terraform-cloudflare-domain
https://github.com/opszero/terraform-cloudflare-domain
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/opszero/terraform-cloudflare-domain
- Owner: opszero
- License: other
- Created: 2022-02-23T23:51:57.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-19T16:40:31.000Z (about 1 year ago)
- Last Synced: 2024-12-27T05:41:57.813Z (about 1 year ago)
- Language: HCL
- Homepage: https://opszero.com
- Size: 104 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Support: SUPPORT
Awesome Lists containing this project
README
# Domain (Cloudflare)
Cloudflare Setup for a new SaaS Startup
Includes:
- Cloudflare Zone
- Cloudflare SSL Encryption
- Cloudflare for Teams
- Gmail MX Records
- AWS SES
## Usage
```bash
locals {
subdomains = [
{
name = "@"
value = "longtld.elb.us-west-2.amazonaws.com"
type = "CNAME"
proxied = true
},
{
name = "app"
value = "longtlkd.elb.us-west-2.amazonaws.com"
type = "CNAME"
proxied = true
}
]
}
module "parking" {
source = "github.com/opszero/terraform-cloudflare-domain"
domain = "example.com"
records = local.subdomains
}
```
## Deployment
```sh
terraform init
terraform plan
terraform apply -auto-approve
```
## Teardown
```sh
terraform destroy -auto-approve
```
## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | n/a |
| [cloudflare](#provider\_cloudflare) | n/a |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [access](#input\_access) | List of access applications | `list` | `[]` | no |
| [account\_id](#input\_account\_id) | Cloudflare account id | `any` | n/a | yes |
| [aws\_ses\_enabled](#input\_aws\_ses\_enabled) | Create AWS SES resources | `bool` | `false` | no |
| [domain](#input\_domain) | domain for the webapp | `any` | n/a | yes |
| [google\_email\_enabled](#input\_google\_email\_enabled) | Enable Google MX Records | `bool` | `true` | no |
| [records](#input\_records) | List of DNS records | `list` | `[]` | no |
| [ssl\_forced](#input\_ssl\_forced) | Force SSL on Domains | `bool` | `true` | no |
## Resources
| Name | Type |
|------|------|
| [aws_ses_domain_dkim.dkim](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ses_domain_dkim) | resource |
| [aws_ses_domain_identity.ses](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ses_domain_identity) | resource |
| [cloudflare_access_application.access](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/access_application) | resource |
| [cloudflare_access_policy.support_policy](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/access_policy) | resource |
| [cloudflare_page_rule.ssl](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/page_rule) | resource |
| [cloudflare_record.dkim](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/record) | resource |
| [cloudflare_record.mx](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/record) | resource |
| [cloudflare_record.records](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/record) | resource |
| [cloudflare_record.ses](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/record) | resource |
| [cloudflare_record.spf](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/record) | resource |
| [cloudflare_zone.site](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/zone) | resource |
## Outputs
No outputs.
# 🚀 Built by opsZero!
Since 2016 [opsZero](https://opszero.com) has been providing Kubernetes
expertise to companies of all sizes on any Cloud. With a focus on AI and
Compliance we can say we seen it all whether SOC2, HIPAA, PCI-DSS, ITAR,
FedRAMP, CMMC we have you and your customers covered.
We provide support to organizations in the following ways:
- [Modernize or Migrate to Kubernetes](https://opszero.com/solutions/modernization/)
- [Cloud Infrastructure with Kubernetes on AWS, Azure, Google Cloud, or Bare Metal](https://opszero.com/solutions/cloud-infrastructure/)
- [Building AI and Data Pipelines on Kubernetes](https://opszero.com/solutions/ai/)
- [Optimizing Existing Kubernetes Workloads](https://opszero.com/solutions/optimized-workloads/)
We do this with a high-touch support model where you:
- Get access to us on Slack, Microsoft Teams or Email
- Get 24/7 coverage of your infrastructure
- Get an accelerated migration to Kubernetes
Please [schedule a call](https://calendly.com/opszero-llc/discovery) if you need support.