这是indexloc提供的服务,不要输入任何密码
Skip to content

Upgrade to terraform framework v13 #78

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

Merged
merged 1 commit into from
Sep 20, 2022
Merged

Conversation

dglsparsons
Copy link
Collaborator

@dglsparsons dglsparsons force-pushed the upgrade-to-framework-v13 branch from 6dd3daa to f6c24cd Compare September 20, 2022 06:06
@@ -105,10 +132,9 @@ At this time you cannot use a Vercel Project resource with in-line ` + "`environ
Sensitive: true,
},
"id": {
Description: "The ID of the Environment Variable.",
Type: types.StringType,
PlanModifiers: tfsdk.AttributePlanModifiers{resource.UseStateForUnknown()},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need these modifiers anymore? :o

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually incorrect here - the project resource doesn't bother doing an update on the environment variables, and instead just deletes any that do not match the state after, and adds new ones.

So we can't rely on stable IDs between updates for env variables.

Copy link

@adriancooney adriancooney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot cleaner! Great work.

}

func (d *aliasDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) {
// Prevent panic if the provider has not been configured.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄

@dglsparsons dglsparsons merged commit ce0442e into main Sep 20, 2022
@dglsparsons dglsparsons deleted the upgrade-to-framework-v13 branch September 20, 2022 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants