Comments (2)
@xescugc
I am experimenting with terracognita and encountered the same issue you have also. From stack overflow, it appears theres some incompatibility with terracognita and v4+ of the AWS provider.
I was able to import my s3 buckets by downgrading the version of the aws provider, modifying my hcl.tf
file like so
provider "aws" {
}
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.74.1"
}
}
required_version = ">= 1.0"
}
from terracognita.
That is actually really useful! I see the issue, on TC we are importing with the version we use internally, at this time AWS is 4.9.0, but we declare it without a version on the terraform
block, so it pulls the latest version which may have in consistencies with the imported one, as is the case.
Actually righ now if we where to set the version of the imported one like:
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "=4.9.0"
}
}
required_version = ">= 1.0"
}
This works, so I'll make it so we add the specific version to the provider :).
from terracognita.
Related Issues (20)
- Some wrong tag with `3.9.0-cy` HOT 1
- Modifying variable output name? HOT 1
- azurerm: add azurerm_network_interface_security_group_association
- When upgrading the providers set the new version to the code
- azurerm_account_storage should be resource_group scoped
- OpenTofu support HOT 1
- -e --exclude does not exclude resources HOT 1
- route table association
- azure dnsZones expected, api returning dnszones HOT 1
- The `--version` option is missing
- The `--aws-profile` option doesn't actually exist HOT 1
- AzureRM goverment environment
- Bump AWS provider to 5.35.0, enable use of new S3 options (aws_s3_*) and additional VPC/security group breakouts
- Add cli flag to discover AWS credentials via AWS SDK default credential chain HOT 1
- Upgrade to aws-sdk-go-v2
- to filter one role out of all HOT 2
- Documentation mistake in CONTRIBUTING.md
- Need support for Huawei Cloud
- New AWS region support
- Terraform plan - Cycle error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terracognita.