ripe-knife-11053
05/11/2021, 4:27 PMbillowy-army-68599
05/11/2021, 4:30 PMripe-knife-11053
05/11/2021, 4:30 PMbillowy-army-68599
05/11/2021, 4:35 PMripe-knife-11053
05/11/2021, 4:36 PMbillowy-army-68599
05/11/2021, 4:37 PMripe-knife-11053
05/11/2021, 4:37 PMbillowy-army-68599
05/11/2021, 4:39 PMripe-knife-11053
05/11/2021, 4:39 PMbillowy-army-68599
05/11/2021, 4:39 PMconst keyring = new gcp.kms.KeyRing("stateEncryption", {
location: "global",
})
const encryptionKey = new gcp.kms.CryptoKey("stateEncryption", {
keyRing: keyring.id,
rotationPeriod: "1000000s",
}, {
// protect: true # you may want to turn this on!
parent: keyring,
})
const bucket = new gcp.storage.Bucket("state", {
versioning: {
enabled: true,
},
})
You'll need to add IAM permissions tooripe-knife-11053
05/11/2021, 5:01 PM