AWS Certified Developer Associate: Difference between revisions
Line 78: | Line 78: | ||
* phases : install : finally | * phases : install : finally | ||
Have to install Java sdk & maven | Have to install Java sdk & maven | ||
We can have more than one BuildSpec file | |||
===Create Build Project=== | ===Create Build Project=== | ||
* Choose manage image | * Choose manage image |
Revision as of 18:42, 24 February 2020
Anazon Web Services
IAM
- Policies specify specific permissions
- Roles are a collection of policies that services are assigned in
- To groups can be assigned policies as well
Security
User pools
Directories that provide signup and sign-in options for you app users.
Anonymous Access
Anonymous Access creates Identity pools for you.
Identity Pools with Cognito
Identity pools provide AWS credentials to grant your users access to other AWS services.
Roles
Roles are collections of policies to which services are assigned.
IAM
In IAM, which areas need to be considered with restrictions and access? Computing, Storage, Database, and App services
Development
DynamoDb
Schema-Less database that only requires a table name and primary key
Lambda
AWS Lambda is a computing service that lets you run code without provisioning or managing servers.
DynamoDB
Can you use Oracle RDBMS with DynamoDB? No; DynamoDB is for non-relational databases, and Oracle is a relational database.
Messaging and Event Driven
Message => step functions => event/lambda => SNS => SQS => Lambda
States Machines
State machines are made up of states, their relationships, and the input and output defined by the Amazon States Language.
SNS
SNS pushes its messages out to its subscribers.
SQS
SQS stores the messages until someone reads them and processes them off the queue. SQS is useful for sending and receiving messages between apps.
Deployment, Scalability and Monitoring
Elastic Bean Stalk
Deploy and scale web apps and services
CloudFormation Stacks
Configure and Maintain system
CloudFormation
Provisions and management stacks of aws resources based on the template you created to model your infrastructure
Elasticache
Service to launch and scale and manage a distributed in memory cache Caching is great to performance and efficiency
Cluster
- Redis
- Memcache
CloudFront
Global Content Delivery Network CloudFront is secure and quickly delivers data, video, applications, and APIs. This means it has shorter distances to deliver and higher performance.
Cloud Watch
You can create high-resolution alarms and automated actions. These alarms can monitor costs for your budget, metrics, events, and logs. CloudWatch alarms are part of Elastic Beanstalk, and there are two of them. What are the two alarms? CloudWatch has two alarms to monitor loads, and they trigger when the alarms are too high or too low for the auto scaling group.
AWS: Deploying Your Application to the cloud
Code Commit
Git compatible, secure and scalable source control. Can be trigger by AWS Tools It is recommanded to use IAM user. IAM has a specific section for CodeCommit credentials. Recommanded: Use MasterBranch as a trigger for deployments
- Access: CodeCommitFullAccess
How can you move files from one source control management tool to CodeCommit ? Create an empty repo. Clone your empty codecommit repo. Manually copy and commit the files into it. Then push them to the repo.
Commands
- > aws Configure
- > git --version
- > git config --global username
Code Build
buildspec.yml
- phases : install : commands
- phases : install : finally
Have to install Java sdk & maven We can have more than one BuildSpec file
Create Build Project
- Choose manage image
- We are allow to create a role
- Timeout is very important
- Specify a VPC if we need to access to other servers or services during buiild, but it isn't very common
- Choose s3 and a bucket to store the artifacts
- Standard format is zip