Skip to content

Commit f83e6d3

Browse files
committed
fix: secret value handling
1 parent 1613462 commit f83e6d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/provider/resource_mackerel_aws_integration.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
1616
"github.com/hashicorp/terraform-plugin-framework/types"
1717
"github.com/mackerelio-labs/terraform-provider-mackerel/internal/mackerel"
18+
"github.com/mackerelio-labs/terraform-provider-mackerel/internal/planmodifierutil"
1819
)
1920

2021
var (
@@ -285,8 +286,6 @@ func schemaAWSIntegrationResource() schema.Schema {
285286
Description: schemaAWSIntegrationSecretKeyDesc,
286287
Optional: true,
287288
Sensitive: true,
288-
Computed: true,
289-
Default: stringdefault.StaticString(""),
290289
Validators: []validator.String{
291290
// Secret access key cannot be set alone
292291
stringvalidator.AlsoRequires(path.MatchRoot("key")),
@@ -301,6 +300,7 @@ func schemaAWSIntegrationResource() schema.Schema {
301300
"external_id": schema.StringAttribute{
302301
Description: schemaAWSIntegrationExternalIDDesc,
303302
Optional: true,
303+
Sensitive: true,
304304
Computed: true,
305305
Default: stringdefault.StaticString(""),
306306
Validators: []validator.String{

0 commit comments

Comments
 (0)