Skip to content

Commit d8a3452

Browse files
johanneswuerbachjianyuan
authored andcommitted
Remove ForceNew from Key project and organization (#10)
Without this, the key would always be recreated when using a list of projects like and adding a new project. ``` resource "sentry_project" "project" { count = "${length(var.apps)}" organization = "${sentry_organization.contentful.id}" team = "${sentry_team.default.id}" name = "${element(var.apps, count.index)}" resolve_age = "${var.sentry_resolve_age}" } resource "sentry_key" "key" { count = "${length(var.apps)}" organization = "${sentry_organization.contentful.id}" project = "${element(sentry_project.project.*.id, count.index)}" name = "Node" } ```
1 parent 1539cfb commit d8a3452

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Diff for: resource_sentry_key.go

-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ func resourceSentryKey() *schema.Resource {
2222
"organization": &schema.Schema{
2323
Type: schema.TypeString,
2424
Required: true,
25-
ForceNew: true,
2625
Description: "The slug of the organization the key should be created for",
2726
},
2827
"project": &schema.Schema{
2928
Type: schema.TypeString,
3029
Required: true,
31-
ForceNew: true,
3230
Description: "The slug of the project the key should be created for",
3331
},
3432
"name": &schema.Schema{

0 commit comments

Comments
 (0)