Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for 'darwin_arm64' the Apple Macbooks #1789

Closed
maanisim opened this issue Jun 4, 2024 · 3 comments
Closed

Support for 'darwin_arm64' the Apple Macbooks #1789

maanisim opened this issue Jun 4, 2024 · 3 comments

Comments

@maanisim
Copy link

maanisim commented Jun 4, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
  • The resources and data sources in this provider are generated from the CloudFormation schema, so they can only support the actions that the underlying schema supports. For this reason submitted bugs should be limited to defects in the generation and runtime code of the provider. Customizing behavior of the resource, or noting a gap in behavior are not valid bugs and should be submitted as enhancements to AWS via the CloudFormation Open Coverage Roadmap.

Terraform CLI and Terraform AWS Cloud Control Provider Version

Affected Resource(s)

  • awscc_1

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 3.0"
    }
    awscc = {
      source  = "hashicorp/awscc"
      version = "~> 0.1.0"
    }
    random = {
      source  = "hashicorp/random"
      version = "~> 3.1.0"
    }
  }
}


provider "aws" {
  region = var.aws_region
}

resource "aws_kms_key" "terraform" {
  description = "Example key for Cassandra table"
}

provider "awscc" {
  region = var.aws_region
}

provider "random" {}

Debug Output

Panic Output

Expected Behavior

When following https://developer.hashicorp.com/terraform/tutorials/aws/aws-cloud-control
terraform init should work as expected after adding the awscc provider, this is not currently the case.

Actual Behavior

user@host learn-terraform-aws-cloud-control % terraform init

Initializing the backend...

Initializing provider plugins...
- Finding hashicorp/awscc versions matching "~> 0.1.0"...
- Finding hashicorp/random versions matching "~> 3.1.0"...
- Reusing previous version of hashicorp/aws from the dependency lock file
- Using previously-installed hashicorp/aws v3.59.0
- Installing hashicorp/random v3.1.3...
- Installed hashicorp/random v3.1.3 (signed by HashiCorp)
╷
│ Error: Incompatible provider version
│ 
│ Provider registry.terraform.io/hashicorp/awscc v0.1.0 does not have a package
│ available for your current platform, darwin_arm64.
│ 
│ Provider releases are separate from Terraform CLI releases, so not all
│ providers are available for all platforms. Other versions of this provider
│ may have different platforms supported.

Steps to Reproduce

  1. terraform init

Important Factoids

References

@quixoticmonk
Copy link
Collaborator

quixoticmonk commented Jun 4, 2024

@maanisim thank you for opening the issue. Did you mean to use "~> 1.0.0" or "~> 0.1"in your awscc versions constraint? Can you update the version constraint and try ?

@maanisim
Copy link
Author

maanisim commented Jun 5, 2024

Hi, @quixoticmonk the suggested fix indeed worked!

The docs in https://developer.hashicorp.com/terraform/tutorials/aws/aws-cloud-control are inaccurate.

@maanisim maanisim closed this as completed Jun 5, 2024
@quixoticmonk
Copy link
Collaborator

This should be updated with #1802.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants