Skip to content

Commit 215a0b1

Browse files
add ClusterArn as Output. (#45)
* add ClusterArn as Output. modified: stacker_blueprints/rds/aurora/base.py * fix tests modified: tests/fixtures/blueprints/rds_aurora_base_cluster.json modified: tests/fixtures/blueprints/rds_aurora_base_cluster_restore_snapshot.json modified: tests/fixtures/blueprints/rds_aurora_mysql_cluster.json
1 parent f4d12b4 commit 215a0b1

4 files changed

Lines changed: 25 additions & 0 deletions

File tree

stacker_blueprints/rds/aurora/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ def create_outputs(self):
330330
)
331331
t.add_output(Output("Port", Value=self.get_port()))
332332
t.add_output(Output("Cluster", Value=Ref(DBCLUSTER)))
333+
t.add_output(Output("ClusterArn", Value=GetAtt(DBCLUSTER, "Arn")))
333334
if self.should_create_internal_hostname():
334335
t.add_output(
335336
Output("DBCname", Value=Ref(DNS_RECORD))

tests/fixtures/blueprints/rds_aurora_base_cluster.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
"Ref": "DBCluster"
66
}
77
},
8+
"ClusterArn": {
9+
"Value": {
10+
"Fn::GetAtt": [
11+
"DBCluster",
12+
"Arn"
13+
]
14+
}
15+
},
816
"MasterEndpoint": {
917
"Value": {
1018
"Fn::GetAtt": [

tests/fixtures/blueprints/rds_aurora_base_cluster_restore_snapshot.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
"Ref": "DBCluster"
66
}
77
},
8+
"ClusterArn": {
9+
"Value": {
10+
"Fn::GetAtt": [
11+
"DBCluster",
12+
"Arn"
13+
]
14+
}
15+
},
816
"MasterEndpoint": {
917
"Value": {
1018
"Fn::GetAtt": [

tests/fixtures/blueprints/rds_aurora_mysql_cluster.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
"Ref": "DBCluster"
66
}
77
},
8+
"ClusterArn": {
9+
"Value": {
10+
"Fn::GetAtt": [
11+
"DBCluster",
12+
"Arn"
13+
]
14+
}
15+
},
816
"MasterEndpoint": {
917
"Value": {
1018
"Fn::GetAtt": [

0 commit comments

Comments
 (0)