serverless-workshop | ️ Open source serverless workshop | Serverless library
kandi X-RAY | serverless-workshop Summary
kandi X-RAY | serverless-workshop Summary
This repo will teach you the core concepts of serverless and walk through a variety of ready to deploy serverless architectures. If you'd like the serverless training for your team, get in touch with me.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of serverless-workshop
serverless-workshop Key Features
serverless-workshop Examples and Code Snippets
Community Discussions
Trending Discussions on serverless-workshop
QUESTION
I am new to azure and i found one interesting project that i want to implement. Here is the guthub link: https://github.com/Azure-Samples/azure-serverless-workshop-team-assistant/blob/master/6-scheduler-bot/README.md
I did all the steps, but when i run my function in Logic App Designer i get the following error:
...ANSWER
Answered 2020-Oct-20 at 12:58Reading through the Article you have referenced, the people
will be the part of the body of the request.
Sample Body : (as per the article)
QUESTION
I am new to using AWS and Serverless Application Model (SAM). While following the GitHub of one of the recent AWS Virtual Workshop, I am facing problem in SAM deployment.
In particular, while following the module 1, these are the steps they provide (All these steps are performed from Cloud9
terminal):
- Find the Account Id.
accountId=$(curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .accountId)
- Name the S3 bucket appending the Account Id
s3_deploy_bucket="theme-park-sam-deploys-${accountId}"
- Create the s3 bucket with that name.
aws s3 mb s3://$s3_deploy_bucket
- Go to the appropriate directory with SAM YAML file.
- Package
sam package --output-template-file packaged.yaml --s3-bucket $s3_deploy_bucket
- Deploy
sam deploy --template-file packaged.yaml --stack-name theme-park-ride-times --capabilities CAPABILITY_IAM
All the steps work well until step 5. On executing step 6, after the successful creation of a few resources, I am facing an error on a particular creation and it fails. This results in a rollback and all created resources are also deleted.
ResourceStatus
: CREATE_FAILED
ResourceType
: AWS::Events::Rule
LogicalResourceId
': UpdateRidesUpdateRidesEvent
ResourceStatusReason
: User: arn:aws:sts::969009900039:assumed-role/vocstartsoft/user810955=ameya.181co205@nitk.edu.in is not authorized to perform: events:PutRule on resource:arn:aws:events:us-east-1:969009900039:rule/theme-park-ride-times-UpdateRidesUpdateRidesEvent-1C6BYBO984UL7 with an explicit deny (Service: AmazonCloudWatchEvents; Status Code: 400; Error Code: AccessDeniedException; Request ID: c6d8162d-a3f1-405f-b6e8-2fd5437c4392)
Please let me the solution to this problem. Thanks in Advance.
...ANSWER
Answered 2020-Jul-11 at 12:01Since you are using AWS Educate Starter Account
, you have a lot of limitations imposed on what you can and can't do in your sandbox account.
The general list of what is allowed is:
Also note that this is not exhaustive list:
Some services may have additional restrictions as described in the table below.
The error message you got is an explicit deny. This means that you aren't allowed to do what you are attempting due to limitations of the starter account.
An alternative to using the start account, is using having your account (an option only for educators on AWS Educate). This way, if you are educator, AWS Educate could provide you credits towards your classes. But since you use your own account, you would have full control over it.
If the error you are facing is part of a classroom or tutorial they provide, you may contact their customer support. If this deny prohibits you from completing their own tutorials or classrooms, they should be able to fix that.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install serverless-workshop
Install the latest LTS version of Node. How to install Node.
Verify you have git on your machine Most machines come pre-loaded with git. 🎉 To verify you have git, open up your terminal and run: which git This should return a path of where git is installed. If the command returns git not found, we will need to install git on your machine.
Setup a AWS account. If you don't already have an AWS account, let's get one setup. Click here to setup a free AWS account It's recommended to not use pre-existing AWS account running production code. Make sure you add valid billing information and verify your account.
Install serverless CLI Open up your terminal and run: npm install serverless -g
Connect the serverless CLI with your AWS account credentials. See the docs or watch the video
Verify the Serverless CLI works on your machine Open up your terminal and run: serverless --help This should return the list of commands from the CLI tool. Now let's verify your AWS account is correctly configured. Open up your terminal and run the following commands: # create a test project serverless create --template aws-nodejs --path my-test-service # move into the `my-test-service` directory cd my-test-service # deploy the test service to verify AWS credentials serverless deploy This should deploy the test service into AWS. If you encounter errors, please ping me and we can get them sorted out.
If you have an IDE/editor with YAML linting it will be helpful. (like this atom plugin, or vs code plugin)
Install postman for quick & easy testing of endpoints we deploy
It's also recommended that you use nvm (node version manager) just in case you need to change versions of node for the workshop.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page