opsgenie/opsgenie-cloudformation-resources

Integration: Attribute 'IntegrationApiKey' does not exist.

Closed this issue · 1 comments

I'm trying to create an Atlassian::Opsgenie::Integration and retrieve the IntegrationApiKey to use later in an AWS::SNS::Subscription by following the documentation at https://support.atlassian.com/opsgenie/docs/opsgenie-cloudformation-resources/

But CloudFormation is returning error: "Attribute 'IntegrationApiKey' does not exist."

{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Description": "Opsgenie Integration",
  "Resources": {
    "TestIntegrationTeam": {
      "Type": "Atlassian::Opsgenie::Team",
      "Properties": {
        "Name": "integration-test-team",
        "Description": "Test team to use with integration",
        "Members": []
      }
    },
    "TestIntegration": {
      "Type": "Atlassian::Opsgenie::Integration",
      "Properties": {
        "IntegrationType": "AmazonSns",
        "Name": "test-cfn-integration",
        "Enabled": true,
        "OwnerTeamName" : "integration-test-team",
        "AllowReadAccess": true,
        "AllowWriteAccess": true,
        "AllowDeleteAccess": true,
        "AllowConfigurationAccess": true,
        "Responders": [
          {
            "type": "team",
            "name": "integration-test-team"
          }
        ]
      },
      "DependsOn": [
        "TestIntegrationTeam"
      ]
    }
  },
  "Outputs": {
    "TeamId": {
      "Description": "Opsgenie TeamId",
      "Value": {
        "Fn::GetAtt": [
          "TestIntegrationTeam",
          "TeamId"
        ]
      }
    },
    "IntegrationId": {
      "Description": "Opsgenie IntegrationId",
      "Value": {
        "Fn::GetAtt": [
          "TestIntegration",
          "IntegrationId"
        ]
      }
    },
    "IntegrationApiKey": {
      "Description": "Opsgenie IntegrationApiKey",
      "Value": {
        "Fn::GetAtt": [
          "TestIntegration",
          "IntegrationApiKey"
        ]
      }
    }
  }
}

Hi @ryanwilliams83 , sorry for the late response. We were testing the scenario.
Firstly, thanks a lot for informing us. We did the necessary changes and published new resources(2.0.1) us-west-2 and eu-central-1 regions. If you want to test it in a different region, you need to register it manually. Instructions explained in README.md
The example stack templates have changed, and we've verified that apiKey output is available with the new resources.
Tested with the example. I've attached the screenshots.
I hope it fixes your issue. Please, reopen it if you need more help!
Screen Shot 2022-06-29 at 10 20 35 AM
Screen Shot 2022-06-29 at 10 20 52 AM