get Snapshot
Use this data source to get information about an EBS Snapshot for use when provisioning EBS Volumes
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ebs.EbsFunctions;
import com.pulumi.aws.ebs.inputs.GetSnapshotArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var ebsVolume = EbsFunctions.getSnapshot(GetSnapshotArgs.builder()
.filters(
GetSnapshotFilterArgs.builder()
.name("volume-size")
.values("40")
.build(),
GetSnapshotFilterArgs.builder()
.name("tag:Name")
.values("Example")
.build())
.mostRecent(true)
.owners("self")
.build());
}
}
Return
A collection of values returned by getSnapshot.
Parameters
A collection of arguments for invoking getSnapshot.
Return
A collection of values returned by getSnapshot.
Parameters
One or more name/value pairs to filter off of. There are several valid keys, for a full reference, check out 1.
If more than one result is returned, use the most recent snapshot.
Returns the snapshots owned by the specified owner id. Multiple owners can be specified.
One or more AWS accounts IDs that can create volumes from the snapshot.
Returns information on a specific snapshot_id.
Map of tags for the resource.
See also
Return
A collection of values returned by getSnapshot.
Parameters
Builder for com.pulumi.aws.ebs.kotlin.inputs.GetSnapshotPlainArgs.