Skip to content

Commit 69cbc76

Browse files
committed
fix: make resource_prefix computed
1 parent ef0d08a commit 69cbc76

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

internal/provider/env/aws/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (r *AWSEnvResource) Schema(ctx context.Context, req resource.SchemaRequest,
4141
"endpoints": getEndpointsAttribute(false, true, false),
4242
"tags": getTagsAttribute(false, true, false),
4343
"cloud_connect": getCloudConnectAttribute(false, true, true),
44-
"resource_prefix": getResourcePrefixAttribute(false, true, false),
44+
"resource_prefix": getResourcePrefixAttribute(false, true, true),
4545
"permissions_boundary_policy_arn": getPermissionsBoundaryPolicyArnAttribute(false, true, false),
4646

4747
"spec_revision": common.SpecRevisionAttribute,

internal/provider/modifiers/inmutable_string.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ func (m immutableStringModifier) PlanModifyString(ctx context.Context, req planm
3232
return
3333
}
3434

35+
// Skip check if the property is not present in the current configuration
36+
if req.ConfigValue.IsNull() {
37+
return
38+
}
39+
3540
if req.StateValue.ValueString() != req.PlanValue.ValueString() {
3641
resp.Diagnostics.AddAttributeError(path.Root(m.AttributeName), "Immutable Attribute", fmt.Sprintf("%s is immutable and cannot be modified after creation.", m.AttributeName))
3742
return

internal/sdk/client/graphql.schema

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ AWS environment configuration.
4141
"""
4242
type AWSEnvSpec {
4343
"""
44-
ID of the AWS account (https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html#ViewYourAWSId)
44+
ID of the AWS account (https://docs.aws.amazon.com/IAM/latest/UserGuide/console-account-id.html#w5aac11c17b5)
4545
in which to provision AWS resources.
4646

4747
Immutable.
@@ -381,7 +381,7 @@ AWS environment configuration create request input.
381381
"""
382382
input CreateAWSEnvSpecInput {
383383
"""
384-
ID of the AWS account (https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html#ViewYourAWSId)
384+
ID of the AWS account (https://docs.aws.amazon.com/IAM/latest/UserGuide/console-account-id.html#w5aac11c17b5)
385385
in which to provision AWS resources.
386386

387387
Immutable.

internal/sdk/client/model_gen.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)