Skip to content

[New Data Source]: aws_chatbot_slack_channel_configuration #42756

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

Open
tamakiii opened this issue May 24, 2025 · 1 comment
Open

[New Data Source]: aws_chatbot_slack_channel_configuration #42756

tamakiii opened this issue May 24, 2025 · 1 comment
Labels
new-data-source Introduces a new data source. service/chatbot Issues and PRs that pertain to the chatbot service.

Comments

@tamakiii
Copy link

tamakiii commented May 24, 2025

What new functionality are you requesting?

Description

I'd like to request a new data source for the existing aws_chatbot_slack_channel_configuration resource.

When managing infrastructure with Terraform, it’s common to separate resources with different lifecycles into separate Terraform projects.

In my case, I’ve separated resources into two projects:

  • One that creates AWS Chatbot Slack channel configurations.
  • One that references these configurations (e.g., for notification rules).

Currently, there's no data source available to reference existing Chatbot Slack channel configurations.

Adding this data source would improve modularity and separation of concerns in Terraform configurations that work with AWS Chatbot resources.

Potential Terraform Configuration

Lookup by configuration name:

data "aws_chatbot_slack_channel_configuration" "example" {
  configuration_name = "my-slack-channel"
}

Lookup by Slack channel and team IDs:

data "aws_chatbot_slack_channel_configuration" "example" {
  slack_channel_id = "C07EZ1ABC23"
  slack_team_id    = "T07EA123LEP"
}

Usage example:

resource "aws_codestarnotifications_notification_rule" "codebuild" {
  name = "build-notification"
  // ...

  target {
    type    = "AWSChatbotSlack"
    address = data.aws_chatbot_slack_channel_configuration.example.configuration_arn
  }
}

References

Would you like to implement the enhancement?

Yes

Copy link

Community Guidelines

This comment is added to every new Issue to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀

Voting for Prioritization

  • Please vote on this Issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize it.
  • Please see our prioritization guide for additional information on how the maintainers handle prioritization.
  • Please do not leave +1 or other comments that do not add relevant new information or questions; they generate extra noise for others following the Issue and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/chatbot Issues and PRs that pertain to the chatbot service. service/codestarnotifications Issues and PRs that pertain to the codestarnotifications service. labels May 24, 2025
@tamakiii tamakiii changed the title [New Data Source]: aws_chatbot_slack_channel_configuration [New Data Source]: aws_chatbot_slack_channel_configuration May 24, 2025
@justinretzolk justinretzolk added new-data-source Introduces a new data source. and removed needs-triage Waiting for first response or review from a maintainer. service/codestarnotifications Issues and PRs that pertain to the codestarnotifications service. labels May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-data-source Introduces a new data source. service/chatbot Issues and PRs that pertain to the chatbot service.
Projects
None yet
Development

No branches or pull requests

2 participants