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
3
votes
1 answer

How to copy / move data from AWS EBS to EFS?

I've mostly found old answers and I'm not sure I understand the AWS guide. The AWS guide for some reason assumes I have an NFS server as source. Other people suggest simply mounting EBS and EFS and using a simple "cp" command. Unfortunately that's…
SebK
  • 487
  • 4
  • 12
3
votes
1 answer

How to guarantee that my Kubernetes EBS volume will be in the same AZ as the deployment?

I have a k8s cluster on AWS (3 nodes, across us-east-1a, us-east-1b and us-east-1c) and I'm trying to use an awsElasticBlockStore volume but I keep getting a InvalidVolume.ZoneMismatch error. I create the volume via aws-cli: aws ec2 create-volume…
Joshua Hansen
  • 356
  • 4
  • 7
2
votes
1 answer

How does terraform handle mounting an AWS Elastic Block Store (EBS) with regards to partitioning?

Sample terraform code snippet for mounting an EBS (just for context): resource "aws_ebs_volume" "ebs-volume-1" { availability_zone = "eu-central-1a" size = 20 type = "gp2" tags = { Name = "extra volume data" …
alt-f4
  • 2,112
  • 17
  • 49
2
votes
0 answers

how to create a ebs Elastic Beanstalk application using mariadb

How can i create an EBS Elastic Beanstalk application using Mariadb instead of MySQL? Is this feature available? If not is there a place we can vote for this feature?
Pascal
  • 2,377
  • 3
  • 25
  • 40
2
votes
1 answer

How to monitor kubernetes persistence volume claim i.e disk usage

Currently I am using Kubernetes v1.11.6. I deployed kubernetes in AWS by using KOPS. In k8s cluster, deployed kafka, elasticsearch. PVC for kafka and elasticsearch are EBS volumes in AWS. My question is how to monitor PVC used and remaining…
2
votes
1 answer

Encrypted volume and own KMS key with AWS CDK fails

I'm trying to create a EBS Volume with the AWS CDK that is encrypted by my own KMS key in C#, with this snippet: var kmsProps = new EncryptionKeyProps { Description = "Encryption key for Storage", EnableKeyRotation = true, Enabled =…
2
votes
1 answer

Delete previous snapshots and create new snapshot of EBS volume using Terraform

I need to create a snapshot of EBS volume using Terraform. I also have to consider that if the EBS volume has previously snapshots or not. If the EBS volume contains some previous snapshots then i need to delete them from my Terraform code and…
2
votes
1 answer

AWS EBS Snapshot once a month and daily for 7 days

I want make a snapshot every day a week and delete the snapshots older than 7 days but also, at the same time, I want to save one snapshot of the month. Does somebody knows how to edit this lines to make this? I use corn every day executing the…
nfont
  • 99
  • 1
  • 10
2
votes
1 answer

AWS elastic beanstalk Node.js app is not connecting to Mongodb atlas

I am trying to connect to MongoDB atlas from elastic beanstalk using a Node.js app. on Mongo atlas, I opened the connection publicly for testing reasons (added 0.0.0.0/0 to the whitelist) and AWS security group allows all traffic. I still can…
2
votes
2 answers

Connecting to EC2 instance when deployed jhipster app using "jhipster aws"

I have deloyed a jhipster app on aws using jhipster aws. But when I am trying to connect to the EC2 Instance, it's giving following warning : Warning You may not be able to connect to this instance as ports 22 may need to be open in order to be…
rcde0
  • 4,192
  • 3
  • 21
  • 31
2
votes
2 answers

Expand size PVC of statefulset on k8s 1.9

I have a statefulset of kafka. I need to expand the disk size, i try wihout succes to use the automatic resize feature of k8s 1.9 Here : https://kubernetes.io/docs/concepts/storage/persistent-volumes/#expanding-persistent-volumes-claims I did…
2
votes
0 answers

Auto Scaling Group Reattach Volume

I have an ECS cluster running one docker container which I want to run for only several hours per day. When the instance does not need to be used I want it to be stopped but I found that I can't stop an instance in ASG because it will get terminated…
Mugetsu
  • 1,739
  • 2
  • 20
  • 41
1
vote
1 answer

Decrease the size of root EBS volume in Ubuntu EC2 instance

I have an Ubuntu 18.04 EC2 instance on AWS. It have 512 GB of root EBS. But using only 16 GB of root mount point. So I want to reduce the EBS to 20 GB as cost saving. I don't want to recreate the instance from the scratch. Because lot of effort…
sugunan
  • 4,408
  • 6
  • 41
  • 66
1
vote
0 answers

Which architecture in aws should I choose for higher availability? EBS+ multi-attach or RDS+ read replica?

I'm just new learner on AWS, and when I see the latest post of multi-attach, I was confused about which way should I use, can someone advise a scenario on either way is better? (Main concern for me is availability considering both architectures are…
Tao Tao
  • 9
  • 2
1
vote
0 answers

Unable to retrieve the PostgreSQL database after attaching EBS volume to new EC2 Instance

I have an EC2 instance with Root(/dev/xvda) and EBS(/dev/xvdb)volumes. Both are mounted. I have installed PostgreSQL DB and inserted some data in it, then I have created a snapshot of EBS(/dev/xvdb)volume and then from this I have created a…