mysterious-match-15905
01/27/2025, 7:44 PMmysterious-match-15905
01/27/2025, 7:44 PMmodern-zebra-45309
01/27/2025, 8:32 PMpulumi up
again. Unless you've configured a deletion protection of some sorts, this will delete the volume on AWS. (Note that an EBS volume can only be deleted if it isn't attached to an instance.)
That said, Pulumi might not be a good fit for your use case. It sounds like you're not managing infrastructure but have a process that you're running repeatedly (create a temporary volume, do something, maybe do something else, delete the temporary volume). In this case, a boto3 script you run as a k8s Job or AWS Step Functions seem to be more suitable tools.
If you're operating everything within Kubernetes, you shouldn't even have to think about EBS. If your cluster is configured with the EBS CSI driver, you can request a volume for your Pod. If you just need a scratch space, you can use an emptyDir volume.mysterious-match-15905
01/27/2025, 10:03 PM