diff --git a/README.md b/README.md index 9d3cc72..e02d79a 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Once this functionality would be marged to terraform aws provider this repositor ### main.tf ```terraform provider "synthetics" { - version = "v0.0.2" + version = "v0.0.3" # assume_role { # role_arn = var.assume_role_arn # } @@ -47,15 +47,15 @@ resource "synthetics_canary" "terraform-deploy-test" { ```bash mkdir -p terraform.d/plugins/linux_amd64 -wget https://github.com/MaksymBilenko/terraform-provider-aws-synthetics/releases/download/v0.0.2/linux_amd64-terraform-provider-aws-synthetics_v0.0.2 -O terraform.d/plugins/linux_amd64/terraform-provider-synthetics_v0.0.2 -chmod +x terraform.d/plugins/linux_amd64/terraform-provider-synthetics_v0.0.2 +wget https://github.com/MaksymBilenko/terraform-provider-aws-synthetics/releases/download/v0.0.3/linux_amd64-terraform-provider-aws-synthetics_v0.0.3 -O terraform.d/plugins/linux_amd64/terraform-provider-synthetics_v0.0.3 +chmod +x terraform.d/plugins/linux_amd64/terraform-provider-synthetics_v0.0.3 terraform init ``` ### Init MacOS ```bash mkdir -p terraform.d/plugins/darwin_amd64 -wget https://github.com/MaksymBilenko/terraform-provider-aws-synthetics/releases/download/v0.0.2/darwin_amd64-terraform-provider-aws-synthetics_v0.0.2 -O terraform.d/plugins/darwin_amd64/terraform-provider-synthetics_v0.0.2 -chmod +x terraform.d/plugins/darwin_amd64/terraform-provider-synthetics_v0.0.2 +wget https://github.com/MaksymBilenko/terraform-provider-aws-synthetics/releases/download/v0.0.3/darwin_amd64-terraform-provider-aws-synthetics_v0.0.3 -O terraform.d/plugins/darwin_amd64/terraform-provider-synthetics_v0.0.3 +chmod +x terraform.d/plugins/darwin_amd64/terraform-provider-synthetics_v0.0.3 terraform init ``` \ No newline at end of file diff --git a/synthetics/resource_aws_synthetics_canary.go b/synthetics/resource_aws_synthetics_canary.go index 0b704e8..587efe9 100644 --- a/synthetics/resource_aws_synthetics_canary.go +++ b/synthetics/resource_aws_synthetics_canary.go @@ -126,6 +126,7 @@ func resourceAwsSyntheticsCanary() *schema.Resource { Type: schema.TypeList, MaxItems: 1, Optional: true, + ForceNew: true, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "security_group_ids": { @@ -140,6 +141,7 @@ func resourceAwsSyntheticsCanary() *schema.Resource { }, "vpc_id": { Type: schema.TypeString, + ForceNew: true, Computed: true, }, },