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

Use datasource to import resources #3

Open
aleksanderaleksic opened this issue Jan 18, 2021 · 1 comment
Open

Use datasource to import resources #3

aleksanderaleksic opened this issue Jan 18, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@aleksanderaleksic
Copy link
Owner

There should be possible to import resources using data sources. This way we can import i.e route53 zone by name.

data "aws_route53_zone" "test_com" {
  name = "test.com"
}

migrate "import" test_com" {
   state = "dns"
   name = "module.test_com.aws_route53_zone.test_com"
   resource = data.aws_route53_zone.test_com.id
}
@aleksanderaleksic aleksanderaleksic added the enhancement New feature or request label Jan 18, 2021
@aleksanderaleksic
Copy link
Owner Author

Have started looking into how to get the providers that terraform uses, but currently, there is no project that solves this. I will probably create a separate project for this and use it in this project instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant