Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_iot_topic rule update not adding error action #16115

Closed
shanmud opened this issue Nov 10, 2020 · 2 comments · Fixed by #16471
Closed

aws_iot_topic rule update not adding error action #16115

shanmud opened this issue Nov 10, 2020 · 2 comments · Fixed by #16471
Labels
bug Addresses a defect in current functionality. service/iot Issues and PRs that pertain to the iot service.

Comments

@shanmud
Copy link

shanmud commented Nov 10, 2020

Problem Description
We have a topic rule created without error action. We are trying to update the topic rule with error action. Terraform apply shown that the resource is successfully updated but in AWS console, the changes were not reflected. During the next plan, we could see the old stage(without error action)

Note: The error action added successfully when the resource deleted and recreated with terraform taint command. This needs to be done every time for the update in error action

@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Nov 10, 2020
@ewbankkit ewbankkit added the service/iot Issues and PRs that pertain to the iot service. label Nov 10, 2020
@ewbankkit
Copy link
Contributor

error_action changes are not correctly handled:

func resourceAwsIotTopicRuleUpdate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).iotconn
if d.HasChanges(
"cloudwatch_alarm",
"cloudwatch_metric",
"description",
"dynamodb",
"dynamodbv2",
"elasticsearch",
"enabled",
"firehose",
"iot_analytics",
"iot_events",
"kinesis",
"lambda",
"republish",
"s3",
"step_functions",
"sns",
"sql",
"sql_version",
"sqs",
) {

@ewbankkit ewbankkit added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Nov 10, 2020
@github-actions
Copy link

github-actions bot commented Sep 6, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/iot Issues and PRs that pertain to the iot service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants