nodejs-aws-examples
Project with some examples of how to work with the AWS using the AWS SDK for JavaScript in Node.js.
Examples
EC2
Examples of how to work with EC2 instances
Creating Instances and the needed settings
- Create a Security Group ->
create-and-attach-security-group.js
file - Create and persist the KeyPairs ->
create-and-attach-security-group.js
file. - Create an instance ->
create-ec2-instance.js
file. - Create the instance Tags ->
create-and-attach-security-group.js
file.
Managing Instances
- List instances ->
manage-ec2-instance.js
file. - Terminate instances ->
manage-ec2-instance.js
file. - Stop instances ->
stop-ec2-instance.js
file.
Creating AMIs
- Create a AMI ->
create-ec2-ami.js
file.
AutoScaling
- Create a Launch configuration ->
create-launching-configuration.js
file. - Create a Load Balancer ->
create-load-balancer.js
file. - Create a Auto Scaling Group ->
create-auto-scaling.js
file. - Create a Auto Scaling Group Policy ->
create-auto-scaling.js
file.
EBS
- Detach and Attach volumes ->
reuse-ebs-volume.js
S3
- Create a S3 bucket ->
create-s3-bucket.js
- Upload some files to S3 ->
upload-s3-objects.js