-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
977 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,6 @@ | |
# Terraform state | ||
*.tfstate | ||
*.tfstate.* | ||
|
||
# Terraform backend configuration | ||
*.tfbackend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
{} | ||
{ | ||
"[terraform]": { | ||
"editor.tabSize": 2 | ||
}, | ||
"[terraform-vars]": { | ||
"editor.tabSize": 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Add main account | ||
resource "cloudflare_account" "main" { | ||
# Name of the account | ||
name = local.account.name | ||
} | ||
|
||
# Add me as a member to the account | ||
resource "cloudflare_account_member" "spietras" { | ||
# Identifier of the account to add the member to | ||
account_id = cloudflare_account.main.id | ||
|
||
# Email address of the member | ||
email_address = local.account.members.spietras.email | ||
|
||
# Role IDs to assign to the member | ||
role_ids = [ | ||
local.roles["Super Administrator - All Privileges"], | ||
] | ||
|
||
# Member is accepted | ||
status = "accepted" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Data source with account roles | ||
data "cloudflare_account_roles" "account_roles" { | ||
account_id = cloudflare_account.main.id | ||
} |
Oops, something went wrong.