https://pulumi.com logo
Title
r

red-football-97286

06/30/2021, 9:26 AM
Does anyone know how to set backups for EFS? I've been through the pulumi docs and can't seem to find an option to do this.
b

brave-planet-10645

06/30/2021, 9:33 AM
Looks like it was only added to TF recently. Let me check
r

red-football-97286

06/30/2021, 9:39 AM
Thanks Piers.
b

brave-planet-10645

06/30/2021, 9:40 AM
Yes it's there in the latest version of the provider, but our docs haven't caught up it seems. In typescript:
const fs = new aws.efs.FileSystem("fs");

const backup = new aws.efs.BackupPolicy("backup", {
    fileSystemId: fs.id,
    backupPolicy: {
        status: "ENABLED"
    }
});
r

red-football-97286

06/30/2021, 9:51 AM
Great, thanks for looking Piers.