-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new doc about how to use AWS CloudFront as backend storage. #6310
Conversation
aec8e1b
to
8974a38
Compare
56c2ad9
to
dca4105
Compare
# We need to format our key to a JSON friendly format | ||
export CLOUDFRONT_KEY=$(cat keyfile.pem | jq -sR .) | ||
|
||
curl -X POST $BASE_HREF/pulp/default/api/v3/domains/ -d '{"name": "cloudfront_storage", "storage_class": "storages.backends.s3boto3.S3Boto3Storage", "storage_settings": {"access_key": "{aws_access_key}", "secret_key": "{aws_secret_key}", "bucket_name": "{aws_bucket_name}", "region_name": "{aws_region_name}", "default_acl": "private", "cloudfront_key_id": "{aws_cloudfront_key_id}", "cloudfront_key": '"$CLOUDFRONT_KEY"', "custom_domain": "{aws_cloudfront_custom_domain}"}, "redirect_to_object_storage": true, "hide_guarded_distributions": false}' -H 'Content-Type: application/json' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a pulp
CLI equivalent option? Definitely keep this example, this is great. If there is a pulp
CLI way to do it can that example also be added? If there isn't then I think this is just fine as-is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pulp domain update --storage-settings
should do the trick, yeah?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks folks. I used pulp-cli
in the first tests and it didn't worked out. After that I've focused in using curl
and the docs reflected that.
Tried the same approach with pulp-cli
, it worked and I've updated the docs.
Also, adds a simple test to check if the options needed to configure AWS CloudFront are valid. Closes #6258
dca4105
to
fa73e5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
Also, adds a simple test to check if the options needed to configure
AWS CloudFront are valid.
Closes #6258