pulumi_wasm_providers_aws_mini::ec2

Module spot_datafeed_subscription

source
Expand description

Note: There is only a single subscription allowed per account.

To help you understand the charges for your Spot instances, Amazon EC2 provides a data feed that describes your Spot instance usage and pricing. This data feed is sent to an Amazon S3 bucket that you specify when you subscribe to the data feed.

§Example Usage

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let default = bucket_v_2::create(
        "default",
        BucketV2Args::builder().bucket("tf-spot-datafeed").build_struct(),
    );
    let defaultSpotDatafeedSubscription = spot_datafeed_subscription::create(
        "defaultSpotDatafeedSubscription",
        SpotDatafeedSubscriptionArgs::builder()
            .bucket("${default.id}")
            .prefix("my_subdirectory")
            .build_struct(),
    );
}

§Import

Using pulumi import, import a Spot Datafeed Subscription using the word spot-datafeed-subscription. For example:

$ pulumi import aws:ec2/spotDatafeedSubscription:SpotDatafeedSubscription mysubscription spot-datafeed-subscription

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments