Step 1: Verify if the ENA is already enabled on the EC2 Instance by running the below command: aws ec2
Continue readingCategory: How-To Guides
Alter table commands for Redshift
ALTER TABLE table_name OWNER TO new_owner; ALTER TABLE table_name RENAME TO new_name; ALTER TABLE table_name ADD column_name column_type; ALTER TABLE
Continue readingHow to unload and copy data in Redshift
unload (‘SELECT * from schemaname.tablename’)TO ‘s3://bucketname/filename’credentials ‘aws_access_key_id=XXXXXX;aws_secret_access_key=XXXXX’DELIMITER ‘|’allowoverwriteESCAPE; copy schemaname.tablenamefrom ‘s3://bucketname/filename’credentials ‘aws_access_key_id=XXXXXX;aws_secret_access_key=XXXXX’DELIMITER ‘|’ESCAPE;
Continue readingHow to Create user in Redshift database
CREATE USER username PASSWORD ‘password‘; CREATE USER username PASSWORD ‘password‘ CREATEDB; CREATE USER username PASSWORD ‘password‘ CREATEDB CREATEUSER; CREATE USER
Continue readingHow to create a CloudFront distribution for your S3 website
CloudFront is Amazon’s content delivery network (CDN) service that quickly and securely delivers your content to end users all around
Continue readingHow to generate pre-signed url to securely share S3 objects.
By default, all S3 buckets and objects are private and only the account that owns the objects has permissions to
Continue readingHow to allocate a new Elastic IP and associate it to an EC2 Instance
Elastic IP is a public static IP that is associated with your AWS account. You can associate it to any
Continue readingHow to access S3 from EC2 Instance using IAM role
An application running on EC2 instance that needs access to S3 requires credentials. You can distribute credentials to the app
Continue readingHow to host a static website using Amazon S3
Steps: Create S3 bucket Upload index.html and error.html to the S3 bucket Enable website hosting on the bucket Add bucket
Continue readingHow to install and configure AWS CLI on Windows and Linux machines
AWS CLI (Amazon Web Services Command Line Interface) is a tool provided by AWS to manage all the AWS services
Continue reading