Ontap File System
Manages an Amazon FSx for NetApp ONTAP file system. See the FSx ONTAP User Guide for more information.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.fsx.OntapFileSystem;
import com.pulumi.aws.fsx.OntapFileSystemArgs;
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) {
var test = new OntapFileSystem("test", OntapFileSystemArgs.builder()
.storageCapacity(1024)
.subnetIds(
aws_subnet.test1().id(),
aws_subnet.test2().id())
.deploymentType("MULTI_AZ_1")
.throughputCapacity(512)
.preferredSubnetId(aws_subnet.test1().id())
.build());
}
}
Content copied to clipboard
Import
Using pulumi import
, import FSx File Systems using the id
. For example:
$ pulumi import aws:fsx/ontapFileSystem:OntapFileSystem example fs-543ab12b1ca672f33
Content copied to clipboard
Certain resource arguments, like security_group_ids
, do not have a FSx API method for reading the information after creation. If the argument is set in the Pulumi program on an imported resource, Pulumi will always show a difference. To workaround this behavior, either omit the argument from the Pulumi program or use ignore_changes
to hide the difference. For example:
Properties
Link copied to clipboard