GithubHelp home page GithubHelp logo

salesforce / app-analytics-delivery-config-kickstart Goto Github PK

View Code? Open in Web Editor NEW
1.0 5.0 1.0 7 KB

Contains yaml files to help kickstart setting up your AWS account for App Analytics Delivery Config

License: BSD 3-Clause "New" or "Revised" License

HCL 100.00%

app-analytics-delivery-config-kickstart's Introduction

app-analytics-delivery-config-kickstart

The app-analytics-delivery-config-kickstart is a Terraform template used to create your partner-side infrastructure for the AppExchange App Analytics Delivery (AADC) feature.

AppAnalyticsDeliveryConfig is currently only available as a closed pilot to invited partners.

Usage

This Terraform script was tested with Terraform v1.0.

Prerequisites

This Terraform template requires that you have these items:

  • An Amazon Web Services (AWS) account
  • A set of AWS IAM credentials, including an Access key ID and a Secret Access Key, for CLI and API access
  • An existing Simple Storage Service (S3) bucket to store the Terraform state file
  • Terraform installed on your machine

Update the Backend

This script is configured to store its Terraform state in your existing S3 bucket.

Modify the backend.tf file to specify the AWS region and bucket name of your existing bucket where the state will be stored. For example:

    backend "s3" {
        region = "us-west-2"
        bucket = "my_bucket_name"
        key    = "byob-kickstart.tfstate"
    } 

We recommended that you add versioning to this bucket.

Configure Your Settings

The settings.auto.tfvars file defines variables that you must set according to your environment. Specifically, you must set:

  • The AWS region where your new S3 bucket(s) for App Analytics will live
  • The Salesforce Org ID of your License Management Org (LMO), which secures your delegated IAM role
  • The names of the bucket to create

Execute the Script

To run the script, follow standard Terraform deployment steps.

  1. Make your AWS credentials available to Terraform.

     $ export AWS_ACCESS_KEY_ID=<YOUR_ACCESS_KEY_ID_HERE>
     $ export AWS_SECRET_ACCESS_KEY=<YOUR_SECRET_ACCESS_KEY_HERE>
    
  2. Initialize the backend.

     $ terraform init
    
  3. Create the plan.

     $ terraform plan -out plan.out
    
  4. Apply the plan.

     $ terraform apply plan.out
    

Get Your Information

After the plan is applied, Terraform outputs the values that you must supply when creating an AppAnalyticsDeliveryConfig object in Salesforce. Specifically for each AppAnalyticsDeliveryConfig object, you must set the BucketName field as the name of your bucket and the AwsIamRoleArn field as the ARN of your delegated IAM role.

You can also retrieve these values at any time by running:

    $ terraform output

app-analytics-delivery-config-kickstart's People

Contributors

stephen-carter-at-sf avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.