Questions tagged [aws-ebs]

Use this tag for questions related to Amazon Elastic Block Store (Amazon EBS), which provides block level storage volumes for use with EC2 instances.

Useful Links:

  1. AWS - Elastic Block Store
  2. Documentation
112 questions
1
vote
0 answers

kubernetes volume mount timeout

I am using PVC to attach the volume to one deployment for grafana, but it times out and container kept in creating stage. Storage class apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: grafana-storagetest provisioner:…
kapil gupta
  • 335
  • 3
  • 19
1
vote
1 answer

List all EBS volumes in an AWS Account

I am trying to get a list of all the EBS volumes in an AWS account. I'm using Python 3 and boto3 version 1.10.34. I found this post with some suggestions but neither of them work. I'm setting the ec2_client like this: import boto3 session =…
bluethundr
  • 1,005
  • 17
  • 68
  • 141
1
vote
1 answer

Does --instanceType option decide the EBS volume size mounted to EC2?

In the below command: aws ec2 run-instances --image-id ${VAR1} --key-name ${VAR2} --security-group-ids ${VAR1} \ --instance-type t2.micro --subnet ${VAR3} --iam-instance-profile Name=whatever Volume type can be EBS or EFS or whatever. Does…
overexchange
  • 15,768
  • 30
  • 152
  • 347
1
vote
1 answer

CloudWatch API returning strange results

I have some strange results while trying to query the 'Volume Write Bytes' metric using get_metric_statistics for some of my EBS Volumes. I was wondering if someone can help me understand the response I'm getting from AWS, for the purpose of this…
1
vote
1 answer

EC2-EBS root storage "Delete on Termination" set to True

I have created an EC2 Instance with "Delete on Termination" set to False at EBS Root storage. Now, I want to set it to True using AWS CLI.
Hiren Parghi
  • 1,795
  • 1
  • 21
  • 30
1
vote
1 answer

Persisting Seq logs to an EBS volume - the volume keeps detaching

I'm running the Seq docker image on an AWS EC2 instance. In order to have the logs written to persistent storage, I've attached an EBS volume to the instance, and mounted it from within the instance with the rexray/ebs plugin: docker plugin…
Dan Z
  • 696
  • 8
  • 19
1
vote
0 answers

Terraform - When creating an EBS snapshot, how to provide permission for an account number?

How to add permissions to a different account when creating an EBS snapshot with terraform? resource "aws_ebs_snapshot" "example_snapshot" { volume_id = "${aws_ebs_volume.example.id}" tags = { Name = "HelloWorld_snap" } } from console…
lak
  • 11
  • 1
  • 4
1
vote
2 answers

Ansible is there a modify-volume task?

I want to use ansible to run modify-volume and increase the volume size of instances with multiple ebs volumes attached. However, it seems that the ec2_vol task does not have a modify feature. How can I resize attached volumes using ansible?
Alex Cohen
  • 5,596
  • 16
  • 54
  • 104
1
vote
1 answer

Default BlockDeviceMappings settings for AutoScaling::LaunchConfiguration

We are using CloudFormation to create an EC2 machine using AWS::AutoScaling::LaunchConfiguration, but we never really specified the BlockDeviceMapping to use: Type: AWS::AutoScaling::LaunchConfiguration Properties: AssociatePublicIpAddress:…
1
vote
1 answer

AWS: AMI Created from Existing Linux EC2. How does this Effect EBS?

I have created an AMI from a current Linux EC2 instance. There is an EBS attached to the original EC2. When the AMI was created, how does that treat the EBS? I am worried about losing data. I am attempting to implement Blue/Green deployment for our…
marco
  • 335
  • 1
  • 2
  • 8
1
vote
0 answers

Cloudwatch event triggers a lambda when EBS snapshots' permissions are changed

I am trying to set up a cloudwatch event that triggers a lambda when the permissions on the EBS snapshot are changed. For now, the cloudwatch event is limited to the following: createSnapshot copySnapshot shareSnapshot But obviously, by using any…
1
vote
1 answer

AWS PowerShell to retrieve the Bucket name and S3 key of source bundle of Elastic Beanstalk Environment

How do I get the S3 key and bucket name of source bundle of application that is running on an elastic beanstalk environment? Suppose I deploy a java application on an elastic beanstalk Environment and I have its environment name and version label by…
1
vote
1 answer

Copy EBS snapshot from one region to another region

I wanted to copy my EBS snapshot from one region to another region. But while filtering the snapshot-id, it will return id named 1411205605 but i expected it to return something like: snap-..... . Here is my code: data "aws_ebs_snapshot_ids"…
1
vote
1 answer

How to install CMake & DLIB on AWS EB?

I am moving my project (minimal face recognition API) to Amazon Web Services Elastic Beanstalk. I am having issues with requirements.txt. I want to install DLIB which in turn depends upon CMake. I've included CMake in my requirements.txt but while…
1
vote
4 answers

AWS snapshot frequency and its effect on cost

Does the frequency of AWS snapshot have any effect on price because of network consumption or any other parameter, say snapshot every 30 minute or a single snapshot at the end of the day.