Skip to content

Commit

Permalink
SCALRCORE-18895 add deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanMytsko committed Jun 16, 2021
1 parent b52a5dc commit 79bde03
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scalr/resource_scalr_variable.go
Expand Up @@ -15,10 +15,11 @@ var errVariableMultiOnlyEnv = errors.New("Only environment variables should be m

func resourceScalrVariable() *schema.Resource {
return &schema.Resource{
Create: resourceScalrVariableCreate,
Read: resourceScalrVariableRead,
Update: resourceScalrVariableUpdate,
Delete: resourceScalrVariableDelete,
Create: resourceScalrVariableCreate,
Read: resourceScalrVariableRead,
Update: resourceScalrVariableUpdate,
Delete: resourceScalrVariableDelete,
DeprecationMessage: "Category `env` will be deprecated. Please use `shell` instead.",
CustomizeDiff: customdiff.All(
func(d *schema.ResourceDiff, meta interface{}) error {
// Reject change for key if variable is sensitive
Expand Down

0 comments on commit 79bde03

Please sign in to comment.