Questions in Compute | AWS re:Post
Content language: English
Sort by most recent
hello,
i have an instance that SSH not working, the problem is with EBS, when i attach another EBS its working!
I'm unable to use AWS Lambda and to find a reasonable explanation.
- Dashboard shows error box with empty message
- Create form shows a spinner for 10 seconds and then stops and nothing happens
- API returns `{"message": null}`
- The user has enough permissions to use Lambda

I can just ask if someone faced something similar, since support doesn't want to answer my ticket.
Thanks
Good morning,
I have an Elastic Beanstalk environment stuck updating. I switched the auto-scaling to zero (desired, min, max) and the instance has been removed. But the status is still "updating".
The last operation was to add a listener to the ELB through the EB UI to open port 443. I tried to remove manually the listeners from the ELB but nothing changed.
I can't deploy, abort the operation, or clone.
What should I do?
I created token signature with the below command:
echo -n tokenKeyValue | openssl dgst -sha256 -sign private-key.pem| openssl base64
NOw testing the authorizer by test invoke authorizer in aws CLI with the command:
aws iot test-invoke-authorizer \
--authorizer-name my-new-authorizer \
--token tokenKeyValue \
--token-signature {created signature}
I am getting an error : unknown options:tokenKeyValue.
Please guide
I want to build a topology in the aws, but I'm not sure how to set up route and as path to route the traffic of instances to some specific instances balancedly.

expect:
192.168.0.100(az1) & 192.168.1.100(az2), announce a cidr 10.0.0.0/24 to 192.168.3.1
az1: 192.168.0.1 --> 10.0.0.1 via 192.168.3.1 & 192.168.0.100
az2: 192.168.1.1 --> 10.0.0.1 via 192.168.3.1 & 192.168.1.100
when the 192.168.1.100 is down, the traffic of az2 can be sent to 192.168.3.1 & 192.168.0.100
hi i am new here and in aws all.
i need to know if the vm ip or network will be related to my pc
i need to stay anonymous
I am using the following script to get the list of ec2 instances but running into [1]. I am able to use the same creds with session.get_available_regions(service) and session.client('sts') but it doesn't work with session.resource('ec2', region_name=region). I've verified the clock on the machine and it is synced. I would appreciate any help!
```
session = boto3.Session(
aws_access_key_id=key,
aws_secret_access_key=secret,
)
ec2_instance = session.resource('ec2', region_name=region)
for instance in ec2_instance.instances.all():
print(instance)
```
[1]
```
Failed to run listener function (error: An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials)
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/ops/listener/thread_runner.py", line 120, in run_ack_function_asynchronously
listener.run_ack_function(request=request, response=response)
File "/usr/local/lib/python3.10/dist-packages/ops/listener/custom_listener.py", line 50, in run_ack_function
return self.ack_function(
File "/home/ops/codeserver/awsops.py", line 439, in get_ec2_instances
for instance in ec2_instance.instances.all():
File "/usr/local/lib/python3.10/dist-packages/boto3/resources/collection.py", line 81, in __iter__
for page in self.pages():
File "/usr/local/lib/python3.10/dist-packages/boto3/resources/collection.py", line 171, in pages
for page in pages:
File "/usr/local/lib/python3.10/dist-packages/botocore/paginate.py", line 269, in __iter__
response = self._make_request(current_kwargs)
File "/usr/local/lib/python3.10/dist-packages/botocore/paginate.py", line 357, in _make_request
return self._method(**current_kwargs)
File "/usr/local/lib/python3.10/dist-packages/botocore/client.py", line 530, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.10/dist-packages/botocore/client.py", line 960, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials
```
Hi,
I have two instances which were in Lightsail (1. Windows Server 2. Ubuntu Linux), and I need to transfer them to another AWS account. I got instructions from support on how to go about it.
1. Create snapshots
2. Create an EC2 instance from the snapshot
3. Use the AMI as a baseline snapshot to transfer the server's instance to another account
The problem I'm facing in the last step is when I try to transfer the instance, I get the notification that the server's partitions are encrypted. I'm not sure how to go about fixing this.
Has anyone been able to solve this?
Hi folks. We have developed an IoT application and all is going great with the receiving of messages from our IoT Device to trigger Lambda's. The next step is to Publish messages from a Lambda to the device using JavaScript. I can successfully Publish back to the device using the Test option from the web console. I can't seem to find JavaScript sample Lambda code that shows how to connect to a specific Thing and then Publish to it. Would also need to understand the security required for the Lambda connection to the Thing (ie. does the Lambda have to load the same certificates used by the IoT Device).
I appreciate any help.
Thanks. Grant.
Hi AWS,
I have deployed a backend application written in NodeJS on EC2 instance. Post that I have created the CI/CD pipeline for the same using Jenkins pipeline. I don't want to store the .env file on the source control (Bitbucket in my case), rather want to create it on the fly and use them as Jenkins secrets.
However when the pipeline completes and resulted into the SUCCESS state the .env file is not getting stored on the EC2 instance where the repository is cloned. Can you please tell me what's the reason for that.
I have an Launch Template which has the security group attached to it. I can launch an instance that works fine from this template. From the template I created an Auto Scaling gorup. When I look at the AS group I do not see the Security Group at all. I just see a dash. When I try to run the AS group it fails to create the instance. When I look at the failed instances they too do not have a security group.
What am I doing wrong??? How do I add the group to the AS Group or get it to pull in the one from the Launch Template.
Hi All,
Is there a way to Set up Inactive Alert: Setting up alerts for all instances that were running at any time during the last 14 days and alerts you if the daily CPU utilisation was 10% or less and network I/O was 5 MB or less on 4 or more days.
Regards,
Rajesh B