-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix: ensure we always have an ID #70
base: main
Are you sure you want to change the base?
fix: ensure we always have an ID #70
Conversation
Not sure if it is possible to omit the id from the tfstate by instructing upjet, but when we get the following we hit the bug as per #66:
{
"version": 4,
"terraform_version": "1.5.5",
"serial": 1,
"lineage": "8a917ef2-2690-4360-9d29-0bf2a4dfe8b7",
"outputs": null,
"resources": [
{
"mode": "managed",
"type": "pagerduty_team",
"name": "test-team",
"provider": "provider[\"registry.terraform.io/PagerDuty/pagerduty\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"description": "Test team",
"id": "", <------------------- THIS SEEMS TO BE THE OFFENDER
"name": "Test Team"
}
}
]
}
]
} |
8457617
to
5ac93bf
Compare
Signed-off-by: Jesús Fernández <[email protected]>
5ac93bf
to
2a3b63b
Compare
Signed-off-by: Jesús Fernández <[email protected]>
2a0330f
to
cdbd285
Compare
Signed-off-by: Jesús Fernández <[email protected]>
Looks to me like an error in the upstream terraform provider, which doesn't like having an empty id. Didn't find the way to instruct upjet not to set it in the tfstate |
Hello team, |
Signed-off-by: Jesús Fernández <[email protected]>
6e9618e
to
968fd8c
Compare
@haarchri regarding the "fix" here, what I did so far:
Do you know if there's any way to omit the |
Signed-off-by: Jesús Fernández <[email protected]>
b03bf70
to
b5b1da3
Compare
Signed-off-by: Jesús Fernández <[email protected]>
b5b1da3
to
264297f
Compare
Signed-off-by: Jesús Fernández <[email protected]>
cf3de03
to
c74a8ff
Compare
Signed-off-by: Jesús Fernández <[email protected]>
7947a24
to
ba04d8d
Compare
Description of your changes
id
field in tfstate must be either filled in or omitted. This PR attempts to fix it by setting an intermediate value (PENDING) not to fall into the raised bug.Fixes #66
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested
Locally with valid credentials.