diff --git a/README.md b/README.md index d342e17b..cd23e55c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# opg-data-lpa-deed +# opg-data-lpa-store -LPA deed service: Managed by opg-org-infra & Terraform +LPA Store: Managed by opg-org-infra & Terraform diff --git a/docs/architecture/dsl/local/lpaDeedService.dsl b/docs/architecture/dsl/local/lpaStore.dsl similarity index 74% rename from docs/architecture/dsl/local/lpaDeedService.dsl rename to docs/architecture/dsl/local/lpaStore.dsl index 755241ea..2d3338ce 100644 --- a/docs/architecture/dsl/local/lpaDeedService.dsl +++ b/docs/architecture/dsl/local/lpaStore.dsl @@ -1,6 +1,6 @@ -lpaDeedService = softwareSystem "LPA Deed Service" "Stores deeds and manages changes to them" { - database = container "Database" "Stores deeds and events" "DynamoDB" "Database" - lambda = container "Lambda" "Executes code for storing, updating and retrieving deeds" "AWS Lambda, Go" "Component" { +lpaStore = softwareSystem "LPA Store" "Stores LPAs and manages changes to them" { + database = container "Database" "Stores LPAs and events" "DynamoDB" "Database" + lambda = container "Lambda" "Executes code for storing, updating and retrieving LPAs" "AWS Lambda, Go" "Component" { -> database "Queries and writes to" } iam = container "IAM" "Manages permissions to API Gateway" "AWS IAM" "Component" diff --git a/docs/architecture/dsl/local/workspace.dsl b/docs/architecture/dsl/local/workspace.dsl index efdd216c..1af77af6 100644 --- a/docs/architecture/dsl/local/workspace.dsl +++ b/docs/architecture/dsl/local/workspace.dsl @@ -2,25 +2,25 @@ workspace { model { !include https://raw.githubusercontent.com/ministryofjustice/opg-technical-guidance/main/dsl/poas/persons.dsl !include https://raw.githubusercontent.com/ministryofjustice/opg-modernising-lpa/main/docs/architecture/dsl/local/makeRegisterSoftwareSystem.dsl - !include lpaDeedService.dsl + !include lpaStore.dsl lpaCaseManagement = softwareSystem "LPA Case Management" "PKA Sirius." "Existing System" { - -> apiGateway "Gets deeds from and sends updates to" + -> apiGateway "Gets LPAs from and sends updates to" } ualpa_SoftwareSystem = softwareSystem "Use A Lasting Power of Attorney" "Allows LPA Actors to retrieve and share LPAs with People and Organisations interested in LPAs" "Existing System" { - -> apiGateway "Gets deeds from" + -> apiGateway "Gets LPAs from" } - makeRegisterSoftwareSystem -> apiGateway "Sends deeds to" + makeRegisterSoftwareSystem -> apiGateway "Sends LPAs to" } views { - systemContext lpaDeedService "SystemContext" { + systemContext lpaStore "SystemContext" { include * autoLayout } - container lpaDeedService { + container lpaStore { include * autoLayout } diff --git a/docs/openapi/openapi.yaml b/docs/openapi/openapi.yaml index d818f579..665173ad 100644 --- a/docs/openapi/openapi.yaml +++ b/docs/openapi/openapi.yaml @@ -1,16 +1,16 @@ openapi: "3.0.2" info: - title: LPA Deed Service + title: LPA Store version: "1.0" license: name: MIT url: https://opensource.org/licenses/MIT servers: - - url: https://lpa-deed.api.opg.service.justice.gov.uk + - url: https://lpa-store.api.opg.service.justice.gov.uk description: Production - - url: https://preproduction.lpa-deed.api.opg.service.justice.gov.uk + - url: https://preproduction.lpa-store.api.opg.service.justice.gov.uk description: Preproduction - - url: https://development.lpa-deed.api.opg.service.justice.gov.uk + - url: https://development.lpa-store.api.opg.service.justice.gov.uk description: Development security: - {} diff --git a/lambda/create/go.mod b/lambda/create/go.mod index 5b9ec491..d2f1965b 100644 --- a/lambda/create/go.mod +++ b/lambda/create/go.mod @@ -1,12 +1,12 @@ -module github.com/ministryofjustice/opg-data-lpa-deed/lambda/create +module github.com/ministryofjustice/opg-data-lpa-store/lambda/create go 1.20 -replace github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared => ../shared +replace github.com/ministryofjustice/opg-data-lpa-store/lambda/shared => ../shared require ( github.com/aws/aws-lambda-go v1.41.0 - github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared v0.0.0-00010101000000-000000000000 + github.com/ministryofjustice/opg-data-lpa-store/lambda/shared v0.0.0-00010101000000-000000000000 github.com/ministryofjustice/opg-go-common v0.0.0-20231009133357-1f236d604316 ) diff --git a/lambda/create/main.go b/lambda/create/main.go index 1f28e9ce..b5b8b187 100644 --- a/lambda/create/main.go +++ b/lambda/create/main.go @@ -8,7 +8,7 @@ import ( "github.com/aws/aws-lambda-go/events" "github.com/aws/aws-lambda-go/lambda" - "github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared" + "github.com/ministryofjustice/opg-data-lpa-store/lambda/shared" "github.com/ministryofjustice/opg-go-common/logging" ) @@ -75,7 +75,7 @@ func (l *Lambda) HandleEvent(ctx context.Context, event events.APIGatewayProxyRe func main() { l := &Lambda{ store: shared.NewDynamoDB(os.Getenv("DDB_TABLE_NAME_DEEDS")), - logger: logging.New(os.Stdout, "opg-data-lpa-deed"), + logger: logging.New(os.Stdout, "opg-data-lpa-store"), } lambda.Start(l.HandleEvent) diff --git a/lambda/get/go.mod b/lambda/get/go.mod index 973d00ae..f24a331d 100644 --- a/lambda/get/go.mod +++ b/lambda/get/go.mod @@ -1,12 +1,12 @@ -module github.com/ministryofjustice/opg-data-lpa-deed/lambda/get +module github.com/ministryofjustice/opg-data-lpa-store/lambda/get go 1.20 -replace github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared => ../shared +replace github.com/ministryofjustice/opg-data-lpa-store/lambda/shared => ../shared require ( github.com/aws/aws-lambda-go v1.41.0 - github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared v0.0.0-00010101000000-000000000000 + github.com/ministryofjustice/opg-data-lpa-store/lambda/shared v0.0.0-00010101000000-000000000000 github.com/ministryofjustice/opg-go-common v0.0.0-20231009133357-1f236d604316 ) diff --git a/lambda/get/main.go b/lambda/get/main.go index e68832a2..8a06327c 100644 --- a/lambda/get/main.go +++ b/lambda/get/main.go @@ -7,7 +7,7 @@ import ( "github.com/aws/aws-lambda-go/events" "github.com/aws/aws-lambda-go/lambda" - "github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared" + "github.com/ministryofjustice/opg-data-lpa-store/lambda/shared" "github.com/ministryofjustice/opg-go-common/logging" ) @@ -49,7 +49,7 @@ func (l *Lambda) HandleEvent(ctx context.Context, event events.APIGatewayProxyRe func main() { l := &Lambda{ store: shared.NewDynamoDB(os.Getenv("DDB_TABLE_NAME_DEEDS")), - logger: logging.New(os.Stdout, "opg-data-lpa-deed"), + logger: logging.New(os.Stdout, "opg-data-lpa-store"), } lambda.Start(l.HandleEvent) diff --git a/lambda/shared/go.mod b/lambda/shared/go.mod index 653dbe2c..2f090183 100644 --- a/lambda/shared/go.mod +++ b/lambda/shared/go.mod @@ -1,4 +1,4 @@ -module github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared +module github.com/ministryofjustice/opg-data-lpa-store/lambda/shared go 1.20 diff --git a/lambda/shared/problem.go b/lambda/shared/problem.go index 7d57eaa0..0a8eeccc 100644 --- a/lambda/shared/problem.go +++ b/lambda/shared/problem.go @@ -49,7 +49,7 @@ func (problem Problem) Respond() (events.APIGatewayProxyResponse, error) { } _ = json.NewEncoder(os.Stdout).Encode(LogEvent{ - ServiceName: "opg-data-lpa-deed", + ServiceName: "opg-data-lpa-store", Timestamp: time.Now(), Status: problem.StatusCode, Problem: problem, diff --git a/lambda/update/go.mod b/lambda/update/go.mod index 5d1bde2d..9d45ce78 100644 --- a/lambda/update/go.mod +++ b/lambda/update/go.mod @@ -1,13 +1,13 @@ -module github.com/ministryofjustice/opg-data-lpa-deed/lambda/update +module github.com/ministryofjustice/opg-data-lpa-store/lambda/update go 1.20 -replace github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared => ../shared +replace github.com/ministryofjustice/opg-data-lpa-store/lambda/shared => ../shared require ( github.com/aws/aws-lambda-go v1.41.0 github.com/go-openapi/jsonpointer v0.20.0 - github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared v0.0.0-00010101000000-000000000000 + github.com/ministryofjustice/opg-data-lpa-store/lambda/shared v0.0.0-00010101000000-000000000000 github.com/ministryofjustice/opg-go-common v0.0.0-20231009133357-1f236d604316 ) diff --git a/lambda/update/main.go b/lambda/update/main.go index ef3b9ca2..a5a7c280 100644 --- a/lambda/update/main.go +++ b/lambda/update/main.go @@ -9,7 +9,7 @@ import ( "github.com/aws/aws-lambda-go/events" "github.com/aws/aws-lambda-go/lambda" "github.com/go-openapi/jsonpointer" - "github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared" + "github.com/ministryofjustice/opg-data-lpa-store/lambda/shared" "github.com/ministryofjustice/opg-go-common/logging" ) @@ -95,7 +95,7 @@ func applyUpdate(lpa *shared.Lpa, update shared.Update) error { func main() { l := &Lambda{ store: shared.NewDynamoDB(os.Getenv("DDB_TABLE_NAME_DEEDS")), - logger: logging.New(os.Stdout, "opg-data-lpa-deed"), + logger: logging.New(os.Stdout, "opg-data-lpa-store"), } lambda.Start(l.HandleEvent) diff --git a/mock-apigw/go.mod b/mock-apigw/go.mod index ef576884..6f3fdfe1 100644 --- a/mock-apigw/go.mod +++ b/mock-apigw/go.mod @@ -1,4 +1,4 @@ -module github.com/ministryofjustice/opg-data-lpa-deed/delegator +module github.com/ministryofjustice/opg-data-lpa-store/mock-apigw go 1.20 diff --git a/renovate.json b/renovate.json index a84f9581..350567cc 100644 --- a/renovate.json +++ b/renovate.json @@ -14,7 +14,7 @@ { "description": "Ignore internal dependency upgrades - Renovate doesn't recognise that these are relative and therefore don't need to refer to the correct digest", "matchPackageNames": [ - "github.com/ministryofjustice/opg-data-lpa-deed/lambda/shared" + "github.com/ministryofjustice/opg-data-lpa-store/lambda/shared" ], "enabled": false }, diff --git a/signer/go.mod b/signer/go.mod index b5d6d8c4..aa57fea0 100644 --- a/signer/go.mod +++ b/signer/go.mod @@ -1,4 +1,4 @@ -module github.com/ministryofjustice/opg-data-lpa-deed/signer +module github.com/ministryofjustice/opg-data-lpa-store/signer go 1.20 diff --git a/terraform/account/variables.tf b/terraform/account/variables.tf index 4205850f..e8af862a 100644 --- a/terraform/account/variables.tf +++ b/terraform/account/variables.tf @@ -14,14 +14,14 @@ locals { mandatory_moj_tags = { business-unit = "OPG" - application = "opg-data-lpa-deed" + application = "opg-data-lpa-store" account = local.account.account_name is-production = local.account.is_production owner = "opgteam@digital.justice.gov.uk" } optional_tags = { - source-code = "https://github.com/ministryofjustice/opg-data-lpa-deed" + source-code = "https://github.com/ministryofjustice/opg-data-lpa-store" infrastructure-support = "opgteam@digital.justice.gov.uk" } diff --git a/terraform/environment/variables.tf b/terraform/environment/variables.tf index e02ca8de..bcd03f67 100644 --- a/terraform/environment/variables.tf +++ b/terraform/environment/variables.tf @@ -5,7 +5,7 @@ locals { default_tags = merge(local.mandatory_moj_tags, local.optional_tags) mandatory_moj_tags = { business-unit = "OPG" - application = "opg-data-lpa-deed" + application = "opg-data-lpa-store" environment-name = local.environment_name account = local.environment.account_name is-production = local.environment.is_production @@ -13,7 +13,7 @@ locals { } optional_tags = { - source-code = "https://github.com/ministryofjustice/opg-data-lpa-deed" + source-code = "https://github.com/ministryofjustice/opg-data-lpa-store" infrastructure-support = "opgteam@digital.justice.gov.uk" } }