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

Support updating a deployment #8

Merged
merged 2 commits into from
Jul 25, 2024
Merged

Support updating a deployment #8

merged 2 commits into from
Jul 25, 2024

Conversation

danafallon
Copy link
Collaborator

  1. go install .
  2. cd examples/deployments/
  3. TF_LOG=INFO tf apply

Screenshot 2024-07-25 at 1 34 23 PM

@@ -38,11 +41,12 @@ func (r *DeploymentResource) Schema(ctx context.Context, req resource.SchemaRequ
resp.Schema = schema.Schema{
MarkdownDescription: "Artie Deployment resource",
Attributes: map[string]schema.Attribute{
"uuid": schema.StringAttribute{Computed: true},
"uuid": schema.StringAttribute{Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}},
"company_uuid": schema.StringAttribute{Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Tang8330 UseStateForUnknown was the answer to the issue we were talking about at lunch 🎉

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Tang8330
Copy link
Contributor

Tang8330 commented Jul 25, 2024 via email

@danafallon danafallon merged commit 66312df into main Jul 25, 2024
14 checks passed
@danafallon danafallon deleted the dana/update-deployment branch July 25, 2024 20:54
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.

2 participants