-
Notifications
You must be signed in to change notification settings - Fork 20
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
Import error: kops cluster with external policies #282
Comments
What version are you using ? I will test it tomorrow, expansion and flattening code looks correct but i fear that terraform only supports maps of primitive types https://github.com/hashicorp/terraform-plugin-sdk/blob/5f0e47111e779cb308990590c18d0ed547f0dd37/helper/schema/schema.go#L143-L151 If it's really the case i will find a workaround. |
Thanks for the quick reply. Latest version: |
It looks like there is an open issue from 2016 hashicorp/terraform-plugin-sdk#62 I will look into it tomorrow… maybe changing the map by a list with a key attribute 🤔 Fortunately the number of affected properties is pretty low. |
external_policy {
key = node
value = [ arn1, arn2, etc …. ]
} |
Hi @eddycharly, any news on this? Thanks |
Hey @rmgpinto I confirmed the issue and added an option in the provider to setup a cloud api mock so that i can write integration tests for such cases. Now i'm going to start fixing it 🤞 |
It looks like #287 is fixing it. At least, it doesn't complain when parsing tf code containing: external_policies {
key = "node"
value = [
"arn:aws:iam::123456789000:policy/test-policy-1",
"arn:aws:iam::123456789000:policy/test-policy-2"
]
} |
Great, I'll test once it's released. |
Would it be ok to test it with a 1.21 alpha release ? |
Yes, no problem.
…On Thu, 15 Jul 2021 at 09:58 eddycharly ***@***.***> wrote:
Would it be ok to test it with a 1.21 alpha release ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#282 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAGACFHDUBCQR3WXIPOV3DTX2PMZANCNFSM5AHTKLZA>
.
|
Perfect, |
LGTM, thanks |
I'm trying to import an existing cluster with
external_policies
defined, but I get:I have something similar to this:
The text was updated successfully, but these errors were encountered: