newrelic / newrelic-kubernetes-operator

Operator to create New Relic configuration in Kubernetes
Apache License 2.0
42 stars 22 forks source link

Add Support for Cloud Integrations #67

Open dobbs opened 4 years ago

dobbs commented 4 years ago

Feature Description

We would like to programmatically add accounts to the AWS integration, for example.

This pair of NerdGraph mutations might do the trick.

mutation {
  cloudLinkAccount(accountId: NEWRELIC_ACCOUNT_ID, accounts: {aws: {arn: "", name: ""}}) {
    linkedAccounts {
      id
      name
    }
  }
}

mutation {
  cloudConfigureIntegration(accountId: NEWRELIC_ACCOUNT_ID, integrations: {aws: {awsMsk: {awsRegions: "us-east-1", linkedAccountId: 123}}}) {
    integrations {
      id
      name
    }
  }
}
jthurman42 commented 3 years ago

Cloud integrations has a very large surface area, so marking this XL