Guest User

Untitled

a guest
Apr 20th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.53 KB | None | 0 0
  1. 1st tf apply
  2. ------------
  3.  
  4. ```
  5. ubuntu@ip-10-0-0-187:~/terraform_bug$ terraform apply
  6.  
  7. An execution plan has been generated and is shown below.
  8. Resource actions are indicated with the following symbols:
  9. + create
  10.  
  11. Terraform will perform the following actions:
  12.  
  13. + aws_db_instance.test
  14. id: <computed>
  15. address: <computed>
  16. allocated_storage: "100"
  17. apply_immediately: <computed>
  18. arn: <computed>
  19. auto_minor_version_upgrade: "true"
  20. availability_zone: <computed>
  21. backup_retention_period: "7"
  22. backup_window: <computed>
  23. ca_cert_identifier: <computed>
  24. character_set_name: <computed>
  25. copy_tags_to_snapshot: "false"
  26. db_subnet_group_name: "${aws_db_subnet_group.test.id}"
  27. endpoint: <computed>
  28. engine: "mysql"
  29. engine_version: "5.6.37"
  30. final_snapshot_identifier: "final-test"
  31. hosted_zone_id: <computed>
  32. identifier: <computed>
  33. identifier_prefix: <computed>
  34. instance_class: "db.m4.large"
  35. iops: "1000"
  36. kms_key_id: <computed>
  37. license_model: <computed>
  38. maintenance_window: <computed>
  39. monitoring_interval: "0"
  40. monitoring_role_arn: <computed>
  41. multi_az: "true"
  42. name: <computed>
  43. option_group_name: <computed>
  44. parameter_group_name: "default.mysql5.6"
  45. password: <sensitive>
  46. port: <computed>
  47. publicly_accessible: "false"
  48. replicas.#: <computed>
  49. resource_id: <computed>
  50. skip_final_snapshot: "false"
  51. snapshot_identifier: "playground-2018-04-12"
  52. status: <computed>
  53. storage_type: "io1"
  54. timezone: <computed>
  55. username: "root"
  56. vpc_security_group_ids.#: <computed>
  57.  
  58. + aws_db_instance.test_replica
  59. id: <computed>
  60. address: <computed>
  61. allocated_storage: "100"
  62. apply_immediately: <computed>
  63. arn: <computed>
  64. auto_minor_version_upgrade: "true"
  65. availability_zone: <computed>
  66. backup_retention_period: <computed>
  67. backup_window: <computed>
  68. ca_cert_identifier: <computed>
  69. character_set_name: <computed>
  70. copy_tags_to_snapshot: "false"
  71. db_subnet_group_name: <computed>
  72. endpoint: <computed>
  73. engine: "mysql"
  74. engine_version: "5.6.37"
  75. hosted_zone_id: <computed>
  76. identifier: <computed>
  77. identifier_prefix: <computed>
  78. instance_class: "db.m4.large"
  79. iops: "1000"
  80. kms_key_id: <computed>
  81. license_model: <computed>
  82. maintenance_window: <computed>
  83. monitoring_interval: "0"
  84. monitoring_role_arn: <computed>
  85. multi_az: "true"
  86. name: <computed>
  87. option_group_name: <computed>
  88. parameter_group_name: "default.mysql5.6"
  89. port: <computed>
  90. publicly_accessible: "false"
  91. replicas.#: <computed>
  92. replicate_source_db: "${aws_db_instance.test.identifier}"
  93. resource_id: <computed>
  94. skip_final_snapshot: "false"
  95. status: <computed>
  96. storage_type: "io1"
  97. timezone: <computed>
  98. username: <computed>
  99. vpc_security_group_ids.#: <computed>
  100.  
  101. + aws_db_subnet_group.test
  102. id: <computed>
  103. arn: <computed>
  104. description: "Managed by Terraform"
  105. name: "test-subnet-group"
  106. name_prefix: <computed>
  107. subnet_ids.#: <computed>
  108.  
  109. + aws_security_group.test
  110. id: <computed>
  111. arn: <computed>
  112. description: "test"
  113. egress.#: <computed>
  114. ingress.#: <computed>
  115. name: "test"
  116. owner_id: <computed>
  117. revoke_rules_on_delete: "false"
  118. vpc_id: "${aws_vpc.test.id}"
  119.  
  120. + aws_subnet.test[0]
  121. id: <computed>
  122. assign_ipv6_address_on_creation: "false"
  123. availability_zone: "eu-west-2a"
  124. cidr_block: "10.30.1.0/24"
  125. ipv6_cidr_block: <computed>
  126. ipv6_cidr_block_association_id: <computed>
  127. map_public_ip_on_launch: "false"
  128. vpc_id: "${aws_vpc.test.id}"
  129.  
  130. + aws_subnet.test[1]
  131. id: <computed>
  132. assign_ipv6_address_on_creation: "false"
  133. availability_zone: "eu-west-2b"
  134. cidr_block: "10.30.2.0/24"
  135. ipv6_cidr_block: <computed>
  136. ipv6_cidr_block_association_id: <computed>
  137. map_public_ip_on_launch: "false"
  138. vpc_id: "${aws_vpc.test.id}"
  139.  
  140. + aws_vpc.test
  141. id: <computed>
  142. assign_generated_ipv6_cidr_block: "false"
  143. cidr_block: "10.30.0.0/16"
  144. default_network_acl_id: <computed>
  145. default_route_table_id: <computed>
  146. default_security_group_id: <computed>
  147. dhcp_options_id: <computed>
  148. enable_classiclink: <computed>
  149. enable_classiclink_dns_support: <computed>
  150. enable_dns_hostnames: "true"
  151. enable_dns_support: "true"
  152. instance_tenancy: "default"
  153. ipv6_association_id: <computed>
  154. ipv6_cidr_block: <computed>
  155. main_route_table_id: <computed>
  156.  
  157.  
  158. Plan: 7 to add, 0 to change, 0 to destroy.
  159.  
  160. Do you want to perform these actions?
  161. Terraform will perform the actions described above.
  162. Only 'yes' will be accepted to approve.
  163.  
  164. Enter a value: yes
  165.  
  166. aws_vpc.test: Creating...
  167. assign_generated_ipv6_cidr_block: "" => "false"
  168. cidr_block: "" => "10.30.0.0/16"
  169. default_network_acl_id: "" => "<computed>"
  170. default_route_table_id: "" => "<computed>"
  171. default_security_group_id: "" => "<computed>"
  172. dhcp_options_id: "" => "<computed>"
  173. enable_classiclink: "" => "<computed>"
  174. enable_classiclink_dns_support: "" => "<computed>"
  175. enable_dns_hostnames: "" => "true"
  176. enable_dns_support: "" => "true"
  177. instance_tenancy: "" => "default"
  178. ipv6_association_id: "" => "<computed>"
  179. ipv6_cidr_block: "" => "<computed>"
  180. main_route_table_id: "" => "<computed>"
  181. aws_vpc.test: Creation complete after 0s (ID: vpc-0e00f6a26bbdbb716)
  182. aws_subnet.test[1]: Creating...
  183. assign_ipv6_address_on_creation: "" => "false"
  184. availability_zone: "" => "eu-west-2b"
  185. cidr_block: "" => "10.30.2.0/24"
  186. ipv6_cidr_block: "" => "<computed>"
  187. ipv6_cidr_block_association_id: "" => "<computed>"
  188. map_public_ip_on_launch: "" => "false"
  189. vpc_id: "" => "vpc-0e00f6a26bbdbb716"
  190. aws_security_group.test: Creating...
  191. arn: "" => "<computed>"
  192. description: "" => "test"
  193. egress.#: "" => "<computed>"
  194. ingress.#: "" => "<computed>"
  195. name: "" => "test"
  196. owner_id: "" => "<computed>"
  197. revoke_rules_on_delete: "" => "false"
  198. vpc_id: "" => "vpc-0e00f6a26bbdbb716"
  199. aws_subnet.test[0]: Creating...
  200. assign_ipv6_address_on_creation: "" => "false"
  201. availability_zone: "" => "eu-west-2a"
  202. cidr_block: "" => "10.30.1.0/24"
  203. ipv6_cidr_block: "" => "<computed>"
  204. ipv6_cidr_block_association_id: "" => "<computed>"
  205. map_public_ip_on_launch: "" => "false"
  206. vpc_id: "" => "vpc-0e00f6a26bbdbb716"
  207. aws_subnet.test[1]: Creation complete after 1s (ID: subnet-00c5afe1955861e40)
  208. aws_subnet.test[0]: Creation complete after 1s (ID: subnet-08399d32fb854a27d)
  209. aws_db_subnet_group.test: Creating...
  210. arn: "" => "<computed>"
  211. description: "" => "Managed by Terraform"
  212. name: "" => "test-subnet-group"
  213. name_prefix: "" => "<computed>"
  214. subnet_ids.#: "" => "2"
  215. subnet_ids.1803252222: "" => "subnet-08399d32fb854a27d"
  216. subnet_ids.3370052086: "" => "subnet-00c5afe1955861e40"
  217. aws_security_group.test: Creation complete after 1s (ID: sg-042f908336a1c28eb)
  218. aws_db_subnet_group.test: Creation complete after 0s (ID: test-subnet-group)
  219. aws_db_instance.test: Creating...
  220. address: "" => "<computed>"
  221. allocated_storage: "" => "100"
  222. apply_immediately: "" => "<computed>"
  223. arn: "" => "<computed>"
  224. auto_minor_version_upgrade: "" => "true"
  225. availability_zone: "" => "<computed>"
  226. backup_retention_period: "" => "7"
  227. backup_window: "" => "<computed>"
  228. ca_cert_identifier: "" => "<computed>"
  229. character_set_name: "" => "<computed>"
  230. copy_tags_to_snapshot: "" => "false"
  231. db_subnet_group_name: "" => "test-subnet-group"
  232. endpoint: "" => "<computed>"
  233. engine: "" => "mysql"
  234. engine_version: "" => "5.6.37"
  235. final_snapshot_identifier: "" => "final-test"
  236. hosted_zone_id: "" => "<computed>"
  237. identifier: "" => "<computed>"
  238. identifier_prefix: "" => "<computed>"
  239. instance_class: "" => "db.m4.large"
  240. iops: "" => "1000"
  241. kms_key_id: "" => "<computed>"
  242. license_model: "" => "<computed>"
  243. maintenance_window: "" => "<computed>"
  244. monitoring_interval: "" => "0"
  245. monitoring_role_arn: "" => "<computed>"
  246. multi_az: "" => "true"
  247. name: "" => "<computed>"
  248. option_group_name: "" => "<computed>"
  249. parameter_group_name: "" => "default.mysql5.6"
  250. password: "<sensitive>" => "<sensitive>"
  251. port: "" => "<computed>"
  252. publicly_accessible: "" => "false"
  253. replicas.#: "" => "<computed>"
  254. resource_id: "" => "<computed>"
  255. skip_final_snapshot: "" => "false"
  256. snapshot_identifier: "" => "playground-2018-04-12"
  257. status: "" => "<computed>"
  258. storage_type: "" => "io1"
  259. timezone: "" => "<computed>"
  260. username: "" => "root"
  261. vpc_security_group_ids.#: "" => "1"
  262. vpc_security_group_ids.3400269043: "" => "sg-042f908336a1c28eb"
  263. aws_db_instance.test: Still creating... (10s elapsed)
  264. ...boring output...
  265. aws_db_instance.test: Still creating... (19m20s elapsed)
  266. aws_db_instance.test: Creation complete after 19m21s (ID: terraform-20180412130910194300000001)
  267. aws_db_instance.test_replica: Creating...
  268. address: "" => "<computed>"
  269. allocated_storage: "" => "100"
  270. apply_immediately: "" => "<computed>"
  271. arn: "" => "<computed>"
  272. auto_minor_version_upgrade: "" => "true"
  273. availability_zone: "" => "<computed>"
  274. backup_retention_period: "" => "<computed>"
  275. backup_window: "" => "<computed>"
  276. ca_cert_identifier: "" => "<computed>"
  277. character_set_name: "" => "<computed>"
  278. copy_tags_to_snapshot: "" => "false"
  279. db_subnet_group_name: "" => "<computed>"
  280. endpoint: "" => "<computed>"
  281. engine: "" => "mysql"
  282. engine_version: "" => "5.6.37"
  283. hosted_zone_id: "" => "<computed>"
  284. identifier: "" => "<computed>"
  285. identifier_prefix: "" => "<computed>"
  286. instance_class: "" => "db.m4.large"
  287. iops: "" => "1000"
  288. kms_key_id: "" => "<computed>"
  289. license_model: "" => "<computed>"
  290. maintenance_window: "" => "<computed>"
  291. monitoring_interval: "" => "0"
  292. monitoring_role_arn: "" => "<computed>"
  293. multi_az: "" => "true"
  294. name: "" => "<computed>"
  295. option_group_name: "" => "<computed>"
  296. parameter_group_name: "" => "default.mysql5.6"
  297. port: "" => "<computed>"
  298. publicly_accessible: "" => "false"
  299. replicas.#: "" => "<computed>"
  300. replicate_source_db: "" => "terraform-20180412130910194300000001"
  301. resource_id: "" => "<computed>"
  302. skip_final_snapshot: "" => "false"
  303. status: "" => "<computed>"
  304. storage_type: "" => "io1"
  305. timezone: "" => "<computed>"
  306. username: "" => "<computed>"
  307. vpc_security_group_ids.#: "" => "1"
  308. vpc_security_group_ids.3400269043: "" => "sg-042f908336a1c28eb"
  309. aws_db_instance.test_replica: Still creating... (10s elapsed)
  310. ...boring output...
  311. aws_db_instance.test_replica: Still creating... (7m50s elapsed)
  312. aws_db_instance.test_replica: Creation complete after 7m55s (ID: terraform-20180412132830606000000002)
  313.  
  314. Apply complete! Resources: 7 added, 0 changed, 0 destroyed.
  315. ```
  316.  
  317. describe master instance
  318. ---
  319. ```
  320. $ aws rds describe-db-instances --db-instance-identifier terraform-20180412130910194300000001 | jq --sort-keys .
  321. {
  322. "DBInstances": [
  323. {
  324. "AllocatedStorage": 100,
  325. "AutoMinorVersionUpgrade": true,
  326. "AvailabilityZone": "eu-west-2b",
  327. "BackupRetentionPeriod": 7,
  328. "CACertificateIdentifier": "rds-ca-2015",
  329. "CopyTagsToSnapshot": false,
  330. "DBInstanceArn": "arn:aws:rds:eu-west-2:412363190671:db:terraform-20180412130910194300000001",
  331. "DBInstanceClass": "db.m4.large",
  332. "DBInstanceIdentifier": "terraform-20180412130910194300000001",
  333. "DBInstanceStatus": "available",
  334. "DBParameterGroups": [
  335. {
  336. "DBParameterGroupName": "default.mysql5.6",
  337. "ParameterApplyStatus": "in-sync"
  338. }
  339. ],
  340. "DBSecurityGroups": [],
  341. "DBSubnetGroup": {
  342. "DBSubnetGroupDescription": "Managed by Terraform",
  343. "DBSubnetGroupName": "test-subnet-group",
  344. "SubnetGroupStatus": "Complete",
  345. "Subnets": [
  346. {
  347. "SubnetAvailabilityZone": {
  348. "Name": "eu-west-2b"
  349. },
  350. "SubnetIdentifier": "subnet-00c5afe1955861e40",
  351. "SubnetStatus": "Active"
  352. },
  353. {
  354. "SubnetAvailabilityZone": {
  355. "Name": "eu-west-2a"
  356. },
  357. "SubnetIdentifier": "subnet-08399d32fb854a27d",
  358. "SubnetStatus": "Active"
  359. }
  360. ],
  361. "VpcId": "vpc-0e00f6a26bbdbb716"
  362. },
  363. "DbInstancePort": 0,
  364. "DbiResourceId": "db-SQ6FOCPRL7FK62U5N5W6CSEQRE",
  365. "DomainMemberships": [],
  366. "Endpoint": {
  367. "Address": "terraform-20180412130910194300000001.ctcmwupb6aef.eu-west-2.rds.amazonaws.com",
  368. "HostedZoneId": "Z1TTGA775OQIYO",
  369. "Port": 3306
  370. },
  371. "Engine": "mysql",
  372. "EngineVersion": "5.6.37",
  373. "IAMDatabaseAuthenticationEnabled": false,
  374. "InstanceCreateTime": "2018-04-12T13:10:24.705Z",
  375. "Iops": 1000,
  376. "LatestRestorableTime": "2018-04-12T13:55:00Z",
  377. "LicenseModel": "general-public-license",
  378. "MasterUsername": "root",
  379. "MonitoringInterval": 0,
  380. "MultiAZ": true,
  381. "OptionGroupMemberships": [
  382. {
  383. "OptionGroupName": "default:mysql-5-6",
  384. "Status": "in-sync"
  385. }
  386. ],
  387. "PendingModifiedValues": {},
  388. "PerformanceInsightsEnabled": false,
  389. "PreferredBackupWindow": "11:05-11:35",
  390. "PreferredMaintenanceWindow": "tue:07:47-tue:08:17",
  391. "PubliclyAccessible": false,
  392. "ReadReplicaDBInstanceIdentifiers": [
  393. "terraform-20180412132830606000000002"
  394. ],
  395. "SecondaryAvailabilityZone": "eu-west-2a",
  396. "StorageEncrypted": false,
  397. "StorageType": "io1",
  398. "VpcSecurityGroups": [
  399. {
  400. "Status": "active",
  401. "VpcSecurityGroupId": "sg-042f908336a1c28eb"
  402. }
  403. ]
  404. }
  405. ]
  406. }
  407.  
  408. ```
  409.  
  410. describe replica instance
  411. ---
  412. ```
  413. $ aws rds describe-db-instances --db-instance-identifier terraform-20180412132830606000000002 | jq --sort-keys .
  414. {
  415. "DBInstances": [
  416. {
  417. "AllocatedStorage": 100,
  418. "AutoMinorVersionUpgrade": true,
  419. "AvailabilityZone": "eu-west-2a",
  420. "BackupRetentionPeriod": 0,
  421. "CACertificateIdentifier": "rds-ca-2015",
  422. "CopyTagsToSnapshot": false,
  423. "DBInstanceArn": "arn:aws:rds:eu-west-2:412363190671:db:terraform-20180412132830606000000002",
  424. "DBInstanceClass": "db.m4.large",
  425. "DBInstanceIdentifier": "terraform-20180412132830606000000002",
  426. "DBInstanceStatus": "available",
  427. "DBParameterGroups": [
  428. {
  429. "DBParameterGroupName": "default.mysql5.6",
  430. "ParameterApplyStatus": "in-sync"
  431. }
  432. ],
  433. "DBSecurityGroups": [],
  434. "DBSubnetGroup": {
  435. "DBSubnetGroupDescription": "Managed by Terraform",
  436. "DBSubnetGroupName": "test-subnet-group",
  437. "SubnetGroupStatus": "Complete",
  438. "Subnets": [
  439. {
  440. "SubnetAvailabilityZone": {
  441. "Name": "eu-west-2b"
  442. },
  443. "SubnetIdentifier": "subnet-00c5afe1955861e40",
  444. "SubnetStatus": "Active"
  445. },
  446. {
  447. "SubnetAvailabilityZone": {
  448. "Name": "eu-west-2a"
  449. },
  450. "SubnetIdentifier": "subnet-08399d32fb854a27d",
  451. "SubnetStatus": "Active"
  452. }
  453. ],
  454. "VpcId": "vpc-0e00f6a26bbdbb716"
  455. },
  456. "DbInstancePort": 0,
  457. "DbiResourceId": "db-UHOZBLUYL7T4MB7QQYRYZUQN7U",
  458. "DomainMemberships": [],
  459. "Endpoint": {
  460. "Address": "terraform-20180412132830606000000002.ctcmwupb6aef.eu-west-2.rds.amazonaws.com",
  461. "HostedZoneId": "Z1TTGA775OQIYO",
  462. "Port": 3306
  463. },
  464. "Engine": "mysql",
  465. "EngineVersion": "5.6.37",
  466. "IAMDatabaseAuthenticationEnabled": false,
  467. "InstanceCreateTime": "2018-04-12T13:33:35.134Z",
  468. "Iops": 1000,
  469. "LicenseModel": "general-public-license",
  470. "MasterUsername": "root",
  471. "MonitoringInterval": 0,
  472. "MultiAZ": false,
  473. "OptionGroupMemberships": [
  474. {
  475. "OptionGroupName": "default:mysql-5-6",
  476. "Status": "in-sync"
  477. }
  478. ],
  479. "PendingModifiedValues": {},
  480. "PerformanceInsightsEnabled": false,
  481. "PreferredBackupWindow": "11:05-11:35",
  482. "PreferredMaintenanceWindow": "tue:07:47-tue:08:17",
  483. "PubliclyAccessible": false,
  484. "ReadReplicaDBInstanceIdentifiers": [],
  485. "ReadReplicaSourceDBInstanceIdentifier": "terraform-20180412130910194300000001",
  486. "StatusInfos": [
  487. {
  488. "Normal": true,
  489. "Status": "replicating",
  490. "StatusType": "read replication"
  491. }
  492. ],
  493. "StorageEncrypted": false,
  494. "StorageType": "io1",
  495. "VpcSecurityGroups": [
  496. {
  497. "Status": "active",
  498. "VpcSecurityGroupId": "sg-042f908336a1c28eb"
  499. }
  500. ]
  501. }
  502. ]
  503. }
  504. ```
  505. 2nd tf apply
  506. ---
  507. ```
  508. ubuntu@ip-10-0-0-187:~/terraform_bug$ terraform apply
  509. aws_vpc.test: Refreshing state... (ID: vpc-0e00f6a26bbdbb716)
  510. aws_security_group.test: Refreshing state... (ID: sg-042f908336a1c28eb)
  511. aws_subnet.test[0]: Refreshing state... (ID: subnet-08399d32fb854a27d)
  512. aws_subnet.test[1]: Refreshing state... (ID: subnet-00c5afe1955861e40)
  513. aws_db_subnet_group.test: Refreshing state... (ID: test-subnet-group)
  514. aws_db_instance.test: Refreshing state... (ID: terraform-20180412130910194300000001)
  515. aws_db_instance.test_replica: Refreshing state... (ID: terraform-20180412132830606000000002)
  516.  
  517. An execution plan has been generated and is shown below.
  518. Resource actions are indicated with the following symbols:
  519. ~ update in-place
  520.  
  521. Terraform will perform the following actions:
  522.  
  523. ~ aws_db_instance.test
  524. tags.%: "2" => "0"
  525. tags.environment: "playground" => ""
  526. tags.name: "App MySQL" => ""
  527.  
  528. ~ aws_db_instance.test_replica
  529. multi_az: "false" => "true"
  530.  
  531.  
  532. Plan: 0 to add, 2 to change, 0 to destroy.
  533.  
  534. Do you want to perform these actions?
  535. Terraform will perform the actions described above.
  536. Only 'yes' will be accepted to approve.
  537.  
  538. Enter a value: yes
  539.  
  540. aws_db_instance.test: Modifying... (ID: terraform-20180412130910194300000001)
  541. tags.%: "2" => "0"
  542. tags.environment: "playground" => ""
  543. tags.name: "App MySQL" => ""
  544. aws_db_instance.test: Modifications complete after 0s (ID: terraform-20180412130910194300000001)
  545. aws_db_instance.test_replica: Modifying... (ID: terraform-20180412132830606000000002)
  546. multi_az: "false" => "true"
  547. aws_db_instance.test_replica: Still modifying... (ID: terraform-20180412132830606000000002, 10s elapsed)
  548. aws_db_instance.test_replica: Still modifying... (ID: terraform-20180412132830606000000002, 20s elapsed)
  549. aws_db_instance.test_replica: Still modifying... (ID: terraform-20180412132830606000000002, 30s elapsed)
  550. aws_db_instance.test_replica: Modifications complete after 31s (ID: terraform-20180412132830606000000002)
  551.  
  552. Apply complete! Resources: 0 added, 2 changed, 0 destroyed.
  553. ```
  554.  
  555. 3rd tf apply - bug
  556. ---
  557. ```
  558. ubuntu@ip-10-0-0-187:~/terraform_bug$ terraform apply
  559. aws_vpc.test: Refreshing state... (ID: vpc-0e00f6a26bbdbb716)
  560. aws_security_group.test: Refreshing state... (ID: sg-042f908336a1c28eb)
  561. aws_subnet.test[1]: Refreshing state... (ID: subnet-00c5afe1955861e40)
  562. aws_subnet.test[0]: Refreshing state... (ID: subnet-08399d32fb854a27d)
  563. aws_db_subnet_group.test: Refreshing state... (ID: test-subnet-group)
  564. aws_db_instance.test: Refreshing state... (ID: terraform-20180412130910194300000001)
  565. aws_db_instance.test_replica: Refreshing state... (ID: terraform-20180412132830606000000002)
  566.  
  567. An execution plan has been generated and is shown below.
  568. Resource actions are indicated with the following symbols:
  569. ~ update in-place
  570.  
  571. Terraform will perform the following actions:
  572.  
  573. ~ aws_db_instance.test_replica
  574. multi_az: "false" => "true"
  575.  
  576.  
  577. Plan: 0 to add, 1 to change, 0 to destroy.
  578.  
  579. Do you want to perform these actions?
  580. Terraform will perform the actions described above.
  581. Only 'yes' will be accepted to approve.
  582.  
  583. Enter a value: yes
  584.  
  585. aws_db_instance.test_replica: Modifying... (ID: terraform-20180412132830606000000002)
  586. multi_az: "false" => "true"
  587.  
  588. Error: Error applying plan:
  589.  
  590. 1 error(s) occurred:
  591.  
  592. * aws_db_instance.test_replica: 1 error(s) occurred:
  593.  
  594. * aws_db_instance.test_replica: Error modifying DB Instance terraform-20180412132830606000000002: InvalidParameterCombination: No modifications were requested
  595. status code: 400, request id: c3719d4d-b06b-4e85-9ba3-9c723a9365f5
  596.  
  597. Terraform does not automatically rollback in the face of errors.
  598. Instead, your Terraform state file has been partially updated with
  599. any resources that successfully completed. Please address the error
  600. above and apply again to incrementally change your infrastructure.
  601. ```
  602.  
  603. describe replica instance
  604. ---
  605. Has pending modifications
  606. ```
  607. $ aws rds describe-db-instances --db-instance-identifier terraform-20180412132830606000000002 | jq --sort-keys .
  608. {
  609. "DBInstances": [
  610. {
  611. "AllocatedStorage": 100,
  612. "AutoMinorVersionUpgrade": true,
  613. "AvailabilityZone": "eu-west-2a",
  614. "BackupRetentionPeriod": 0,
  615. "CACertificateIdentifier": "rds-ca-2015",
  616. "CopyTagsToSnapshot": false,
  617. "DBInstanceArn": "arn:aws:rds:eu-west-2:412363190671:db:terraform-20180412132830606000000002",
  618. "DBInstanceClass": "db.m4.large",
  619. "DBInstanceIdentifier": "terraform-20180412132830606000000002",
  620. "DBInstanceStatus": "available",
  621. "DBParameterGroups": [
  622. {
  623. "DBParameterGroupName": "default.mysql5.6",
  624. "ParameterApplyStatus": "in-sync"
  625. }
  626. ],
  627. "DBSecurityGroups": [],
  628. "DBSubnetGroup": {
  629. "DBSubnetGroupDescription": "Managed by Terraform",
  630. "DBSubnetGroupName": "test-subnet-group",
  631. "SubnetGroupStatus": "Complete",
  632. "Subnets": [
  633. {
  634. "SubnetAvailabilityZone": {
  635. "Name": "eu-west-2b"
  636. },
  637. "SubnetIdentifier": "subnet-00c5afe1955861e40",
  638. "SubnetStatus": "Active"
  639. },
  640. {
  641. "SubnetAvailabilityZone": {
  642. "Name": "eu-west-2a"
  643. },
  644. "SubnetIdentifier": "subnet-08399d32fb854a27d",
  645. "SubnetStatus": "Active"
  646. }
  647. ],
  648. "VpcId": "vpc-0e00f6a26bbdbb716"
  649. },
  650. "DbInstancePort": 0,
  651. "DbiResourceId": "db-UHOZBLUYL7T4MB7QQYRYZUQN7U",
  652. "DomainMemberships": [],
  653. "Endpoint": {
  654. "Address": "terraform-20180412132830606000000002.ctcmwupb6aef.eu-west-2.rds.amazonaws.com",
  655. "HostedZoneId": "Z1TTGA775OQIYO",
  656. "Port": 3306
  657. },
  658. "Engine": "mysql",
  659. "EngineVersion": "5.6.37",
  660. "IAMDatabaseAuthenticationEnabled": false,
  661. "InstanceCreateTime": "2018-04-12T13:33:35.134Z",
  662. "Iops": 1000,
  663. "LicenseModel": "general-public-license",
  664. "MasterUsername": "root",
  665. "MonitoringInterval": 0,
  666. "MultiAZ": false,
  667. "OptionGroupMemberships": [
  668. {
  669. "OptionGroupName": "default:mysql-5-6",
  670. "Status": "in-sync"
  671. }
  672. ],
  673. "PendingModifiedValues": {
  674. "MultiAZ": true
  675. },
  676. "PerformanceInsightsEnabled": false,
  677. "PreferredBackupWindow": "11:05-11:35",
  678. "PreferredMaintenanceWindow": "tue:07:47-tue:08:17",
  679. "PubliclyAccessible": false,
  680. "ReadReplicaDBInstanceIdentifiers": [],
  681. "ReadReplicaSourceDBInstanceIdentifier": "terraform-20180412130910194300000001",
  682. "StatusInfos": [
  683. {
  684. "Normal": true,
  685. "Status": "replicating",
  686. "StatusType": "read replication"
  687. }
  688. ],
  689. "StorageEncrypted": false,
  690. "StorageType": "io1",
  691. "VpcSecurityGroups": [
  692. {
  693. "Status": "active",
  694. "VpcSecurityGroupId": "sg-042f908336a1c28eb"
  695. }
  696. ]
  697. }
  698. ]
  699. }
  700. ```
Add Comment
Please, Sign In to add comment