How to Get Account Number from AWS Lambda
If you need to get the current Account Number, or Account ID from within a Lambda execution, then you can access invoked_function_arn from the context …
162 articles about aws development, tools, and best practices
If you need to get the current Account Number, or Account ID from within a Lambda execution, then you can access invoked_function_arn from the context …
AssumeRole – is useful for allowing existing IAM users to access AWS resources that they don’t already have access to. For example, the user might …
Read Article →Optimistic locking is a strategy to ensure that the client-side item that you are updating (or deleting) is the same as the item in DynamoDB. …
Read Article →CodeDeploy provides two (2) deployment type options:
In-place deployment: The application on each instance in the …
Read Article →Amazon ECS supports the following task placement strategies:
binpack – Place tasks based on the least available amount of CPU or memory. This …
Read Article →– All at once – Deploy the new version to all instances simultaneously. All instances in your environment are out of service for a short time while …
Read Article →You can query the ip-ranges Amazon AWS URL, and parse the results through jq as follows:
Query:
curl -s …
Read Article →
If you get the following error while running AWS CDK:
raise JSIIError(resp.error) from JavaScriptError(resp.stack)
jsii.errors.JSIIError: docker …
Read Article →
AWS CLIStep 1
export bucketname='your-bucket-here'
Step 2
aws s3api delete-objects --bucket $bucketname --delete "$(aws …
Read Article →
If you are creating a FSx file system, and want to connect it to AWS Managed Active Directory, then you will need to create a VPC Security Group with …
Read Article →If you need to create an EC2 instance in CloudFormation, then you can do the following: …
Read Article →If you need to run a command, or set of commands on an AWS ECS cluster container, then you can do the following:
aws ecs execute-command --cluster …
Read Article →
If using the EC2 launch type, the allowable network mode depends on the underlying EC2 instance’s operating system. If Linux, awsvpc, bridge, host and …
Read Article →If you need to enable Container Insights for an ECS cluster, by using the AWS CLI, then you can do the following:
aws ecs update-cluster-settings …
Read Article →
This guide showcases the ability to use imported certificates from a third party provider (e.g. Venafi) in ACM, mount them in EFS and use them …
Read Article →If you need to increase the disk size of a Cloud9 instance, you can run the following script directly from the terminal in Cloud9:
pip3 install --user …
Read Article →
If you need to get the IAM Role information from the attached EC2 role directly, you can do the following:
IAM_ROLE=$(curl -s …
Read Article →
If you need to create an Elastic Container Registry (ECR) Repository from the AWS CLI, you can do the following:
aws ecr create-repository \ …
Read Article →
When you create the Amazon ECS service, it includes three Amazon ECS task replicas. You can see this by using the describe-services command, which …
Read Article →For more information about the Amazon ECS cluster, run the following command. You will find the number of running tasks, capacity providers, and more. …
Read Article →
There are multiple types of communication in Amazon EKS environments. Lines of communication include the following:
If you get the following error:
Read timeout on endpoint URL: …
Read Article →
If you have an AWS API Gateway resource, and need it to force a redeployment using CloudFormation, then you can use the TIMESTAMP trick.
If you would like to deploy a React App to AWS S3 and AWS CloudFront, then you can follow this guide.
The following solution creates a React App and …
Read Article →