Skip to content
Permalink
Browse files

Remove spice

  • Loading branch information...
hubertc
hubertc committed Nov 29, 2017
1 parent 793d0e3 commit 9131fbe877a9ab31e8bbd329914a7dfe4133f35b
Showing with 5 additions and 5 deletions.
  1. +1 −1 client/iridium/iridium.py
  2. +1 −1 client/magnesite/magnesite.py
  3. +2 −2 workshop3/index.html
  4. +1 −1 workshop3/readme.md
@@ -78,7 +78,7 @@ def order():
produceResource()
response = fulfill(endpoint, 1)
if response == requests.codes.ok:
print 'Spice fulfilled'
print '%s fulfilled' % resource
return 'Your order has been fulfilled'
else:
print response
@@ -78,7 +78,7 @@ def order():
produceResource()
response = fulfill(endpoint, 1)
if response == requests.codes.ok:
print 'Magnesite fulfilled'
print '%s fulfilled' % resource
return 'Your order has been fulfilled'
else:
print response
@@ -781,7 +781,7 @@
Choose **Custom Policy**. Name it **AccessECR**. In the Resource section for ssm:GetParameters, make sure you replace the REGION and ACCOUNTNUMBER so we can lock down CodeBuild's role to only access the right parameters. Enter the following policy:<br/><br/>

<pre>
`{
{
"Version": "2012-10-17",
"Statement": [
{
@@ -804,7 +804,7 @@
"Effect": "Allow"
}
]
}`
}

</pre>

@@ -759,7 +759,7 @@ Once the pipeline is created, CodePipeline will automatically try to get the mos

The link brings you to the execution details of your specific build. We can look through the logs and the different steps to find out what's wrong. In this case, it looks like the **PRE_BUILD** step failed with the output message of **Error while executing command: $(aws ecr get-login --region $AWS_DEFAULT_REGION). Reason: exit status 255**<br/><br/>

Looking in the logs, we can see that **AccessDeniedException: User: arn:aws:sts::123456789012:assumed-role/code-build-prod-iridium-service-service-role/AWSCodeBuild-e111c11e-b111-11c1-ac11-f1111a1f1c11 is not authorized to perform: ssm:GetParameters on resource: arn:aws:ssm:us-east-2:123456789012:parameter/interstella/orderTopic status code: 400**<br/><br/>
Looking in the logs, we can see that **AccessDeniedException: User: arn:aws:sts::123456789012:assumed-role/code-build-prod-iridium-service-service-role/AWSCodeBuild-e111c11e-b111-11c1-ac11-f1111a1f1c11 is not authorized to perform: ssm:GetParameters on resource: arn:aws:ssm:us-east-2:123456789012:parameter/interstella/iridiumTargetGroupArn status code: 400**<br/><br/>

![CodePipeline Build Failure Details](images/2-cp-build-failure-details.png)

0 comments on commit 9131fbe

Please sign in to comment.
You can’t perform that action at this time.