Skip to main content

db_instances

Creates, updates, deletes or gets a db_instance resource or lists db_instances in a region

Overview

Namedb_instances
TypeResource
DescriptionThe AWS::Neptune::DBInstance resource creates an Amazon Neptune DB instance.
Idawscc.neptune.db_instances

Fields

NameDatatypeDescription
allow_major_version_upgradebooleanIndicates that major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB instance's current version.
auto_minor_version_upgradebooleanIndicates that minor version patches are applied automatically.<br />When updating this property, some interruptions may occur.
availability_zonestringSpecifies the name of the Availability Zone the DB instance is located in.
db_cluster_identifierstringIf the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of.
db_instance_classstringContains the name of the compute and memory capacity class of the DB instance.<br />If you update this property, some interruptions may occur.
db_instance_identifierstringContains a user-supplied database identifier. This identifier is the unique key that identifies a DB instance.
db_parameter_group_namestringThe name of an existing DB parameter group or a reference to an AWS::Neptune::DBParameterGroup resource created in the template. If any of the data members of the referenced parameter group are changed during an update, the DB instance might need to be restarted, which causes some interruption. If the parameter group contains static parameters, whether they were changed or not, an update triggers a reboot.
db_snapshot_identifierstringThis parameter is not supported.<br />&#96;AWS::Neptune::DBInstance&#96; does not support restoring from snapshots.<br />&#96;AWS::Neptune::DBCluster&#96; does support restoring from snapshots.<br />
db_subnet_group_namestringA DB subnet group to associate with the DB instance. If you update this value, the new subnet group must be a subnet group in a new virtual private cloud (VPC).
endpointstringThe connection endpoint for the database. For example: &#96;mystack-mydb-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com&#96;.
preferred_maintenance_windowstringSpecifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
portstringThe port number on which the database accepts connections. For example: &#96;8182&#96;.
tagsarrayAn arbitrary set of tags (key-value pairs) for this DB instance.
regionstringAWS region.

For more information, see AWS::Neptune::DBInstance.

Methods

NameAccessible byRequired Params
create_resourceINSERTDBInstanceClass, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual db_instance.

SELECT
region,
allow_major_version_upgrade,
auto_minor_version_upgrade,
availability_zone,
db_cluster_identifier,
db_instance_class,
db_instance_identifier,
db_parameter_group_name,
db_snapshot_identifier,
db_subnet_group_name,
endpoint,
preferred_maintenance_window,
port,
tags
FROM awscc.neptune.db_instances
WHERE region = 'us-east-1' AND data__Identifier = '<DBInstanceIdentifier>';

INSERT example

Use the following StackQL query and manifest file to create a new db_instance resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.neptune.db_instances (
DBInstanceClass,
region
)
SELECT
'{{ DBInstanceClass }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.neptune.db_instances
WHERE data__Identifier = '<DBInstanceIdentifier>'
AND region = 'us-east-1';

Permissions

To operate on the db_instances resource, the following permissions are required:

Create

ec2:DescribeAccountAttributes,
ec2:DescribeAvailabilityZones,
ec2:DescribeInternetGateways,
iam:GetRole,
iam:ListRoles,
iam:PassRole,
rds:AddTagsToResource,
rds:CreateDBInstance,
rds:DescribeDBInstances,
rds:DescribeEvents,
rds:ListTagsForResource,
rds:ModifyDBInstance,
rds:RebootDBInstance,
iam:CreateServiceLinkedRole

Read

ec2:DescribeAccountAttributes,
ec2:DescribeAvailabilityZones,
ec2:DescribeInternetGateways,
rds:DescribeDBInstances,
rds:ListTagsForResource

Update

ec2:DescribeAccountAttributes,
ec2:DescribeAvailabilityZones,
ec2:DescribeInternetGateways,
iam:GetRole,
iam:ListRoles,
iam:PassRole,
rds:AddTagsToResource,
rds:DescribeDBClusters,
rds:DescribeDBInstances,
rds:DescribeDBParameterGroups,
rds:DescribeEvents,
rds:ListTagsForResource,
rds:ModifyDBInstance,
rds:RebootDBInstance,
rds:RemoveTagsFromResource

Delete

rds:AddTagsToResource,
rds:CreateDBSnapshot,
rds:DeleteDBInstance,
rds:DescribeDBInstances

List

rds:DescribeDBInstances,
rds:ListTagsForResource