Questions
Browse questions with relevant AWS tags
1,508 questions
Has recommended answerDoes it make sense to "Let Cloudfront access S3 with VPC endpoint"
It sounds like their requirements are: They have some 'public static assets' in an Amazon S3 bucket They want those assets to be publicly accessible via CloudFront (accessible to the entire world ...
Dynamo Pulumi setup not accepting L list data type
Pulumi is used to create Infrastructure as Code (IaC). When creating DynamoDB tables, you never declare non-key attributes as DynamoDB is schemaless. As you only declare key attributes, they must ...
How to create 1000s of tables in redshift serverless automatically using boto3?
When calling execute_statement(), an asynchronous process is running the command. I suspect the problem is that the previous commands are still running when you keep submitting more commands. Your ...
Does Unsupported element '$[query][scanIndexForward]'
ScanIndexForward should not be nested within the query map, its one level higher: return { version: '2017-02-28', operation: 'Query', query: { expression: '...
How do I control the FQDN for my AWS load balancer?
The problem is I don't seem to have any control over the -971871181 part (which changes each time), You can't control that nor can I see how to create a CNAME record in ap-southeast-2.elb.amazonaws....
Terraform cloudwatch_log_group_retention_in_days in ECS module doesn't work for CloudWatch retention setup
Here's the documentation for that service module. Per that documentation, the entire container_definitsions block just gets passed straight to AWS by the Terraform module. Everything inside that block ...
DynamoDB - Single table with multiple entities - Fetch multiple entity data in one query
You can use BatchGetItem which will allow you to obtain up to 100 items from the table. You can use Query, should all the entities share the same partition key. If they do not, your use-case could ...
How do I use the DynamoDB document client to set an attribute to a string representation of an integer?
DocumentClient is not doing anything special, it's simply setting the values as it's Inferred from JavaScript variables. const attr = 'Password'; const attrVal = "456789"; dynamoInput....
AWS Route Calculator API/ Here Maps
From Routes - Amazon Location Service: Traffic and departure time The Amazon Location Service takes traffic into account when calculating a route. The trafffic that it considers is based on the time ...
AWS Route 53: cost of having a subdomain on another DNS provider than AWS
So adding NS records for rbl.example.org and pointing them to a non-AWS DNS provider. I cannot find this setup in the Route 53 pricing page. Any idea if there are even costs associated with such a ...
Understanding of the AWS SQS visibility timeout
Simple answer: You should set the Invisibility Timeout to several times the expected time that it will take to process the message. Detailed answer: When a message is retrieved from an Amazon SQS ...
Clarification for AWS auto-scaling of instances
Does it mean that AWS auto-scaling checks the desired/minimum/maximum no. of instances running from the AMI group provided? Other instances (which were no created from the AMI such as the original ...
Aws code deploy when deployment is considered successful for ecs fargate
Fargate instance == task. An ECS instance is an instance of a task, not to be confused with EC2 instances. As for a successful deployment, per the documentation: After a successful deployment, the ...
How can I know if an AWS ECS service is idle?
ECS tasks are just docker containers. The ECS service itself does not have any real insight into what is running inside those containers, other than to report the amount of memory and CPU they are ...
Instances scaling (by ASG) but no new tasks being created
This is wrong and will not work: If average instance CPU usage is over 50%, I want the ASG to add more instances using simple scaling. (and if have usage falls under 40, scale back in to min desired ...
How to Share Specific Documents from a Private S3 Bucket as Attachments in Chat?
Is generating pre-signed URLs the best approach for securely sharing specific documents from a private S3 bucket? Yes, this is exactly what S3 pre-signed URLs were designed for. If so, could someone ...
How to set up CloudWatch Alarm for AutoScalinGroup > dynamic scaling (used in ECS)
In the metrics console, click ECS, then click ClusterName, ServiceName, then select the metric in the list that has your cluster name, sevice name, and also a Metric name of CPUUtilization
@aws-sdk/client-dynamodb ScanCommand not retrieving all records in DynamoDB table
DynamoDB paginates the results from Query/Scan operations. With pagination, the Query/Scan results are divided into "pages" of data that are 1 MB in size (or less). An application can ...
How to model Student/Teacher/Class with DynamoDb?
Given your requirements and access patterns, let's explore a more streamlined DynamoDB schema design using a single-table approach. Entities and Access Patterns Entities: Teacher Student Class ...
Find a specific ID from the array javascript dynamoDB(local)
To get an item in a list, you have to pass in either the index or the total value of the object, which you are not. I suggest that you vertically partition then data that each item in the list is it's ...
AutoScalingGroup: Load balancer target group not appearing as available option
Your Load Balancer connects to your ECS tasks, not your EC2 instances. You don't need to associate your load balancer with your EC2 instances. You do need to associate your ECS Cluster's Capacity ...
How to check if a result is received?
In the JS SDK, Item will not be returned so you can simply check like this: const res = await client.send(new GetItemCommand({ TableName: 'my-table-name', Key: { ID: { S: id }, }, }...
Will DynamoDB accept a string literal defined with backticks on separate lines as an UpdateExpression?
Yes this will work without issue.
Handling concurrent updates to dynamodb without overwriting
Let me tell you how I would do it, and then I'll explain how you could do it with your current design if you have an additional requirement that you didn't mention. Option 1 By far the best approach ...
How to get the url of ecs service
There is no such thing as an ECS "service URL". You would have to add a load balancer in front of the ECS service, and then use the load balancer's URL. And for what you are doing (internal ...
How to use DynamoDB data?
The compiler does not know for certain if your parameters exist for that given object in the response. You should implement an interface or type assertion for the item object. https://www....
VPC SQS Endpoint dont show any dataflow for event from S3 to SQS and SQS to Lambda
The flow is: Amazon S3 sends a message to the Amazon SQS queue The AWS Lambda service polls the Amazon SQS queue for messages Both of these operations run in the AWS backplane and do not traverse ...
How to set up application load balancer (ALB) with AutoScalingGroup (ASG)
I saw somewhere (can't remember where) that it should be IP addresses, and then not to register any targets to the TargetGroup created (because ECS does this automatically?) Is that how it works? Yes,...
DynamoDB Storage type for an array of objects?
You're looking to store an array/list in DynamoDB, then use the List data type! List A list type attribute can store an ordered collection of values. Lists are enclosed in square brackets: [ ... ] A ...
Can I grant access to another AWS account only through Identity and trust policy
It appears your situation is: A bucket Bucket-A in Account-A An IAM Role Role-A in Account-A that trusts Account-B You wish to access the bucket from Account-B To do so, you should do the following: ...
how to solve this error in ec 2 and route 53
DNS services like Route 53 can only assign a name to an IP address. It is not possible to include a port number in a DNS resolution. Even with a custom domain name, you would need to use example.com:...
AWS Lambda unable to work with \n as string
It looks like the \n newlines in the source event are being escaped to \\n before presentation to your Lambda function. One way to deal with this is to unescape them, as follows: mystr.replace("\\...
Running NodeJS service in AWS Fargate
All you have to do is assign a role with similar permissions (or even the same role) as the ECS Task Role. The code in your question will work exactly the same once you do that. You don't have to ...
Lambda Nodejs Event Listener
Your noIPService function makes a call that will yield a result asynchronously but your code, as written, does not correctly wait for that asynchronous callback to happen. One way to correct it is as ...
How to efficiently store and query data with key-value pair in AWS S3 and Athena?
A more-traditional format would be separate rows for each relationship. For example: Customer_ID, Product, Quantity C1, P1, 3 C1, P2, 1 C1, P3, 5 C2, P2, 2 C2, P4, 7 Millions of rows are no problem. ...
Amazon ECS service deployment state change events is not created nor sent to event bridge
I think that is because you are using AWS CodeDeploy as the ECS deployment controller, instead of AWS ECS. You would need to listen to CodeDeploy events instead of ECS deployment events. I'm having ...
How to access resources in a private EC2 instance via ELB?
Is diagram correct? No, the Application load balancer needs to be in VPC subnets, not just in the VPC. I start a node server, and it's ok. Following AWS Network's concept, EC2 instance is in a ...
AWS boto3 can't create a bucket - Python
There's a couple of issues: When creating a bucket, the boto3 client needs to connect to the same region as where the bucket is being created. Therefore, you will need to pass a region_name when ...
"no pg_hba.conf entry" error when connecting to AWS RDS database
When connecting to an Amazon RDS PostgreSQL database, you need to enable SSL on the connection. You did not show us the code you are using for the connection, but there would normally be an ssl or ...
AWS Auto Scaled Instance is completely empty of all the files and folders I copied over during initial instance provisioning
Terraform is not involved in the auto-scaling action performed by AWS. The Terraform null_resource ran once, after the resource "aws_instance" "sample_gen_server" was created. It ...
DynamoDB BatchGetCommand 400 "key does not match schema"
Yes there is, as I explained in the last question that you're using the high level client but the low level syntax. { sku: "RVR-8-F" } Make yourself familiar with this blog post: https://aws....
Accessing RDS instance from EC2 instance in a different VPC [2024]
To test your scenario, I did the following: Created a Database VPC with only a private subnet and a CIDR of 10.0.0.0/16: Created an App VPC with one public subnet and a CIDR of 10.1.0.0/16: Created ...
AWS ECS SpringBoot API with RDS PostgreSQL - all tables dissapear 3-4 minutes AFTER a succesful start up
On further reading, it sounds like you have the hibernate DDL-AUTO set to create-drop so when the old ECS task is stopped, after the new task has been flagged by ECS as healthy, it is deleting the ...
Pagination in aws dynamodb
DynamoDB does not page based on arbitrary indices, it pages based on your items. For a Query in your instance, code which is the partition key must remain the same, pagination uses the sort key Date ...
How to check if a file uploaded to AWS S3 has the same content as a local file
From Checking object integrity - Amazon Simple Storage Service: Amazon S3 uses checksum values to verify the integrity of data that you upload to or download from Amazon S3. In addition, you can ...
Debounced s3 notifications to execute a lambda
S3 doesn't have folders, just object prefixes, and there is no concept of "debounce notifications by object prefix" in S3. You will have to build something yourself to handle this. A few ...
How can I set up email notification for an AWS service (CloudTrail) goes down?
It rather rare that an AWS service goes down, but take a look at AWS Health: AWS Health provides ongoing visibility into your resource performance and the availability of your AWS services and ...
Dynamo DB - Query GSI using composite keys: date range and a attribute
Strings are ordered lexicographically, and because you start with the date, you will get all of the categories back. You need to prepend the date with the type: get GS2SK() { return `CATEGORY#${...
Add A Single Column CSV To DynamoDb Table Via S3
Can I make the domain on each line my PK? Yes, so long as each domain in the entire file is unique Do I need to define a PK in my CSV header? For example, I want to name my DynamoDb domain column, &...
Cannot see logs in aws CloudWatch for failed Service deployment (Updated: GPU resource insufficient error)
During cluster create, I used a1.medium (arm64 - since I built the image locally on my mac M2 which is arm64)... I tried using Amazon Linux 2 (arm64) as well ... no luck (same error) You are just ...
Simply submit a proposal, get it approved, and publish it.
See how the process works