You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Hugo are you using (hugo version)?
$ hugo version
Hugo Static Site Generator v0.76.5/extended darwin/amd64 BuildDate: unknown
Does this issue reproduce with the latest release?
I believe I'm on the latest release.
Description
I expected the hugo deploy --dryRun flag to do nothing to my deployment. To my surprise, however, it seems like it might actually be interacting with my server. Example output:
$ hugo deploy --dryRun
Deploying to target "foo" (s3://foo.com)
Identified 68 file(s) to upload, totaling 846 kB, and 0 file(s) to delete.
<snip>
[DRY RUN] Would upload: tags/web/index.html (6.8 kB, Content-Type: "text/html"): size differs
[DRY RUN] Would upload: tags/web/index.xml (1.4 kB, Content-Type: "application/rss+xml"): size differs
Success!
Invalidating CloudFront CDN...
Failed to invalidate CloudFront CDN: AccessDenied: User: arn:aws:iam::<snip> is not authorized to perform: cloudfront:CreateInvalidation on resource: arn:aws:cloudfront::<snip>
status code: 403, request id: <snip>
Error: AccessDenied: User: arn:aws:iam::<snip> is not authorized to perform: cloudfront:CreateInvalidation on resource: arn:aws:cloudfront::<snip>
status code: 403, request id: <snip>
In #7125 someone says --dryRun doesn't catch cloudfront errors, which makes me think behavior has changed here.
Am I misunderstanding something? I would expect that --dryRun would mean my server won't be modified.
The text was updated successfully, but these errors were encountered:
… deployment
Currently, if cache invalidation is enabled when running `hugo deploy --dryRun` with , the deployer does not take the dry run flag into consideration and triggers CloudFront/GoogleCloudCDN cache invalidation if any of those services are configured.
This change will instead print a feedback message if a dry run is in effect and quiet mode is not enabled.
Fixesgohugoio#7884
… deployment
Currently, if cache invalidation is enabled when running `hugo deploy --dryRun` with , the deployer does not take the dry run flag into consideration and triggers CloudFront/GoogleCloudCDN cache invalidation if any of those services are configured.
This change will instead print a feedback message if a dry run is in effect and quiet mode is not enabled.
Fixes#7884
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
I believe I'm on the latest release.
Description
I expected the
hugo deploy --dryRun
flag to do nothing to my deployment. To my surprise, however, it seems like it might actually be interacting with my server. Example output:In #7125 someone says
--dryRun
doesn't catch cloudfront errors, which makes me think behavior has changed here.Am I misunderstanding something? I would expect that
--dryRun
would mean my server won't be modified.The text was updated successfully, but these errors were encountered: