Editing
Amazon AWS NOP
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<strong>Adding Amazon S3 Bucket:</strong><br/> -Go to aws.amazon.com and log in using Amazon credentials.<br/> -Once logged in, go to "Services" and click "S3" under the "Storage" section.<br/> -Click "Create Bucket". NOTE: There will be 3 buckets to create.<br /> -Set "Bucket name" to "pdx-(companyname)-store-1". replace "(companyname"). NOTE: The company name will need to be the full Company name being displayed by the "pdxcoresettings.companyname" setting name.<br /> -Under "Object Ownership" select "ACLs enabled" and "Bucket owner preferred".<br /> -Disable "Block all public access".<br /> -Click "Create Bucket".<br/> <br/> -Select the new bucket.<br/> -Create a new folder called "backofficemedia". <br /> -You will need to create a second bucket. -Click "Create Bucket". -Set "Bucket name" to "pdx-(companyname)-productimages". replace "(companyname"). -Under "Object Ownership" select "ACLs enabled" and "Bucket owner preferred". -Disable "Block all public access". -Click "Create Bucket". -You will need to create a third bucket. -Click "Create Bucket". -Set "Bucket name" to "pdx-(companyname)-customer-images". replace "(companyname"). -Under "Object Ownership" select "ACLs enabled" and "Bucket owner preferred". -Disable "Block all public access". -Click "Create Bucket". -In all the buckets you will want to edit and apply both the Bucket Policy and CORS.<br /> -Click the "Permissions" tab.<br /> -Click the "Edit" button in the "Bucket Policy" section.<br /> -Copy and paste the following policy. Replace "(companyname)".<br /> <br /> NOTE: Make sure to include both { } brackets<br /> { "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Principal": "*", "Action": [ "s3:GetObject", "s3:ListBucket" ], "Resource": [ "arn:aws:s3:::pdx-(companyname)-store-1/*", "arn:aws:s3:::pdx-(companyname)-store-1" ] } ] } <br/> <br/> -Save the new policy<br/> -Click the "Edit" button in the "Cross-origin resource sharing (CORS)" section.<br/> -Copy and paste the following CORS policy.<br/> <br/> NOTE: Make sure to include both [ ] brackets<br/> [ { "AllowedHeaders": [ "*" ], "AllowedMethods": [ "GET", "PUT", "POST", "DELETE" ], "AllowedOrigins": [ "*" ], "ExposeHeaders": [], "MaxAgeSeconds": 3000 } ] <br/><br/> -Save the new CORS policy.<br/> <br/><br/> <strong>Adding Amazon S3 IAM Users:</strong><br/> -Go to aws.amazon.com and log in using Amazon credentials.<br/> -Once logged in, go to "Services" (top left next to the search bar) and Click "IAM" under the "Security, Identity, & Compliance" section.<br/> -Click "Users" on the left hand menu, then click "Add Users".<br/> -Set the username as "nop-admin" and select the "Access key" AWS access type, then click the "Next: Permissions" button on the bottom.<br/> -Click "Attach existing policies directly", then click "Create policy".<br/> -Click the "JSON" tab and replace the default text with the following policy. Replace "(companyname)".<br/> <br/> { "Version": "2012-10-17", "Statement": [ { "Sid": "NopAdministratorAccessPolicy", "Effect": "Allow", "Action": [ "s3:GetObject", "s3:ListBucket", "s3:PutObject" ], "Resource": [ "arn:aws:s3:::pdx-(companyname)-store-1/*", "arn:aws:s3:::pdx-(companyname)-store-1" ] } ] } <br/><br/> -Click "Next: Tags", then click "Next: Review".<br/> -Set the name field as "NopAdministratorAccess" and click "Create Policy".<br/> -Go back to the add user page, refresh the table, and search for the "NopAdministratorAccess" policy and select it.<br/> -Click "Next: Tags", then click "Next: Review".<br/> -Both the Access key and the Secret key should be viewable but if not you'll need to download the csv to get the keys.<br/> -Go to the clients "Settings" sql server table.<br/> -Execute the following queries after replacing "(accesskey)" and "(secretkey)" with their respective key values. You will also need to update additional keys by heading into the Admin section, configuration-->Settings-->All Settings, search for Secret and Access. Update the Company name in the All Settings, this company name will be the same name you used for the s3 buckets setup. There will be 6 in total to update including the 2 in the update statements below.<br /> <br /> UPDATE Setting SET<br /> Value = (accesskey)<br /> WHERE Name = 'pdxbackofficesettings.adminaccesskey'<br /> AND StoreId = 0 <br /><br /> UPDATE Setting SET<br /> Value = (secretkey)<br /> WHERE Name = 'pdxbackofficesettings.adminsecretkey'<br /> AND StoreId = 0<br /> After saving all the settings you will need to create a User Group within the IAM--> User Groups area. You will create the group using the name of the group "NopUsers", Add the user "nop-admin" and add the policy called "NopAdministratorAccess". then create the group.<br /><br /><br /> <strong>Adding Amazon CloudFront distributions:</strong><br /> -Go to aws.amazon.com and log in using Amazon credentials.<br /> -Once logged in, go to "Services" (top left next to the search bar) and Click "CloudFront" under the "Networking & Content Delivery" section.<br /> -Click "Create distribution".<br /> -Set Origin domain to the bucket you are creating the distribution for. (this should automatically update the Name field to match but if it doesn't then copy the Origin domain value to Name)<br /> -Set Viewer protocol policy to "Redirect HTTP to HTTPS".<br /> -Click "Create Distribution".<br />
Summary:
Please note that all contributions to Prodigix Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Prodigix Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Prodigix Internal
Client Setup
MediaWiki home
Prodigix Clients
Clients
Client Setup
Tools
What links here
Related changes
Special pages
Page information