Hi,
I have tried this module with AWS credentials and secret keys multiple times.
Unfortunately it always gives 403 error.

Am I missing anything?
Should I install sdk in library folder and set keys in there ?

Comments

saleempbt5 created an issue. See original summary.

mayankladoia’s picture

Hello,

I tried using this module on my localhost. Downloaded Drupal core 7.67 and added only one module CloudFront Path Invalidate 7.x-1.7. I cleared path using config page of CloudFront Path Invalidate module and also added a basic page and edited the same (with URL alias). The paths seems to be invalidate fine on the AWS Cloudfront.

Can you please send more details of the 403 error that you are getting on your site. Are you able to clear one path using cofig of the module.

Also, this is the policy that you need attached to your IAM user
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"cloudfront:CreateInvalidation",
"cloudfront:GetInvalidation"
],
"Resource": "*",
"Effect": "Allow"
}
]
}

I have also added 7.x-1.8 version of the module. Please try the new version and let me know in case you still get an error.

mayankladoia’s picture

Just realized that this module has dependencies to pathauto, token and path

I have added these dependencies to the info file. Please download ver 7.x2.1.

mayankladoia’s picture

Status: Active » Fixed
mayankladoia’s picture

Status: Fixed » Closed (fixed)