Jira Automation 用に AWS SNS を設定

自動化ルールを AWS と統合する最も簡単な方法は、SNS トピックにメッセージを送信することです。

これを行うには、次の操作を行う必要があります。

  1. SNS トピックを持っていない場合は、新規作成します。

  2. Atlassian Automation AWS アカウントにその SNS トピックへのアクセス権を付与します。

  3. ARN というトピックで SNS トピックに接続します。

SNS トピックに接続します

The instructions here are for configuration via the AWS console, but the details are similar if you manage your AWS resources using CloudFormation or the AWS SDK.

このアクセス権によって、Atlassian Automation AWS アカウントはこのトピックにメッセージを送信できるようになります。これを信頼されていないソースとして扱い、受信したメッセージに対応する前にメッセージを検証する措置を取ることをお勧めします。

1. 新しい SNS トピックを作成します (オプション)

If you don’t have an existing SNS topic to use you will need to create one.

最も簡単な方法は、AWS コンソールを使用することです。

  1. Sign into AWS console

    • トピックを作成する前に、正しい AWS リージョンを選択していることをご確認ください

  2. Choose Topics from the navigation menu.

  3. Choose Create topic and enter the required details

    • Choose a Standard topic type (you can actually use either, but “standard” will give the most flexibility - see the AWS documentation for full details on the difference between a “standard” and “fifo” topic).

    • Pick a Name that will be meaningful and reflect the purpose of the topic.

    • Make sure Encryption is not enabled.

  4. Click Create topic

AWS SNS を実行

これで、自動化ルールから接続できるトピックが作成されます。

See AWS SNS best practices for more information on other recommended configuration settings for SNS topics.

2. Atlassian Automation からのアクセスを許可するトピック ポリシーを設定します

If you have an existing topic (or have created one using the steps above) you will need to allow the Atlassian Automation AWS account to access it by setting up an appropriate Access policy.

The Atlassian Automation AWS account ID you will need to use is 815843069303. It will only need to be granted the sns:Publish action.

必要なポリシー ドキュメントは次のようになります。

{ "Version": "2008-10-17", "Id": "__default_policy_ID", "Statement": [{ "Sid": "grant-atlassian-automation-publish", "Effect": "Allow", "Principal": { "AWS": "815843069303" }, "Action": ["sns:Publish"], "Resource": <<sns_topic_arn>> }] }

このポリシーは、「ID が 815843069303 の AWS アカウントに対して、AWS リソース名 (ARN) が <<sns_topic_arn>> の SNS トピックへの Publish (発行) を Allow (許可) する」と解釈できます。

このポリシーの最も重要な部分は次のとおりです。

  • The Effect is Allow

  • The Principal is the Atlassian Automation AWS account ID 815843069303

  • The Action is sns:Publish; and

  • The Resource is the ARN of your SNS topic

3. SNS トピックに接続します

SNS トピックを設定して適切な権限を付与したら、最後の手順として、そのトピックを接続で使用します。

接続を設定するには、次の手順を実行します。

  1. Navigate to Automation and select Create rule.

  2. ルールのトリガーを選択します。

  3. AWS SNS のアクションを選択します。

  4. Click Connect.

  5. When prompted, enter the ARN of the topic you wish to use.

    • これは AWS コンソールで簡単に見つかります

  6. [保存] をクリックします。

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。