How to AWS sts assume role in one command - without jq
The issue - what it takes to assume a role
To assume an AWS role in the CLI, you will have to do something like this:
aws sts assume-role --role-arn …162 articles about aws development, tools, and best practices
To assume an AWS role in the CLI, you will have to do something like this:
aws sts assume-role --role-arn …You can create a Lambda in CloudFormation as follows:
Resources:
MyLambdaFunction:
Type: AWS::Lambda::Function …To create an AWS Lambda function using Terraform, you need to define the necessary resources in a Terraform configuration file. Here’s an …
Read Article →To create a Bastion server using Terraform, you need to define the necessary resources in a Terraform configuration file. Here’s an example of …
Read Article →To create a Bastion server using AWS CloudFormation, you need to define the necessary resources in a CloudFormation template. Here’s an example …
Read Article →To create a cross-account role in Terraform, you need to perform the following steps:
Define the IAM role in the Terraform …
Read Article →To create a cross-account role in CloudFormation, you can follow these steps:
Create a new CloudFormation template …
Read Article →To create public and private subnets in AWS CloudFormation, you can use the AWS CloudFormation Template Language (CFT) to define your network …
Read Article →To create public and private subnets in Terraform, you can use the AWS provider to define your network configuration. Here’s an example …
Read Article →To create an Internet Gateway and associate it with an EC2 instance using AWS CloudFormation, you can follow these steps:
To create an Internet gateway and assign it to an EC2 instance using Terraform, you can follow these steps:
If your organization has blocked registry.terraform.io and has instead downloaded the provider binaries to Nexus, then you can do the following to …
If you’re running a Fargate task and it’s not able to read secrets from AWS Secret Manager, there are a few things you can check:
Verify …
In order to deploy a Java application into AWS ECS (Elastic Container Service) using Terraform, we need to consider a few different things.
Amazon API Gateway supports various protocols for exposing APIs, including:
This is the most common and widely used protocol for web …
Read Article →If you get the following error:
│ Error: creating Amazon S3 (Simple Storage) Bucket (<your-bucket-name): TooManyBuckets: You have attempted to …
Read Article →This is a simple chatbot in Python using the NLTK library.
See the below example Python code:
# Import necessary libraries
from nltk.chat.util import …The following example Terraform code snippet creates a Transit Gateway with VPC and VPN attachments:
provider "aws" {
region = …The following Terraform code snippet creates an EC2 instance for you.
provider "aws" {
region = "us-west-2"
}
resource …Disaster recovery (DR) in AWS involves creating a plan and set of procedures to help your organization recover from a catastrophic event, such as a …
Read Article →If you would like to list all AWS Lambda Function Names in your CLI using the AWS CLI, then you can do this:
aws …
Read Article →
If you need to install AWS SAM CLI on a Mac, then the easiest option is to use Homebrew with the following commands:
brew tap aws/tap
brew install …
Read Article →
If you are using AWS Elemental MediaPackage and hit the following error, then you need to either do one of the following:
Read Article →
Error: error waiting for …
To bootstrap an AWS CDK environment, you simply need to do the following:
npx aws-cdk bootstrap
…for each environment that you would like the …
Read Article →