diff --git a/inabox/deploy/config.go b/inabox/deploy/config.go index 20080e75e..926dfae23 100644 --- a/inabox/deploy/config.go +++ b/inabox/deploy/config.go @@ -577,6 +577,9 @@ func (env *Config) GenerateAllVariables() { // hardcode graphurl for now graphUrl := "http://localhost:8000/subgraphs/name/Layr-Labs/eigenda-operator-state" + env.localstackEndpoint = "http://localhost:4570" + env.localstackRegion = "us-east-1" + // Create envs directory createDirectory(env.Path + "/envs") changeDirectory(env.rootPath + "/inabox") diff --git a/inabox/deploy/config_types.go b/inabox/deploy/config_types.go index 39591c8d4..9ae47227b 100644 --- a/inabox/deploy/config_types.go +++ b/inabox/deploy/config_types.go @@ -183,6 +183,9 @@ type Config struct { Controller ControllerVars Relays []RelayVars + localstackEndpoint string + localstackRegion string + // DisperserAddress is the address of disperser 0 (aka the only disperser at the current time) DisperserAddress common.Address diff --git a/inabox/deploy/deploy.go b/inabox/deploy/deploy.go index 273def0a8..7ebe56420 100644 --- a/inabox/deploy/deploy.go +++ b/inabox/deploy/deploy.go @@ -179,8 +179,8 @@ func (env *Config) GenerateDisperserKeypair() error { // Generate a keypair in AWS KMS keyManager := kms.New(kms.Options{ - Region: "us-east-1", - BaseEndpoint: aws.String("http://localhost:4570"), // TODO don't hard code this + Region: env.localstackRegion, + BaseEndpoint: aws.String(env.localstackEndpoint), }) createKeyOutput, err := keyManager.CreateKey(context.Background(), &kms.CreateKeyInput{