hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.81k stars 9.15k forks source link

The provider hashicorp/aws does not support resource type "aws_synthetics_canary" #19481

Closed amit601 closed 3 years ago

amit601 commented 3 years ago

When i run terraform plan/validate, it gives the error

alcon@falcon:~/Documents/Amit_docs/canary$ terraform plan
provider.aws.region
  The region where AWS operations will take place. Examples
  are us-east-1, us-west-2, etc.

  Enter a value: ap-south-1

╷
│ Error: Invalid resource type
│
│   on canary.tf line 1, in resource "aws_synthetics_canary" "some":
│    1: resource "aws_synthetics_canary" "some" {
│
│ The provider hashicorp/aws does not support resource type
│ "aws_synthetics_canary".

image

AWS CLI is working fine with command aws synthetics describe-canaries

Any help will be appreciated.

ewbankkit commented 3 years ago

@amit601 Thanks for raising this issue 👏. The aws_synthetics_canary resource was added in v3.28.0 of the Terraform AWS Provider. Which version of the provider are you using for your configuration?

amit601 commented 3 years ago

My bad, AWS provider was not updated.

Thanks @ewbankkit , it worked.

github-actions[bot] commented 3 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.