Questions tagged with Amazon EC2

Content language: English

Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

I have the following Cloudwatch alarm set on my instances: ``` aws cloudwatch put-metric-alarm \ --alarm-name stop-when-idle \ --namespace AWS/EC2 \ --metric-name CPUUtilization \ --statistic Maximum \ --period 300 \ --evaluation-periods 3 \ --threshold 10 \ --comparison-operator LessThanThreshold \ --unit Percent \ --dimensions "Name=InstanceId,Value=$INSTANCE_ID" \ --alarm-actions arn:aws:automate:$AWS_REGION:ec2:stop ``` However, it recently failed to run; it triggered successfully, and two seconds later attempted to run the stop action, but it says: ``` Failed to execute action arn:aws:automate:us-east-1:ec2:stop. Received error: "" ``` Looking at the full details, I see: ``` { "alarmName": "stop-when-idle", "alarmType": "MetricAlarm", "timestamp": "2023-03-16T07:01:07.187Z", "historyItemType": "Action", "historySummary": "Stop EC2 Instance 'i-REDACTED' failed", "historyData": { "actionState": "Failed", "stateUpdateTimestamp": 1678950065929, "notificationResource": "arn:aws:automate:us-east-1:ec2:stop", "publishedMessage": null, "error": null } } ``` With no error listed. What can I do to figure out why this didn't work?
0
answers
0
votes
28
views
mikeage
asked 6 days ago
if my instance is running! can i change instance type or is there is any way for auto scaling and if there is a way how to do that?
3
answers
0
votes
12
views
asked 6 days ago
I am attempting to setup Patch Manager for all my AWS instances but all my Ubuntu servers are failing on scan. I've checked the servers to ensure the SSM agent is installed and the service is running. Servers are running Ubuntu 22.04.2. When I run a scan I receive the below output error: /var/log/amazon/ssm/patch-baseline-operations/jmespath/visitor.py:32: SyntaxWarning: "is" with a literal. Did you mean "=="? if x is 0 or x is 1: /var/log/amazon/ssm/patch-baseline-operations/jmespath/visitor.py:32: SyntaxWarning: "is" with a literal. Did you mean "=="? if x is 0 or x is 1: /var/log/amazon/ssm/patch-baseline-operations/jmespath/visitor.py:34: SyntaxWarning: "is" with a literal. Did you mean "=="? elif y is 0 or y is 1: /var/log/amazon/ssm/patch-baseline-operations/jmespath/visitor.py:34: SyntaxWarning: "is" with a literal. Did you mean "=="? elif y is 0 or y is 1: /var/log/amazon/ssm/patch-baseline-operations/jmespath/visitor.py:260: SyntaxWarning: "is" with a literal. Did you mean "=="? if original_result is 0: No IMDS credentials found on instance.failed to run commands: exit status 156
1
answers
0
votes
21
views
Skyrail
asked 6 days ago
So, have some DMP files that was exported from a oracle on premise, using expdp. And now from the linux EC2 instance i need import those dumps that is already there if is possible using the impdp but since there is no access to directory in the RDS instance how to do that? On linux i hace oracle installed and i can connect by sqlplus in the target db.
3
answers
0
votes
26
views
asked 6 days ago
Hi, I need to redirect one of my subdomains to the URL of an Amazon Managed Grafana. I used to have an EC2 instance running Grafana so I easily had a static IP address, but now I migrated the service to the Amazon Managed Grafana and haven't found a way of associating a static IP address to it's public URL. Thanks for any help!
0
answers
0
votes
9
views
asked 6 days ago
I have a problem that I'm trying to fix for my school project. Let's say I have account A and my friend accounts B. each one of us as 1 instance ubuntu, and I want to transfer/allocate my elastic ip (if a program fails) to his instance through AWS CLI. both instances are in the same vpc, same subnet. so I have a script that disassociates the elastic ip and associates the new one to his instance like this. aws ec2 disassociate-address --public-ip 00.00.000.00 (maybe on the script here I have to tranfer the elastic ip or make the awscli access his account?) aws ec2 associate-address --public-ip 00.00.000.00 --instance-id i-00000000 of course, it won't work because the AWS CLI is connected to my account but I can't seem to find a way to make this work. Possible ways, transfer ip but don't know how to do it in an automated way, iam roles? I don't mind having both instances on one account but since we are 2 I would like to take advantage of the free tier since it's our first time using aws. Any idea how I can make this work?
2
answers
0
votes
23
views
asked 7 days ago
Hey, I did configure SES correctly, but i am still enable to send or receive mails from : example@domain.com. from the verifying identity, i did verify my domain name and one of my mails address, the other is pending because i am enable to receive the verification link. SMTP is configure correctly. and is out of sandbox. Also : i can receive emails from amazon only. Note : i can send mails normaly from FluentSMTP linked to AWS
1
answers
0
votes
15
views
asked 7 days ago
Hi, I would like to know traffic cost on AWS. Bellow situation, will traffic cost be free or will cost ? 1. EC2 instance to S3 (same region, not use endpoint) 2. S3 to EC2 instance (same region, not use endpoint) Thank you.
1
answers
0
votes
9
views
asked 7 days ago
When I launch a new instance from an AMI (this AMI opens steamVR after logon), steamVR runs into an error. From what I have been reading it is because when an instance is launched based on an AMI, the EBS volume attached to the ec2 instance needs to get all the data from the snapshot that the AMI is based off of. i/o operations are slow for the first read and therefore when SteamVR is launched on login, it runs into a critical error. more details are here: https://forums.developer.nvidia.com/t/failed-watchdog-timeout-in-thread-server-main-in-cloudxrremotehmd-after-10-440015-seconds-aborting/180742/10 In this post, the final reply is the following: "We did figure out a workaround last week. It turns out this issue is related specifically to AWS machines with EBS. When you start an EBS-backed machine in AWS, the EBS volume needs to be hydrated from the snapshot that it is based on. The snapshot data is backed by S3, and therefore is very slow for the first read of data from the volume. We are now using a little PowerShell script to basically cat {files} > /dev/null for all the files in the CloudXR and SteamVR directories before we start SteamVR. This hydrates those files into the volume so that they are fast, and we haven’t had issues crashing since then. More information on this is here: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-initialize.html#ebs-initialize-windows. Hope this helps." How do I initialize the ebs volume for only the files in the steamvr and cloudxr directories? If I did use fio/dd to initialize the entire volume (200gb), how long would that take? Any help would be greatly appreciated!
0
answers
0
votes
9
views
asked 7 days ago
Hello I have two EC2 compute connecting for api service.I need to secure for data in-transit via certificate(tls) Prepare for private domain example use test-abc.domain How can I generate certificate(free) and exchange certificate between EC2 ? Use certbot or any service ? Please advise ?
2
answers
0
votes
21
views
Dopod
asked 8 days ago
Hi there, I just created a new EC2 instance by cloning the existing instance with Windows Server 2019. I would like to use the existing IP address for the new instance if I can turn off the existing one. Is it possible to do this? Thanks
2
answers
0
votes
12
views
asked 8 days ago
Dear All, Can you assist me in obtaining the backup report for an Amazon EC2 instance, I am trying to get it but it is not working properly. The following are the queries I am using. SELECT configuration, configuration.Status, configuration.CreationDate, configuration.CompletionDate, configuration.BackupVaultName, configuration.RecoveryPointTags, configuration.BackupSizeInBytes, configuration.ResourceName, configuration.Lifecycle, accountId, resourceId, awsRegion, resourceName, resourceType WHERE resourceType IN ('AWS::Backup::RecoveryPoint','AWS::EC2::Instance') AND configuration.CreationDate = date(-24h)
1
answers
0
votes
23
views
Arts
asked 8 days ago