AWS Amazon Neptune Cluster Snapshot
This page shows how to write Terraform and CloudFormation for Amazon Neptune Cluster Snapshot and write them securely.
aws_neptune_cluster_snapshot (Terraform)
The Cluster Snapshot in Amazon Neptune can be configured in Terraform with the resource name aws_neptune_cluster_snapshot
. The following sections describe 5 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_neptune_cluster_snapshot" "fiveDaysRetenPeriod" {
db_cluster_identifier = aws_neptune_cluster.fiveDaysRetenPeriod.id
db_cluster_snapshot_identifier = "resourcetestsnapshot1234"
}
resource "aws_neptune_cluster_snapshot" "fiveDaysRetenPeriod" {
db_cluster_identifier = aws_neptune_cluster.fiveDaysRetenPeriod.id
db_cluster_snapshot_identifier = "resourcetestsnapshot1234"
}
resource "aws_neptune_cluster_snapshot" "default" {
db_cluster_identifier = aws_neptune_cluster.default.id
db_cluster_snapshot_identifier = "resourcetestsnapshot1"
}
resource "aws_neptune_cluster_snapshot" "default" {
db_cluster_identifier = aws_neptune_cluster.default.id
db_cluster_snapshot_identifier = "resourcetestsnapshot1"
}
resource "aws_neptune_cluster_snapshot" "default" {
db_cluster_identifier = aws_neptune_cluster.default.id
db_cluster_snapshot_identifier = "resourcetestsnapshot1"
}
Parameters
-
allocated_storage
optional computed - number -
availability_zones
optional computed - list of string -
db_cluster_identifier
required - string -
db_cluster_snapshot_arn
optional computed - string -
db_cluster_snapshot_identifier
required - string -
engine
optional computed - string -
engine_version
optional computed - string -
id
optional computed - string -
kms_key_id
optional computed - string -
license_model
optional computed - string -
port
optional computed - number -
snapshot_type
optional computed - string -
source_db_cluster_snapshot_arn
optional computed - string -
status
optional computed - string -
storage_encrypted
optional computed - bool -
vpc_id
optional computed - string -
timeouts
single block-
create
optional - string
-
Explanation in Terraform Registry
Manages a Neptune database cluster snapshot.
AWS::Neptune::DBCluster (CloudFormation)
The DBCluster in Neptune can be configured in CloudFormation with the resource name AWS::Neptune::DBCluster
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
Type: AWS::Neptune::DBClusterParameterGroup
Properties:
Name: {{dbName}}
Description: {{description}}
Family: {{parameterGroupFamily}}
Parameters:
Type: "AWS::Neptune::DBCluster"
Properties:
DBClusterIdentifier: DBClusterIdentifier
NeptuneDBClusterEmpty:
Type: "AWS::Neptune::DBCluster"
Properties:
Type: "AWS::Neptune::DBCluster"
Properties:
DBClusterIdentifier: DBClusterIdentifier
NeptuneDBClusterEmpty:
Type: "AWS::Neptune::DBCluster"
Properties:
Type: "AWS::Neptune::DBCluster"
Properties:
DBClusterIdentifier: DBClusterIdentifier
NeptuneDBClusterEmpty:
Type: "AWS::Neptune::DBCluster"
Properties:
Type: "AWS::Neptune::DBCluster"
Properties:
DBClusterIdentifier: DBClusterIdentifier
NeptuneDBClusterEmpty:
Type: "AWS::Neptune::DBCluster"
Properties:
"Type": "AWS::Neptune::DBCluster",
"Properties": {
"StorageEncrypted": false
}
},
"ENeptuneDBClusterStorageEncryptedSecondary": {
"Type": "AWS::Neptune::DBCluster",
"Properties": {
"IamAuthEnabled": false,
"StorageEncrypted": true
}
},
"Type": "AWS::Neptune::DBCluster",
"Properties": {
"IamAuthEnabled": true,
"StorageEncrypted": true
}
}
"Type" : "AWS::Neptune::DBCluster",
"Properties" : {
"DBClusterIdentifier" : "String",
"EnableCloudwatchLogsExports" : [],
"KmsKeyId" : "String",
"Port" : 10000,
"Type" : "AWS::Neptune::DBCluster",
"Properties" : {
"DBClusterIdentifier" : "String",
"EnableCloudwatchLogsExports" : [],
"KmsKeyId" : "String",
"Port" : 10000,
Parameters
-
StorageEncrypted
optional - Boolean -
RestoreToTime
optional - String -
EngineVersion
optional - String -
KmsKeyId
optional - String -
AssociatedRoles
optional - List of DBClusterRole -
AvailabilityZones
optional - List -
SnapshotIdentifier
optional - String -
Port
optional - Integer -
DBClusterIdentifier
optional - String -
PreferredMaintenanceWindow
optional - String -
IamAuthEnabled
optional - Boolean -
DBSubnetGroupName
optional - String -
DeletionProtection
optional - Boolean -
PreferredBackupWindow
optional - String -
UseLatestRestorableTime
optional - Boolean -
VpcSecurityGroupIds
optional - List -
SourceDBClusterIdentifier
optional - String -
DBClusterParameterGroupName
optional - String -
BackupRetentionPeriod
optional - Integer -
RestoreType
optional - String -
Tags
optional - List of Tag -
EnableCloudwatchLogsExports
optional - List
Explanation in CloudFormation Registry
The
AWS::Neptune::DBCluster
resource creates an Amazon Neptune DB cluster. Neptune is a fully managed graph database.Note Currently, you can create this resource only in AWS Regions in which Amazon Neptune is supported.
If no
DeletionPolicy
is set forAWS::Neptune::DBCluster
resources, the default deletion behavior is that the entire volume will be deleted without a snapshot. To retain a backup of the volume, theDeletionPolicy
should be set toSnapshot
. For more information about how AWS CloudFormation deletes resources, see DeletionPolicy Attribute.You can use
AWS::Neptune::DBCluster.DeletionProtection
to help guard against unintended deletion of your DB cluster.
Frequently asked questions
What is AWS Amazon Neptune Cluster Snapshot?
AWS Amazon Neptune Cluster Snapshot is a resource for Amazon Neptune of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS Amazon Neptune Cluster Snapshot?
For Terraform, the gilyas/infracost, infracost/infracost and gopal1cloud/appsec-terraform source code examples are useful. See the Terraform Example section for further details.
For CloudFormation, the byu-oit/handel, melscoop-test/check and SnidermanIndustries/checkov-fork source code examples are useful. See the CloudFormation Example section for further details.