Skip to content

Commit

Permalink
Fixed caller reference for create invalidation.
Browse files Browse the repository at this point in the history
  • Loading branch information
BSick7 committed Sep 15, 2024
1 parent b46b03c commit 56f956f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.1.0 (Unreleased)
## 0.1.1 (Sep 14, 2024)
BUG FIXES:
- Fixed caller reference for create invalidation.

## 0.1.0 (Sep 14, 2024)

FEATURES:
- Initial draft of provider
- New Resource: `awsex_cloudfront_distribution_invalidation`
3 changes: 2 additions & 1 deletion internal/provider/cloudfront_distribution_invalidation.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/cloudfront"
cftypes "github.com/aws/aws-sdk-go-v2/service/cloudfront/types"
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-framework-timeouts/resource/timeouts"
"github.com/hashicorp/terraform-plugin-framework-validators/setvalidator"
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
Expand Down Expand Up @@ -186,7 +187,7 @@ func (r *CloudfrontDistributionInvalidationResource) createInvalidation(ctx cont
input := &cloudfront.CreateInvalidationInput{
DistributionId: &distributionId,
InvalidationBatch: &cftypes.InvalidationBatch{
CallerReference: aws.String("terraform-provider-awsex"),
CallerReference: aws.String(uuid.NewString()),
Paths: &cftypes.Paths{
Quantity: aws.Int32(int32(len(paths))),
Items: paths,
Expand Down

0 comments on commit 56f956f

Please sign in to comment.