serverless_aws_automation

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAgeEncryptionKeyInAWSSecretManager

func AddAgeEncryptionKeyInAWSSecretManager(ctx context.Context, awsAuth aws_aegis_auth.AuthAWS, ageEncryptionSecretName, agePubKey, agePrivKey string) error

func AddExternalAccessKeysInAWSSecretManager

func AddExternalAccessKeysInAWSSecretManager(ctx context.Context, awsAuth aws_aegis_auth.AuthAWS, externalLambdaAccessKeysSecretName string, awsAuthExternal aws_aegis_auth.AuthAWS) error

func AddExternalLambdaPolicyToUser

func AddExternalLambdaPolicyToUser(ctx context.Context, auth aegis_aws_auth.AuthAWS) error

func AddInternalLambdaPoliciesToRole

func AddInternalLambdaPoliciesToRole(ctx context.Context, auth aegis_aws_auth.AuthAWS) error

func AddMnemonicHDWalletSecretInAWSSecretManager

func AddMnemonicHDWalletSecretInAWSSecretManager(ctx context.Context, awsAuth aws_aegis_auth.AuthAWS, mnemonicAndHDWalletSecretName string, hdWalletPassword string, mnemonic string) error

func CreateExternalLambdaUser

func CreateExternalLambdaUser(ctx context.Context, auth aegis_aws_auth.AuthAWS) error

func CreateExternalLambdaUserAccessKeys

func CreateExternalLambdaUserAccessKeys(ctx context.Context, auth aegis_aws_auth.AuthAWS) (aegis_aws_auth.AuthAWS, error)

func CreateHestiaValidatorsServiceRequest

func CreateHestiaValidatorsServiceRequest(ctx context.Context, keystoresPath filepaths.Path, sr hestia_req_types.ServiceRequestWrapper, bearerToken, feeRecipientAddr string)

func CreateInternalLambdaPolicy

func CreateInternalLambdaPolicy(ctx context.Context, auth aegis_aws_auth.AuthAWS) error

func CreateInternalLambdaRole

func CreateInternalLambdaRole(ctx context.Context, auth aegis_aws_auth.AuthAWS) error

func CreateInternalLambdaUser

func CreateInternalLambdaUser(ctx context.Context, auth aegis_aws_auth.AuthAWS) error

func CreateLambdaFunction

func CreateLambdaFunction(ctx context.Context, auth aegis_aws_auth.AuthAWS, functionName, keystoresLayerName string, p filepaths.Path) (string, error)

func CreateLambdaFunctionDepositGen added in v0.3.2

func CreateLambdaFunctionDepositGen(ctx context.Context, auth aegis_aws_auth.AuthAWS, p filepaths.Path) (string, error)

func CreateLambdaFunctionEncryptedKeystoresZip added in v0.3.2

func CreateLambdaFunctionEncryptedKeystoresZip(ctx context.Context, auth aegis_aws_auth.AuthAWS, p filepaths.Path) (string, error)

func CreateLambdaFunctionKeystoresLayer

func CreateLambdaFunctionKeystoresLayer(ctx context.Context, auth aegis_aws_auth.AuthAWS, p filepaths.Path, keystoresLayerName string) error

func CreateLambdaFunctionSecretsKeyGen added in v0.3.2

func CreateLambdaFunctionSecretsKeyGen(ctx context.Context, auth aegis_aws_auth.AuthAWS, p filepaths.Path) (string, error)

func CreateOrUpdateLambdaFunction added in v0.3.2

func CreateOrUpdateLambdaFunction(ctx context.Context, auth aegis_aws_auth.AuthAWS, functionName, keystoresLayerName string, p filepaths.Path) (string, error)

func ExternalUserRolePolicySetupForLambdaDeployment

func ExternalUserRolePolicySetupForLambdaDeployment(ctx context.Context, auth aegis_aws_auth.AuthAWS) error

func GetExternalAccessKeySecret

func GetExternalAccessKeySecret(ctx context.Context, awsAuth aws_aegis_auth.AuthAWS, sn string) (aws_aegis_auth.AuthAWS, error)

func GetExternalAccessKeySecretIfExists

func GetExternalAccessKeySecretIfExists(ctx context.Context, awsAuth aws_aegis_auth.AuthAWS, sn string) (aws_aegis_auth.AuthAWS, error)

func GetLambdaFunctionUrl

func GetLambdaFunctionUrl(ctx context.Context, auth aegis_aws_auth.AuthAWS, functionName string) (string, error)

func GetSecret

func GetSecret(ctx context.Context, awsAuth aws_aegis_auth.AuthAWS, sn string) (map[string]string, error)

func InternalUserRolePolicySetupForLambdaDeployment

func InternalUserRolePolicySetupForLambdaDeployment(ctx context.Context, auth aegis_aws_auth.AuthAWS) error

func UpdateExternalAccessKeySecret

func UpdateExternalAccessKeySecret(ctx context.Context, auth aws_aegis_auth.AuthAWS, externalLambdaAccessKeysSecretName string, extAuth aws_aegis_auth.AuthAWS) error

func UpdateLambdaFunctionKeystoresLayer

func UpdateLambdaFunctionKeystoresLayer(ctx context.Context, auth aegis_aws_auth.AuthAWS, functionName, keystoresLayerName string) error

func VerifyLambdaSigner

func VerifyLambdaSigner(ctx context.Context, auth aegis_aws_auth.AuthAWS, keystoresPath filepaths.Path, funcUrl string, ageEncryptionSecretNameInSecretManager string) error

VerifyLambdaSigner requires your deposit_data_*.json files to be in your keystoresPath, since it uses it to get your public keys to verify.

func VerifyLambdaSignerFromDepositDataSlice added in v0.3.2

func VerifyLambdaSignerFromDepositDataSlice(ctx context.Context, auth aegis_aws_auth.AuthAWS, dpSlice signing_automation_ethereum.ValidatorDepositSlice, funcUrl string, ageEncryptionSecretNameInSecretManager string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL