Created
April 24, 2020 18:26
-
-
Save 0xch4z/e1a6fec4cc3b892293665e86de936081 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| provider "linode" { | |
| } | |
| resource "linode_domain" "mydomain" { | |
| type = "master" | |
| domain = "testingtesting123.com" | |
| soa_email = "[email protected]" | |
| } | |
| resource "linode_domain_record" "jrecordbind_A" { | |
| domain_id = linode_domain.mydomain.id | |
| name = "" | |
| record_type = "A" | |
| target = "1.1.1.1" | |
| } |
This file contains hidden or 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
| ~/workspace/tf-linode-domain-test | |
| ❯ terraform init | |
| Initializing the backend... | |
| Initializing provider plugins... | |
| - Checking for available provider plugins... | |
| - Downloading plugin for provider "linode" (terraform-providers/linode) 1.9.3... | |
| The following providers do not have any version constraints in configuration, | |
| so the latest version was installed. | |
| To prevent automatic upgrades to new major versions that may contain breaking | |
| changes, it is recommended to add version = "..." constraints to the | |
| corresponding provider blocks in configuration, with the constraint strings | |
| suggested below. | |
| * provider.linode: version = "~> 1.9" | |
| Terraform has been successfully initialized! | |
| You may now begin working with Terraform. Try running "terraform plan" to see | |
| any changes that are required for your infrastructure. All Terraform commands | |
| should now work. | |
| If you ever set or change modules or backend configuration for Terraform, | |
| rerun this command to reinitialize your working directory. If you forget, other | |
| commands will detect it and remind you to do so if necessary. | |
| ~/workspace/tf-linode-domain-test | |
| ❯ eval `credenv linode` | |
| ~/workspace/tf-linode-domain-test | |
| ❯ terraform apply | |
| An execution plan has been generated and is shown below. | |
| Resource actions are indicated with the following symbols: | |
| + create | |
| Terraform will perform the following actions: | |
| # linode_domain.mydomain will be created | |
| + resource "linode_domain" "mydomain" { | |
| + domain = "testingtesting123.com" | |
| + id = (known after apply) | |
| + soa_email = "[email protected]" | |
| + status = (known after apply) | |
| + type = "master" | |
| } | |
| # linode_domain_record.jrecordbind_A will be created | |
| + resource "linode_domain_record" "jrecordbind_A" { | |
| + domain_id = (known after apply) | |
| + id = (known after apply) | |
| + name = (known after apply) | |
| + record_type = "A" | |
| + target = "1.1.1.1" | |
| } | |
| Plan: 2 to add, 0 to change, 0 to destroy. | |
| Do you want to perform these actions? | |
| Terraform will perform the actions described above. | |
| Only 'yes' will be accepted to approve. | |
| Enter a value: yes | |
| linode_domain.mydomain: Creating... | |
| linode_domain.mydomain: Creation complete after 2s [id=1364648] | |
| linode_domain_record.jrecordbind_A: Creating... | |
| linode_domain_record.jrecordbind_A: Creation complete after 1s [id=15303674] | |
| Apply complete! Resources: 2 added, 0 changed, 0 destroyed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment