-
Notifications
You must be signed in to change notification settings - Fork 3
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
need to transfer infrastructure to OpenStreetMap US #111
Comments
Requesting to OpenStreetMap US (@iandees) to implement the following: Create the following two buckets in US-East:
These two buckets will have ‘Block all public access’ turned off, in the Access control list for the ‘everyone’ group all boxes will be unchecked, and the following will be entered and saved for the CORS configuration:
Also create the following two buckets in US-East:
These three buckets will have ‘Block all public access’ turned off, in the Access control list for the ‘everyone’ group all boxes will be unchecked, and the default CORS configuration can be left as is. |
I created the following buckets:
And disabled block all public access. The first two have CORS configurations added. Remaining when we're farther along:
|
I tested deploying today, but need some additional adjustments from @iandees :
These two buckets will have ‘Block all public access’ turned off, in the Access control list for the ‘everyone’ group all boxes will be unchecked, and the default CORS configuration can be left as is. |
|
ok, for item 2, please create this bucket instead: Also, I am having trouble with the permissions for the I will get with you offline about this. |
As a reminder, your account has access to do anything to buckets with the prefix In the meantime, I created the |
Thanks, noted about access using the prefix. I just keep on moving forward using the I ran the deploy command again and I was allowed to move forward. However, a new error now appears that says my user is not allowed to perform apigateway:PATCH on resource. I think this can be resolved with another edit to the permissions. In the existing permissions, there should be a block like this:
Please make sure that the is 'us-east-1'. Also add the "apigateway:PATCH" to the Actions. |
I added PATCH to the list of Actions. |
Thanks, the convert-post-request-to-yaml lambda function deployed successfully. I am now getting a new error for the serverlessS3Upload function related to permissions for the cloudformation:DescribeStacks. Can you make adjustments to the permissions to the block that looks like this:
I'm assuming the correct region and account_no are already inserted here. For the service name, you can input 'image-upload-prod'. |
|
Thanks, it got past this step now. The next permissions error is related to an Error for IamRoleLambdaExecution - API: iam:GetRole on on resource: role image-upload-prod-us-east-1-lambdaRole. Can you modify this block of the permissions:
and insert 'image-upload-prod' for the <service_name> ? |
Done! |
Excellent. This worked, so these 2 lambdas are deployed: serverlessS3Upload and convert-post-request-to-yaml. There is a final one libreoffice-convert-to-pdf that I need to deploy, but I don't have a serverless script for this. My plan is begin trying next week to deploy using AWS CLI. |
I have started trying to deploy the final function, using Serverless. Similar to the previous function, I got a cloudformation:DescribeStacks error. Can you make an adjustment in this block:
You can add another resource by adding a comma followed by a second item. In the second item can you add 'geosurge-libreoffice-convert-to-pdf*' for the <service_name> ? Also, let's modify the AWS role permissions as well. Looking at this block:
Can you add another resource item and again add 'geosurge-libreoffice-convert-to-pdf*' for the <service_name> ? Thanks |
Done! |
I'm getting this error, maybe to do with formatting. This link may help: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_resource.html
|
@iandees I spent sometime making improvements and testing a whole re-deployment of all the lambdas on another AWS account. I have a new IAM policy that I hope will take care of all the permission issues here: https://gist.github.com/d3netxer/b1d1a4012d6bf20b910c22d02ee43a80 Can you try replacing the policy with this one? You just need to replace the and <account_no> wherever needed. Thanks |
Change is made. It looks like you've been deploying to us-east-1, so I replaced |
Excellent. All of the functions deployed successfully. A few modifications are left to complete the deployment on the live site. One of the Lambda functions makes a pull request to the Github repo. For this I believe we need to post as a user who has admin access to the repo, along with a personal access token. @iandees you can either create a new Github user or use an existing one. The pull requests will be posted as that user.
|
This is done. The user is |
thanks. I am getting close, today I switched out the backends, including copying the files between s3 buckets. I need to look at the libreoffice converter a little bit more because it isn't converting pdfs to pdfs. It probably shouldn't do this, if the file doesn't need to be converted, it should just be copied from the contents upload folder to the contents folder instead; so adding an if statement should fix this issue most likely. Right now 2 project download links are broken because of this. I will try to continue fixing this and doing more tests within the next few days. |
Description
The goal is to transfer the backend infrastructure to OpenStreetMap US.
The text was updated successfully, but these errors were encountered: